Rust-Written Linux Scheduler Showing Promising Results For Gaming Performance

Written by Michael Larabel in Linux Kernel on 16 January 2024 at 06:38 AM EST. 80 Comments
LINUX KERNEL
A Canonical engineer has been experimenting with implementing a Linux scheduler within the Rust programming language. His early results are interesting and hopeful around the potential of a Rust-based scheduler that works via sched_ext for implementing a scheduler using eBPF that can be loaded during run-time.

Andrea Righi who is a Linux kernel engineer at Ubuntu maker Canonical tweeted that he's been experimenting with a Rust scheduler:
"I ended up writing a Linux scheduler in Rust using sched-ext during Christmas break, just for fun. 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 (i.e., gaming)."

He shared a YouTube video showing a game with the "scx_rustland" scheduler outperforming the default Linux kernel scheduler while running a parallel kernel build in the background:


For those interested the code is hosted on GitHub. It's an interesting Christmas break adventure and will be interesting to see where it leads.
Related News
About The Author
Michael Larabel

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.

Popular News This Week