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
F125056097: D50279.diff
Sat, Aug 2, 10:48 PM
F125016410: D50279.id155242.diff
Sat, Aug 2, 10:46 AM
Unknown Object (File)
Wed, Jul 30, 3:46 AM
Unknown Object (File)
Sun, Jul 27, 12:48 PM
Unknown Object (File)
Thu, Jul 24, 11:09 AM
Unknown Object (File)
Tue, Jul 22, 12:57 AM
Unknown Object (File)
Mon, Jul 21, 12:49 PM
Unknown Object (File)
Sat, Jul 12, 6:10 PM
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