diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 1997-05-28 22:40:05 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 1997-05-28 22:40:05 +0000 |
commit | c37c003e4efd5ff93b0cd76973ac7a4a6a2a0895 (patch) | |
tree | c989d421d0b32db2ba1391b36ee8c88306acca22 /sys/conf | |
parent | 0ce193f0bc210256227c73574cbe2b3a6c51031d (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/conf')
-rw-r--r-- | sys/conf/param.c | 5 |
1 files changed, 3 insertions, 2 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; |