summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>1997-05-28 22:40:05 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>1997-05-28 22:40:05 +0000
commitc37c003e4efd5ff93b0cd76973ac7a4a6a2a0895 (patch)
treec989d421d0b32db2ba1391b36ee8c88306acca22 /sys
parent0ce193f0bc210256227c73574cbe2b3a6c51031d (diff)
move vm_cache_max into param.c
make it maxusers adaptive note, that NTEXT approximation is probably not the best idea
Diffstat (limited to 'sys')
-rw-r--r--sys/conf/param.c5
-rw-r--r--sys/vm/vm_object.c4
2 files changed, 5 insertions, 4 deletions
diff --git a/sys/conf/param.c b/sys/conf/param.c
index a91c9e1d3d2..c3c54e7e653 100644
--- a/sys/conf/param.c
+++ b/sys/conf/param.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: param.c,v 1.2 1996/04/19 07:31:24 mickey Exp $ */
+/* $OpenBSD: param.c,v 1.3 1997/05/28 22:39:59 mickey Exp $ */
/* $NetBSD: param.c,v 1.16 1996/03/12 03:08:40 mrg Exp $ */
/*
@@ -91,7 +91,8 @@ int tickadj = 240000 / (60 * HZ); /* can adjust 240ms in 60s */
struct timezone tz = { TIMEZONE, DST };
#define NPROC (20 + 16 * MAXUSERS)
int maxproc = NPROC;
-#define NTEXT (80 + NPROC / 8) /* actually the object cache */
+#define NTEXT (80 + NPROC / 8) /* actually the object cache */
+int vm_cache_max = NTEXT; /* XXX these probably needs some measurements */
#define NVNODE (NPROC + NTEXT + 100)
int desiredvnodes = NVNODE;
int maxfiles = 3 * (NPROC + MAXUSERS) + 80;
diff --git a/sys/vm/vm_object.c b/sys/vm/vm_object.c
index 951a84e0939..c9717cc13dc 100644
--- a/sys/vm/vm_object.c
+++ b/sys/vm/vm_object.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vm_object.c,v 1.15 1997/04/17 01:25:20 niklas Exp $ */
+/* $OpenBSD: vm_object.c,v 1.16 1997/05/28 22:40:04 mickey Exp $ */
/* $NetBSD: vm_object.c,v 1.46 1997/03/30 20:56:12 mycroft Exp $ */
/*-
@@ -139,7 +139,7 @@ struct vm_object kmem_object_store;
#define VM_OBJECT_HASH_COUNT 157
-int vm_cache_max = 100; /* can patch if necessary */
+extern int vm_cache_max; /* now in param.c */
struct vm_object_hash_head vm_object_hashtable[VM_OBJECT_HASH_COUNT];
long object_collapses = 0;