Bug 204938 - Upper limit for maxusers in config(5) is invalid
Summary: Upper limit for maxusers in config(5) is invalid
Status: Open
Alias: None
Product: Documentation
Classification: Unclassified
Component: Manual Pages (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Guangyuan Yang
Keywords: easy, patch
Depends on:
Reported: 2015-12-01 15:56 UTC by David Höppner
Modified: 2021-10-01 07:01 UTC (History)
3 users (show)

See Also:

config(5) patch (593 bytes, patch)
2021-09-22 05:47 UTC, Felix Johnson
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description David Höppner 2015-12-01 15:56:57 UTC
The limit of 384 maxusers for auto configuration was only imposed on 32-bit systems. Currently its grow slowly above the 384 mark.

maxusers number
             This optional directive is used to configure the size of some
             kernel data structures.  The parameter number can be 0 (the
             default) or an integer greater than or equal to 2.  A value of 0
             indicates that the kernel should configure its data structures
             according to the size of available physical memory.  If auto
             configuration is requested, the kernel will set this tunable to a
             value between 32 and 384.

             As explained in tuning(7), this tunable can also be set at boot
             time using loader(8).
Comment 1 Felix Johnson freebsd_triage 2021-09-22 05:47:32 UTC
Created attachment 228114 [details]
config(5) patch

Modify config(5) to note that maxusers scales above 384 based on memory for 64-bit systems.