Page MenuHomeFreeBSD

sched: mark several kern.sched.* sysctls as CTLFLAG_RWTUN
ClosedPublic

Authored by khng on May 10 2025, 9:00 AM.
Tags
None
Referenced Files
F164798001: D50279.id155242.diff
Tue, Aug 4, 2:38 AM
F164797987: D50279.id155242.diff
Tue, Aug 4, 2:38 AM
Unknown Object (File)
Sun, Aug 2, 5:22 AM
Unknown Object (File)
Sun, Aug 2, 4:40 AM
Unknown Object (File)
Sun, Aug 2, 3:23 AM
Unknown Object (File)
Sat, Aug 1, 7:35 AM
Unknown Object (File)
Thu, Jul 30, 5:12 AM
Unknown Object (File)
Mon, Jul 27, 12:13 AM
Subscribers

Details

Summary

The following sysctls which are not touched during boot time
initialization are marked as CTLFLAG_RWTUN so they can be set by loader
tunables as well:

  • kern.sched.interact
  • kern.sched.preempt_thresh
  • kern.sched.static_boost
  • kern.sched.idlespins
  • kern.sched.balance
  • kern.sched.steal_idle
  • kern.sched.steal_thresh
  • kern.sched.trysteal_limit
  • kern.sched.always_steal

MFC after: 1 week

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

khng requested review of this revision.May 10 2025, 9:00 AM
khng retitled this revision from sched: mark preempt_thresh and interact_score as RWTUN to sched: mark preempt_thresh and sched_interact as RWTUN.May 10 2025, 9:21 AM
khng planned changes to this revision.May 10 2025, 9:44 AM
khng retitled this revision from sched: mark preempt_thresh and sched_interact as RWTUN to sched: mark several kern.sched.* sysctls as CTLFLAG_RWTUN.
khng edited the summary of this revision. (Show Details)

This seems fine, sure.

sys/kern/sched_ule.c
3329

Why not this one?

sys/kern/sched_ule.c
3329

This one is being set up in sched_initticks() so I am not going to touch it.

This revision is now accepted and ready to land.May 11 2025, 5:35 PM