SCCS-vsn: sys/vm/vm_meter.c 4.7
-/* vm_meter.c 4.6 81/04/23 */
+/* vm_meter.c 4.7 81/04/23 */
#include "../h/param.h"
#include "../h/systm.h"
#include "../h/param.h"
#include "../h/systm.h"
if (fastscan == 0) {
nclust = LOOPPAGES / CLSIZE;
nkb = (LOOPPAGES * NBPG) / 1024;
if (fastscan == 0) {
nclust = LOOPPAGES / CLSIZE;
nkb = (LOOPPAGES * NBPG) / 1024;
- if (nswdev == 1 && nkb >= 2*1024)
+ if (nswdev == 1 && physmem*NBPG > 2*1024*(1024-16))
printf("WARNING: should run interleaved swap with >= 2Mb\n");
if (nswdev == 1 || nkb < 2*1024)
fastscan = nclust / 400;
printf("WARNING: should run interleaved swap with >= 2Mb\n");
if (nswdev == 1 || nkb < 2*1024)
fastscan = nclust / 400;
slowscan = 3 * fastscan;
if (slowscan > maxslp)
slowscan = maxslp;
slowscan = 3 * fastscan;
if (slowscan > maxslp)
slowscan = maxslp;
-#ifdef defined(BERT) || defined(ERNIE)
+#if defined(BERT) || defined(ERNIE)
printf("slowscan %d, fastscan %d, maxpgio %d\n",
slowscan, fastscan, maxpgio);
printf("lotsfree %d, desfree %d, minfree %d\n",
printf("slowscan %d, fastscan %d, maxpgio %d\n",
slowscan, fastscan, maxpgio);
printf("lotsfree %d, desfree %d, minfree %d\n",