1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-28 16:43:09 +00:00

Too many people are compiling kernels with maxusers set to 0 without the new

config.  Hack the kernel to force auto-sizing if the old config is used.
This commit is contained in:
Matthew Dillon 2001-12-14 04:01:08 +00:00
parent f6efcf6413
commit 7ca592e093
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=87839

View File

@ -133,7 +133,7 @@ init_param2(int physpages)
{
/* Base parameters */
if ((maxusers = MAXUSERS) == 0) {
if ((maxusers = MAXUSERS) == 0 || maxusers == 8) {
maxusers = physpages / (1024 * 1024 / PAGE_SIZE);
if (maxusers < 32)
maxusers = 32;