Page MenuHomeFreeBSD

D60002.1795883375.diff
No OneTemporary

Authored By
Unknown
Size
4 KB
Referenced Files
None
Subscribers
None

D60002.1795883375.diff

diff --git a/share/man/man4/sched_4bsd.4 b/share/man/man4/sched_4bsd.4
--- a/share/man/man4/sched_4bsd.4
+++ b/share/man/man4/sched_4bsd.4
@@ -22,7 +22,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd January 21, 2008
+.Dd September 24, 2026
.Dt SCHED_4BSD 4
.Os
.Sh NAME
@@ -40,23 +40,25 @@
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.ipiwakeup.enabled
-This read-write sysctl sets whether or not the scheduler will generate an
-inter-processor interrupt (IPI) to an idle CPU when a thread is woken up.
-Otherwise, idle CPUs will wait until the next clock tick before looking for
-new work.
-.It Va kern.sched.preemption
-This read-only sysctl reports whether or not the kernel is configured to
-support preemption, which reduces the latency to run lower priority threads
-on wakeup.
+.It Va kern.sched.4bsd.quantum
+The length of the timeshare quantum in microseconds.
+.It Va kern.sched.4bsd.slice
+The length of the timeshare quantum in statclock ticks.
.El
.Pp
-Some sysctls will be available only on systems supporting SMP.
+The following sysctls are available only on SMP systems:
+.Bl -tag -width indent
+.It Va kern.sched.4bsd.runq_fuzz
+The number of threads examined in the highest-priority run queue when
+preferring a thread that last ran on the current CPU.
+.It Va kern.sched.4bsd.ipiwakeup.enabled
+Whether to send an inter-processor interrupt (IPI) to an idle CPU when a
+thread is woken up.
+.It Va kern.sched.4bsd.ipiwakeup.usemask
+Whether to use the mask of idle CPUs when forwarding wakeups.
+.It Va kern.sched.4bsd.ipiwakeup.useloop
+Whether to search for idle CPUs in a loop when forwarding wakeups.
+.El
.Sh SEE ALSO
.Xr sched_ule 4 ,
.Xr sysctl 8
diff --git a/share/man/man4/sched_ule.4 b/share/man/man4/sched_ule.4
--- 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 August 10, 2012
+.Dd September 24, 2026
.Dt SCHED_ULE 4
.Os
.Sh NAME
@@ -55,11 +55,39 @@
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 priority threshold below which preemption is allowed.
+.It Va kern.sched.ule.static_boost
+The static priority limit applied to sleeping kernel threads.
+.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_idle
+Whether to try stealing work from another CPU before idling.
+.It Va kern.sched.ule.steal_thresh
+The minimum load on a remote CPU before attempting to steal work.
+.It Va kern.sched.ule.trysteal_limit
+The topological distance limit for stealing threads during a context switch.
+.It Va kern.sched.ule.always_steal
+Whether the idle thread always tries to steal work.
.El
.Sh SEE ALSO
.Xr sched_4bsd 4 ,
diff --git a/sys/kern/sched_4bsd.c b/sys/kern/sched_4bsd.c
--- a/sys/kern/sched_4bsd.c
+++ b/sys/kern/sched_4bsd.c
@@ -233,6 +233,7 @@
return (0);
}
+/* NOTE: Keep these sysctls in sync with sched_4bsd.4. */
SYSCTL_NODE(_kern_sched, OID_AUTO, 4bsd, CTLFLAG_RD | CTLFLAG_MPSAFE, 0,
"4BSD Scheduler");
diff --git a/sys/kern/sched_ule.c b/sys/kern/sched_ule.c
--- a/sys/kern/sched_ule.c
+++ b/sys/kern/sched_ule.c
@@ -3505,6 +3505,7 @@
return (0);
}
+/* NOTE: Keep these sysctls in sync with sched_ule.4. */
SYSCTL_NODE(_kern_sched, OID_AUTO, ule, CTLFLAG_RD | CTLFLAG_MPSAFE, 0,
"ULE Scheduler");

File Metadata

Mime Type
text/plain
Expires
Sat, Nov 28, 4:29 PM (17 h, 40 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
42059167
Default Alt Text
D60002.1795883375.diff (4 KB)

Event Timeline