~/talk

Crafting a Linux kernel scheduler in Rust

Talkat RustLab 2024 · 2024-11-09..11-11· [rust]
slides:none on file

A user-space Linux CPU scheduler called scx_rustland is implemented in Rust via sched-ext and BPF, proving a kernel-like scheduler can run outside the kernel, be loaded/unloaded at runtime, and be watchdog-protected. The prototype beats the upstream scheduler in a gaming kernel‑build stress test (60 FPS vs ~26 FPS) by prioritizing voluntary context‑switching pipeline threads. BPF verifier limits, stack/instruction caps, and occasional session/page‑fault workarounds remain; the design is suitable for rapid prototyping and eventual kernel reimplementation.

AI-written summary · about

  1. 0:00Linux kernel scheduling intro
  2. 4:22Single scheduler challenges
  3. 7:11BPF and skx schedulers
  4. 11:46BPF limits with Rust
  5. 16:08Rustland scheduler demo
  6. 22:17Rustland vs default scheduler
  7. 25:07Scheduler dev framework
  8. 28:19AI scheduler dev
  9. 30:04Performance results
  10. 31:53Rust for kernel scheduling
  11. 33:18Extending BPF to subsystems
  12. 36:29Dynamic scheduler loading
  13. 39:40Q&A: Scheduler selection
  14. 42:50Q&A: BPF overhead potential
  15. 46:24Q&A: Safety risks
  16. 49:41Q&A: BPF vs Rust scheduling
  17. 52:09Q&A: Overhead directions
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.