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
F122359840: D50279.id155243.diff
Fri, Jul 4, 4:02 PM
F122322443: D50279.id155243.diff
Fri, Jul 4, 8:45 AM
Unknown Object (File)
Thu, Jul 3, 4:58 AM
Unknown Object (File)
Wed, Jul 2, 8:39 AM
Unknown Object (File)
Tue, Jul 1, 11:36 PM
Unknown Object (File)
Tue, Jul 1, 6:28 AM
Unknown Object (File)
Sun, Jun 29, 1:08 AM
Unknown Object (File)
Sat, Jun 28, 9:53 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 Skipped
Unit
Tests Skipped
Build Status
Buildable 64050
Build 60934: arc lint + arc unit

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