summaryrefslogtreecommitdiff
path: root/sys/kern/subr_param.c
diff options
context:
space:
mode:
authorMatthew Dillon <dillon@FreeBSD.org>2002-01-25 01:54:16 +0000
committerMatthew Dillon <dillon@FreeBSD.org>2002-01-25 01:54:16 +0000
commit4fbd563eb89914311d738ed728728d069ff2415b (patch)
treed6f8d71cefbbec06d3b1c72ca531d5fdf3bf2bc1 /sys/kern/subr_param.c
parentf7a54d06e55631f045a3a0916fe50d85d4bccfb1 (diff)
Notes
Diffstat (limited to 'sys/kern/subr_param.c')
-rw-r--r--sys/kern/subr_param.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/subr_param.c b/sys/kern/subr_param.c
index 4d47f0fa622b..2dc6f5b4981e 100644
--- a/sys/kern/subr_param.c
+++ b/sys/kern/subr_param.c
@@ -134,11 +134,11 @@ init_param2(int physpages)
/* Base parameters */
if ((maxusers = MAXUSERS) == 0) {
- maxusers = physpages / (1024 * 1024 / PAGE_SIZE);
+ maxusers = physpages / (2 * 1024 * 1024 / PAGE_SIZE);
if (maxusers < 32)
maxusers = 32;
- if (maxusers > 512)
- maxusers = 512;
+ if (maxusers > 384)
+ maxusers = 384;
}
TUNABLE_INT_FETCH("kern.maxusers", &maxusers);