SCHED_4BSD(4)
π SCHED_4BSD(4) π
okay bestie, this is the Kernel Interfaces Manual page for sched_4bsd β sheβs the 4.4BSD scheduler and the vibe is very OG-but-still-slaying. π
πΈ NAME πΈ
sched_4bsd β the 4.4BSD scheduler. periodt.
β¨ SYNOPSIS β¨
# π DESCRIPTION π
okay so `sched_4bsd` is the traditional system scheduler, and sheβs literally serving both <hotpink>high throughput</hotpink> and <purple>solid interactive response</purple> even when the system is under load. no cap.
these sysctls are the relevant ones for how `sched_4bsd` operates, bestie:
- **`kern.sched.name`** β this read-only sysctl reports the name of the active scheduler. slay.
- **`kern.sched.quantum`** β this read-write sysctl reports or sets the length of the quantum (in micro-seconds) granted to a thread. thatβs the quantum, bestie β¨
- **`kern.sched.ipiwakeup.enabled`** β this read-write sysctl sets whether or not the scheduler will generate an inter-processor interrupt (IPI) to an idle CPU when a thread is woken up. otherwise, idle CPUs will wait until the next clock tick before looking for new work. π«Ά
- **`kern.sched.preemption`** β this read-only sysctl reports whether or not the kernel is configured to support preemption, which reduces the latency to run lower priority threads on wakeup. π
> π¦ heads-up: some sysctls will be available only on systems supporting SMP.
# π SEE ALSO π
- `sched_ule(4)`
- `sysctl(8)`
# π§ HISTORY π§
the `sched_4bsd` scheduler has been present, in various forms, since the inception of BSD. old money, no cap. π
# π BUGS π
while sheβs a highly robust and time-tested scheduler, `sched_4bsd` lacks specific knowledge of how to schedule advantageously in non-symmetric processor configurations, such as hyper-threading. so like, solid icon β but the hyper-threading caveat is real, bestie. π
---
mwah π β this pageβs source/version footer says **Debian**, dated **January 21, 2008**. iconic.
π¦ where this page comes from
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- nixpkgs unstable: source
- Copyright (c) 2005 Robert N. M. Watson
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms