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
Unknown Object (File)
Sun, Oct 12, 5:22 PM
Unknown Object (File)
Wed, Sep 24, 7:35 AM
Unknown Object (File)
Sep 15 2025, 12:24 PM
Unknown Object (File)
Sep 3 2025, 3:47 PM
Unknown Object (File)
Sep 2 2025, 11:48 AM
Unknown Object (File)
Aug 26 2025, 12:54 PM
Unknown Object (File)
Aug 26 2025, 11:02 AM
Unknown Object (File)
Aug 26 2025, 2:37 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