From nobody Tue Nov 10 22:20:40 2026 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 4jPLh85ZrVz6xnDM for ; Tue, 10 Nov 2026 22:20:40 +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) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 4jPLh83fxZz4VxR for ; Tue, 10 Nov 2026 22:20:40 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1794349240; 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=xhBh+6vrAlOCUZ/WQ6wIEtDW4yyf5+T5QB/v9WBzFd4=; b=iZx3fv46xFQK6d05hheE3K/YUDwi1+T+dwHpaKsqqSDf2mvuljGOBp6ssCtpONe6KMQ/AM 5ZP48rpQgvzYoyUeiB5965kRpxVrHkQ3xbmgIbl13e88vFmp/W1Vwq/fU0pELuet/7p2bF K8ej8uj2wTsjfdJ6Vxxa+z4PdIjmwDaNZoAzvPW2ykc5UyEGzhR6xE0TtPK+POJitHZcFe ESFJHqPjJlzz//HjCDR4GyyGttAb+aTqgPe+euBLqQjr04OKIqoyASyQ5UcaNiAdG2tOoJ LayvZ5YEKk+IYwsP1gKVKhbyQL+6kgbkgqqvqlI9d/HEheAAAC6mASmLS+NdOA== ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1794349240; b=FQQtkBtnapxoaCVG6a/x17NImtysB8uQ3Rju3wDX69FZCcig+h412IzcVApvKA3XTToJMS WuB8wMmVLrjprwzKRCJyxMY64Pop9hj/zdgjMpypz7srGH6TlyqIWXcjPxnDYHyMUZpmzJ BluKeCTx8BuZJz6JMz0vB7MXaUiEdXqqKMCVyGnTP+ft7vk9QdZsEsaMip5B8hpiMIDxjC 8wCfqmfgK3LJw/5damxH6zIp3pzxlSVZ1sHRDHaZc6TC9MDZZZpobDuwLoLChnBiG8f4K6 kHF+RXxz/hBHgXlcLpE3KDVj3nH3rDtWSBJe7rt41Q3mnAPdCOucm6ASwDqz9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1794349240; 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=xhBh+6vrAlOCUZ/WQ6wIEtDW4yyf5+T5QB/v9WBzFd4=; b=e4822VUREL5bA0al5/XnXshPFI9z7MfPMYagXWxxrE6XyXTCwxqFI5r1bqxUjgmMFLxNcG GcXGd68UHjdy+fRIS+fbJJjsDZZYEju+Bi4qdPmJ/9V5uqN7fW8KTblHnJW880+InvlBnL 45wf4QNgR9WMxc7sYNfZZ3NZMgL+Gi+PKdUclrtqNOO3/ONt2QsQE8b+oSQ3WIf9v2Ijeb 1BORbGHLoZZo7DIHRx0tItlE1hTlQIsx5zMBJcEfBTeV6Pu//pCm/tLPLWecFrviKWTFQ5 vSA8i2pOp+XJDwUWgUXp+wSa6J5BYaX0LFBLpuy+kNtsG7eFTBQg6IJShZ+LrQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4jPLh83KWsznNM for ; Tue, 10 Nov 2026 22:20:40 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 11b08 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Tue, 10 Nov 2026 22:20:40 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Minsoo Choo Subject: git: 7cb4d4dfdd18 - main - sched_ule.4: sync current scheduler sysctls List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all X-BeenThere: dev-commits-src-all@freebsd.org List-Id: Commit messages for all branches of the src repository List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: mchoo X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 7cb4d4dfdd181fb070794ff203b158783c617218 Auto-Submitted: auto-generated Date: Tue, 10 Nov 2026 22:20:40 +0000 Message-Id: <6af398b8.11b08.1bcdc8aa@gitrepo.freebsd.org> The branch main has been updated by mchoo: URL: https://cgit.FreeBSD.org/src/commit/?id=7cb4d4dfdd181fb070794ff203b158783c617218 commit 7cb4d4dfdd181fb070794ff203b158783c617218 Author: Minsoo Choo AuthorDate: 2026-09-25 15:44:26 +0000 Commit: Minsoo Choo CommitDate: 2026-11-10 22:19:58 +0000 sched_ule.4: sync current scheduler sysctls Reviewed by: bcr, jhb, olce Approved by: jhb, olce (mentor) MFC after: 2 weeks Sponsored by: FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D60002 --- share/man/man4/sched_ule.4 | 43 +++++++++++++++++++++++++++++++++++++------ sys/kern/sched_ule.c | 1 + 2 files changed, 38 insertions(+), 6 deletions(-) diff --git a/share/man/man4/sched_ule.4 b/share/man/man4/sched_ule.4 index 2e713d91cca3..3a9598d9941b 100644 --- a/share/man/man4/sched_ule.4 +++ b/share/man/man4/sched_ule.4 @@ -22,7 +22,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd September 25, 2026 +.Dd November 10, 2026 .Dt SCHED_ULE 4 .Os .Sh NAME @@ -58,11 +58,42 @@ Common scheduler sysctls are documented in The following sysctls are relevant to the operation of .Nm : .Bl -tag -width indent -.It Va kern.sched.name -This read-only sysctl reports the name of the active scheduler. -.It Va kern.sched.quantum -This read-write sysctl reports or sets the length of the quantum (in -micro-seconds) granted to a thread. +.It Va kern.sched.ule.quantum +The length of the timeshare quantum in microseconds. +.It Va kern.sched.ule.slice +The length of the timeshare quantum in statclock ticks. +.It Va kern.sched.ule.interact +The interactivity score threshold. +.It Va kern.sched.ule.preempt_thresh +The non-inclusive numerical priority threshold below which preemption is allowed. +Threads with numerically-lower priority values have higher priority. +.It Va kern.sched.ule.static_boost +The minimum priority (maximum numerical value) to be applied to a thread on wakeup. +Value 1 indicates to use a priority specified statically by the kernel at the point of sleep. +Value 0 indicates to keep the current thread's priority at wakeup. +.It Va kern.sched.ule.idlespins +The number of times an idle thread spins while waiting for work. +.It Va kern.sched.ule.idlespinthresh +The context switch threshold for idle thread spinning. +.El +.Pp +The following sysctls are available only on SMP systems: +.Bl -tag -width indent +.It Va kern.sched.ule.affinity +The number of clock ticks for which a thread retains CPU affinity. +.It Va kern.sched.ule.balance +Whether to enable the long-term load balancer. +.It Va kern.sched.ule.balance_interval +The average interval, in statclock ticks, between long-term load balancing +passes. +.It Va kern.sched.ule.steal_thresh +The minimum load on a remote CPU before attempting to steal work. +.It Va kern.sched.ule.always_steal +Whether the idle thread always tries to steal work. +.It Va kern.sched.ule.steal_idle +Whether to try stealing work from another CPU before idling. +.It Va kern.sched.ule.trysteal_limit +The topological distance limit for stealing threads during a context switch. .El .Sh SEE ALSO .Xr scheduler 4 , diff --git a/sys/kern/sched_ule.c b/sys/kern/sched_ule.c index 44c787b13ece..45480fda9cb3 100644 --- a/sys/kern/sched_ule.c +++ b/sys/kern/sched_ule.c @@ -3465,6 +3465,7 @@ sysctl_kern_slice(SYSCTL_HANDLER_ARGS) return (0); } +/* NOTE: Please keep sched_ule.4 in sync with sysctl knobs defined here. */ SYSCTL_NODE(_kern_sched, OID_AUTO, ule, CTLFLAG_RD | CTLFLAG_MPSAFE, 0, "ULE Scheduler");