From nobody Thu Oct 12 15:02:56 2023 X-Original-To: dev-commits-src-all@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 4S5tDJ2pLyz4wTfj; Thu, 12 Oct 2023 15:02:56 +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 4S5tDJ251fz4ZqK; Thu, 12 Oct 2023 15:02:56 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1697122976; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=3SX8FJ2gFAOlU/W3Lw0rjfS6H0uvd6UT4J7V06AqB4Q=; b=EBEznkLIVCCVu065EsrejXz+ZpFmq6ct0gUGkToZ7BAsS17Mdoi1cgto6JjM3J6b0X6CYK Q2Ev8Awv1Rg6KaiE8e8wRr0/5M0FHbVF1kscRDy7pfiwX/qMr4deLygLgiCKLk932QNoF1 DPApZuntv76iGbi2KfrqA2oQTsyrx+QN3Bpx40y+mLArSX+JauLgIMaEWDYQCKzpTGMBGX X7Vw+hwo4CuuwarRSuAIc0VK9kYCxOJWapAgR5Fa7pZVhzToWJYasNjJUyfsgyms+pS47c +qLpj39p1Fbhpmvteuogkcn4aM8cFWkOz2dtpQ5B3699xdjoRP8JmS545XrvRA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1697122976; a=rsa-sha256; cv=none; b=cs9eiBCmO7FecTMOSk4LjWvFju5wq7WrwPx5zt2X5rFW4ky4eg5JT4g1QGKEt/0MtWOEWi t1qLsXwcLNLWtJcez3Ts9OYnmY7czJag818sSsc0+0gOihitExE+8DRj5oJJiYG/IBe/WT JiMi3BKVyKrLQmXwY15dxl02yceXE+wtmGd+sXD5p3UR03j4WPJ7ulUEbXBptpIYm7E3Hy G2bqJnWeGbgJEMCtraL8GC/vD+qeoViQ0t/fvascIHcZfaFKbXm3oAX/yW/oFNZMIMYD3g 3Pw2V4rIawSvTERh3tX20XMyqyHn0ZrBcbh3EFqXtIEJFFydNTFGnhO8xB9ntg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1697122976; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=3SX8FJ2gFAOlU/W3Lw0rjfS6H0uvd6UT4J7V06AqB4Q=; b=fiqcy0wJ+lJG4Op2PtusZLw9hbLYUy1YhUwfHlf3ecx01EinetIK0bGngV4wcegqG+G38n GhQ8GIdXmvPpvxIUNwrp3jsuR/FeR3ci5MVC7gi4WlJ8Tg5xJK7z9ayY6+Bvb9oAFDuS8b pSWjImnW0BTiwoyWSPONIjzgyDpCkM4cHujSeISVvSU+Fl3SeRI3q6cLq4APw/CE8dm6fS vowKuf2jKSymHTAsEziDRB73vNOJG4PxsMLO7+pm4x6gqr9kTIPnFyKhgTPkpKLXlJDEQ7 Zrf9ZZuQysaC+Ifg0xjq/hAVgiodYbRzFdGjZNOrLB/63sJkeqFKKlXTxYkxDQ== 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 4S5tDJ0v6Bz17xZ; Thu, 12 Oct 2023 15:02:56 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 39CF2uMZ057312; Thu, 12 Oct 2023 15:02:56 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 39CF2ugG057309; Thu, 12 Oct 2023 15:02:56 GMT (envelope-from git) Date: Thu, 12 Oct 2023 15:02:56 GMT Message-Id: <202310121502.39CF2ugG057309@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Zhenlei Huang Subject: git: fc2149590f73 - releng/14.0 - proc: Add sysctl flag CTLFLAG_TUN to loader tunable List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: zlei X-Git-Repository: src X-Git-Refname: refs/heads/releng/14.0 X-Git-Reftype: branch X-Git-Commit: fc2149590f73205b641714bcaeb562a25d9332e4 Auto-Submitted: auto-generated The branch releng/14.0 has been updated by zlei: URL: https://cgit.FreeBSD.org/src/commit/?id=fc2149590f73205b641714bcaeb562a25d9332e4 commit fc2149590f73205b641714bcaeb562a25d9332e4 Author: Zhenlei Huang AuthorDate: 2023-10-09 10:30:22 +0000 Commit: Zhenlei Huang CommitDate: 2023-10-12 14:59:53 +0000 proc: Add sysctl flag CTLFLAG_TUN to loader tunable The sysctl variable 'kern.kstack_pages' is actually a loader tunable. Add sysctl flag CTLFLAG_TUN to it so that `sysctl -T` will report it correctly. No functional change intended. Note that on arm64 the thread0 stack size can not be controlled with it, kib@ suggested that arm64 maintainers can fix it eventually so let's enable it also on arm64 right now. Reviewed by: kib, imp Approved by: re (gjb) MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D42113 (cherry picked from commit 35b3be81f1d9fe38457d9137bef7a2875d24e2c8) (cherry picked from commit 964a91aac9c99d16294bc76d942de7bcc2a1b169) --- sys/kern/kern_proc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/kern/kern_proc.c b/sys/kern/kern_proc.c index cccce834e284..2daf39b398b5 100644 --- a/sys/kern/kern_proc.c +++ b/sys/kern/kern_proc.c @@ -161,7 +161,8 @@ EVENTHANDLER_LIST_DEFINE(process_fork); EVENTHANDLER_LIST_DEFINE(process_exec); int kstack_pages = KSTACK_PAGES; -SYSCTL_INT(_kern, OID_AUTO, kstack_pages, CTLFLAG_RD, &kstack_pages, 0, +SYSCTL_INT(_kern, OID_AUTO, kstack_pages, CTLFLAG_RDTUN | CTLFLAG_NOFETCH, + &kstack_pages, 0, "Kernel stack size in pages"); static int vmmap_skip_res_cnt = 0; SYSCTL_INT(_kern, OID_AUTO, proc_vmmap_skip_resident_count, CTLFLAG_RW,