diff options
Diffstat (limited to 'sys/kern/subr_param.c')
-rw-r--r-- | sys/kern/subr_param.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/subr_param.c b/sys/kern/subr_param.c index 4d47f0f..2dc6f5b 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); |