BPF Opens Door to Linux Extensible Scheduling (Maybe with Rust!)
Hacking around over the holidays, Canonical Linux kernel engineer Andrea Righi wrote a Linux scheduler in Rust (and some help from the Berkeley Packet Filter) that in early tests outperforms the kernel’s own stock scheduler.
“I’m pretty shocked to see that it doesn’t just work, but it can even outperform the default Linux scheduler (EEVDF) with certain workloads” such as gaming, he wrote on X.
Though a prototype, it accomplished its mission, namely to “show that it’s possible to implement working schedulers running in user-space, that even outperform the default Linux scheduler under certain particular conditions.”