SCHED_ULE(4)

πŸ“¦ version 15.1, in freebsd 14.5, freebsd 15.1, nixpkgs unstable

SCHED_ULE(4) β€” ULE scheduler πŸ’…

okay so bestie, this is the SCHED_ULE(4) page from the Kernel Interfaces Manual, and we're talking about the ULE scheduler. it's giving main character energy, fr fr β€” we are obsessed, no cap. πŸ¦‹

✨ NAME ✨

sched_ule β€” ULE scheduler

✨ SYNOPSIS ✨

options SCHED_ULE

πŸ’– DESCRIPTION πŸ’–

okay so the sched_ule scheduler provides a number of advanced scheduler features not present in sched_4bsd(4), the traditional system scheduler. these features address SMP and interactivity and include:

  • Thread CPU affinity. 🧡 your thread can have a fave CPU, lowkey.
  • CPU topology awareness, including for hyper-threading. πŸ–₯️ it knows the vibes of your CPU layout β€” vibe check passed.
  • Per-CPU run queues. πŸ‘‘ each CPU gets its own little queue moment.
  • Interactivity heuristics that detect interactive applications and schedules them preferentially under high load. πŸ”₯ under high load, interactive apps get prioritized β€” periodt.

the following sysctls are relevant to the operation of sched_ule:

kern.sched.name

this read-only sysctl reports the name of the active scheduler. it's literally just telling you which scheduler is the main character rn, ngl. πŸ’…

kern.sched.quantum

this read-write sysctl reports or sets the length of the quantum (in micro-seconds) granted to a thread. yes bestie, read it and write it β€” highkey iconic, iykyk. πŸŽ€

🌈 SEE ALSO 🌈

🌸 HISTORY 🌸

the sched_ule scheduler first appeared in FreeBSD 5.1. periodt. ✨

πŸ‘‘ AUTHORS πŸ‘‘

Jeff Roberson <jeff@FreeBSD.org> 🫢


source/version: Debian Β· date: August 10, 2012 Β· SCHED_ULE(4) πŸ’–

πŸ“¦ where this page comes from