15 releases (7 breaking)

new 0.8.1 Jun 3, 2024
0.7.0 Apr 4, 2024
0.6.0 Jan 25, 2024
0.4.1 Dec 28, 2023
0.2.0 Nov 30, 2023

#564 in Unix APIs

Download history 11/week @ 2024-02-19 18/week @ 2024-02-26 106/week @ 2024-03-11 2/week @ 2024-03-18 110/week @ 2024-04-01 8/week @ 2024-04-08 22/week @ 2024-04-15 206/week @ 2024-04-29 1/week @ 2024-05-06 10/week @ 2024-05-13 32/week @ 2024-05-20 29/week @ 2024-05-27

77 downloads per month
Used in 5 crates

GPL-2.0-only

1.5MB
1.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.

Thie 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.

Thie 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

~21–32MB
~545K SLoC