Ubuntu Blog Talks Up Rust Schedulers, Potential For Micro-Kernel Design Future

Written by Michael Larabel in Ubuntu on 26 February 2024 at 08:27 PM EST. 55 Comments
UBUNTU
Ubuntu/Canonical has for a while now promoted the prospects of Rust programming within the Linux kernel and one of their kernel engineers, Andrea Righi, wrote a Rust-written Linux scheduler with promising results that leverages eBPF for dynamically loading it at run-time. While Ubuntu isn't yet committing to using it as part of their distribution, appearing on the Ubuntu blog today was more praise for the work and even talking about the potential for a "micro-kernel design" in the future via leveraging Rust and eBPF.

Righi posted today on the Ubuntu blog around working on new Linux scheduler implementations using sched-ext for eBPF-loaded scheduler implementations, Rust, and Ubuntu. Beyond the developer advantages, the combination could yield end-user advantages like being able to load optimized schedulers based upon user workloads and other specialized cases depending upon the user.

The blog post goes on to note how "scx_rustland" can be utilized with Ubuntu 24.04 if desired via a PPA. This Rust scheduler work has shown to be a potentially viable alternative to the default EEVDF scheduler recently mainlined to the kernel.

Canonical/Ubuntu graphic


The Ubuntu blog post concludes with:
"We are heading towards a micro-kernel design that has the potential to pave the way to certification on Linux: in the aforementioned scenario, if the user-space scheduler crashes, tasks will seamlessly transition to the default in-kernel scheduler, ensuring continuous system usability without any downtime.

This suggests that a similar approach could be used in other subsystems as well, allowing the Linux kernel to provide fully redundant and crash-safe systems."

While this is outside the scope of the upcoming Ubuntu 24.04 LTS release, it's rather intriguing to see these comments on the Ubuntu blog and at a time when Canonical has been ramping up their performance and engineering teams. It will be interesting to see what sort of innovations in this area they may be pursuing in the future with the scx_rustland work already proving quite interesting on its own. Interesting times ahead.
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