Skip to main content

Crate scx_cake

Crate scx_cake 

Source

Re-exports§

pub use bpf_intf::*;

Modules§

bpf_intf
bpf_skel 🔒
types

Structs§

BpfLinks
BpfMaps
BpfProgs
BpfSkel
BpfSkelBuilder
HandoffProbe 🔒
Re-execute this image to service a kernel-requested restart.
OpenBpfMaps
OpenBpfProgs
OpenBpfSkel
Opts 🔒
scx_cake: a gaming-first sched_ext scheduler — one master algorithm on kernel primitives, no feature flags, no knobs, no runtime telemetry. Placement is the kernel’s idle-CPU pick with direct dispatch on a hit. Under saturation, wakeups queue on one global vtime queue while slice-expired tasks requeue on their own CPU’s queue (“wakeups global, continuations local”), and each CPU dispatches the earliest eligible of the two. The time slice is a compile-time constant.
Scheduler 🔒
SinkMonitor 🔒
Live IRQ-sink tracking riding the 1 s run loop (§G30, §G33, §R.25/§R.26).
StructOps

Constants§

SCHEDULER_NAME 🔒

Functions§

drop_all_capabilities 🔒
Clear the effective, permitted, and inheritable capability sets.
main 🔒
probe_handoff_hop_ns 🔒
Measure one wake + block + switch hop on THIS host.
read_irq_ticks 🔒
Per-CPU time spent in interrupt handlers, in kernel ticks, from /proc/stat (irq + softirq columns, CONFIG_IRQ_TIME_ACCOUNTING).
reexec_self 🔒
sinks_by_widest_gap 🔒
Split the host’s own handler-time distribution at its widest gap: sinks are the CPUs above the cut (§G33, §R.26).