23 releases (8 stable)

new 1.0.7 Nov 20, 2024
1.0.5 Oct 2, 2024
1.0.1 Jul 15, 2024
0.8.1 Jun 3, 2024
0.2.0 Nov 30, 2023

#1044 in Unix APIs

Download history 3/week @ 2024-07-29 111/week @ 2024-08-05 23/week @ 2024-08-12 181/week @ 2024-08-19 18/week @ 2024-08-26 166/week @ 2024-09-02 46/week @ 2024-09-09 78/week @ 2024-09-16 41/week @ 2024-09-23 239/week @ 2024-09-30 36/week @ 2024-10-07 29/week @ 2024-10-14 24/week @ 2024-10-21 14/week @ 2024-10-28 135/week @ 2024-11-04 28/week @ 2024-11-11

202 downloads per month
Used in 7 crates

GPL-2.0-only

8MB
3.5K SLoC

Utility collection for sched_ext schedulers

sched_ext is a Linux kernel feature which enables implementing kernel thread schedulers in BPF and dynamically loading them.

This crate is a collection of utilities for sched_ext scheduler implementations which use Rust for userspace component. This enables implementing hot paths in BPF while offloading colder and more complex operations to userspace Rust code which can be significantly more convenient and powerful.

Please see documentation for more details.


lib.rs:

Utility collection for sched_ext schedulers

sched_ext is a Linux kernel feature which enables implementing kernel thread schedulers in BPF and dynamically loading them.

This crate is a collection of utilities for sched_ext scheduler implementations which use Rust for userspace component. This enables implementing hot paths in BPF while offloading colder and more complex operations to userspace Rust code which can be significantly more convenient and powerful.

The utilities can be put into two broad categories.

Build Utilities

BPF being its own CPU architecture and independent runtime environment, build environment and steps are already rather complex. The need to interface between two different languages - C and Rust - adds further complexities. This crate contains struct BpfBuilder which is to be used from build.rs and automates most of the process.

Utilities for Rust Userspace Component

Utility modules which can be useful for userspace component of sched_ext schedulers.

Dependencies

~23–35MB
~603K SLoC