From nobody Sun Oct 31 19:28:43 2021 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 65B08182969F; Sun, 31 Oct 2021 19:28:43 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Hj5n72VrHz3lLM; Sun, 31 Oct 2021 19:28:43 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 359E0234E3; Sun, 31 Oct 2021 19:28:43 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 19VJShEu080308; Sun, 31 Oct 2021 19:28:43 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 19VJShaJ080307; Sun, 31 Oct 2021 19:28:43 GMT (envelope-from git) Date: Sun, 31 Oct 2021 19:28:43 GMT Message-Id: <202110311928.19VJShaJ080307@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Guangyuan Yang Subject: git: cbd82a22eb0c - stable/13 - config(5): Update upper limit for maxusers on 64-bit systems List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: ygy X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: cbd82a22eb0cfd32889e7ddd74fa8b0edf1adf19 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by ygy (doc, ports committer): URL: https://cgit.FreeBSD.org/src/commit/?id=cbd82a22eb0cfd32889e7ddd74fa8b0edf1adf19 commit cbd82a22eb0cfd32889e7ddd74fa8b0edf1adf19 Author: Felix Johnson AuthorDate: 2021-10-28 18:15:08 +0000 Commit: Guangyuan Yang 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(-) diff --git a/usr.sbin/config/config.5 b/usr.sbin/config/config.5 index 9b26326ea862..15f92ea735ef 100644 --- a/usr.sbin/config/config.5 +++ b/usr.sbin/config/config.5 @@ -23,7 +23,7 @@ .\" .\" $FreeBSD$ .\" -.Dd February 9, 2020 +.Dd October 28, 2021 .Dt CONFIG 5 .Os .Sh NAME @@ -329,7 +329,9 @@ 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. +this tunable to a value between 32 and 384 for 32-bit systems, +or scale the value higher based on available memory for 64-bit +systems. .Pp As explained in .Xr tuning 7 ,