Bug 204938

Summary: Upper limit for maxusers in config(5) is invalid
Product: Documentation Reporter: David Höppner <0xffea>
Component: Manual PagesAssignee: Guangyuan Yang <ygy>
Status: Closed FIXED    
Severity: Affects Only Me CC: doc, felix.the.red, ygy
Priority: --- Keywords: easy, patch
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
config(5) patch none

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.
Comment 2 commit-hook freebsd_committer 2021-10-28 18:20:56 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=191c624d9519a2767801de390b192ee7a96b41cd

commit 191c624d9519a2767801de390b192ee7a96b41cd
Author:     Felix Johnson <felix.the.red@gmail.com>
AuthorDate: 2021-10-28 18:15:08 +0000
Commit:     Guangyuan Yang <ygy@FreeBSD.org>
CommitDate: 2021-10-28 18:15:08 +0000

    config(5): Update upper limit for maxusers on 64-bit systems

    The limit of 384 maxusers for auto configuration was only imposed on
    32-bit systems. Document that maxusers scales above 384 based on memory
    for 64-bit systems.

    PR:             204938
    MFC after:      3 days
    Reported by:    David Höppner <0xffea@gmail.com>

 usr.sbin/config/config.5 | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
Comment 3 commit-hook freebsd_committer 2021-10-31 19:29:45 UTC
A commit in branch stable/13 references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=cbd82a22eb0cfd32889e7ddd74fa8b0edf1adf19

commit cbd82a22eb0cfd32889e7ddd74fa8b0edf1adf19
Author:     Felix Johnson <felix.the.red@gmail.com>
AuthorDate: 2021-10-28 18:15:08 +0000
Commit:     Guangyuan Yang <ygy@FreeBSD.org>
CommitDate: 2021-10-31 19:27:20 +0000

    config(5): Update upper limit for maxusers on 64-bit systems

    The limit of 384 maxusers for auto configuration was only imposed on
    32-bit systems. Document that maxusers scales above 384 based on memory
    for 64-bit systems.

    PR:             204938
    Reported by:    David Höppner <0xffea@gmail.com>

    (cherry picked from commit 191c624d9519a2767801de390b192ee7a96b41cd)

 usr.sbin/config/config.5 | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)