Reimplementing the Linux Kernel Scheduler 100% in Rust (Keynote)

In previous RustLab editions, we showed how to build a working Linux kernel
scheduler in user space with Rust, using a C-based BPF layer to channel
scheduling events between the kernel and the user-space Rust scheduler.

The talk will show what it takes to compile Rust for BPF, how to reproduce
Linux's EEVDF fair scheduling behavior, and how this implementation performs
against the default kernel scheduler written in C.

LEVEL: Advanced

Place
Main Hall
Length
45 min
When
November 3rd, 2026
09:30

Abstract

In previous RustLab editions, we showed how to build a working Linux kernel scheduler in user space with Rust, using a C-based BPF layer to channel scheduling events between the kernel and the user-space Rust scheduler.

`scx_reevdf` takes a step further, bringing Rust directly into the kernel's scheduling path: both its user-space loader and BPF scheduler are written in Rust. Scheduling decisions happen in the kernel, with no C BPF source layer or round trips to a user-space scheduler for each scheduling event.

Built on `sched_ext`, the project re-implements the Linux EEVDF (Eligible Earliest Virtual Deadline First) fair scheduler entirely in Rust, allowing it to safely replace the in-kernel scheduler at runtime without the risk of crashing the system.

Task contexts, scheduling queues and topology information all live in BPF arena memory and the same Rust abstractions can be used to access these structures from both the kernel and user space, without any translation layer, message-passing protocol, or memory copying.

The talk will show what it takes to compile Rust for BPF, how to reproduce Linux's EEVDF fair scheduling behavior, and how this implementation performs against the default kernel scheduler written in C.

RustLab is a conference made by Develer.
Develer is a company based in Campi Bisenzio, near Florence. Our motto is : "Technology to give life to your products". We produce hardware and software to create exceptional products and to improve industrial processes and people's well being.
In Develer we have passion for the new technologies and we offer our clients effective solutions that are also efficient, simple and safe for the end users. We also believe in a friendly and welcoming environment where anybody can give their contribution. This passion and this vision are what we've been driven to organize our conference "made by developers for developers".

Subscribe to our newsletter

We hate spam just as much as you do, which is why we promise to only send you relevant communications. We respect your privacy and will never share your information with third parties.
©2026 RustLab | The international conference on Rust in Italy-Design & devCantiere Creativo-Made withDatoCMS