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:
parent
f6efcf6413
commit
7ca592e093
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=87839
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user