14 releases (7 breaking)

new 0.8.0 Apr 29, 2024
0.6.0 Jan 25, 2024
0.4.1 Dec 28, 2023
0.2.0 Nov 30, 2023

#579 in Unix APIs

Download history 53/week @ 2024-01-09 11/week @ 2024-01-16 51/week @ 2024-01-23 3/week @ 2024-01-30 13/week @ 2024-02-20 16/week @ 2024-02-27 63/week @ 2024-03-05 43/week @ 2024-03-12 2/week @ 2024-03-19 2/week @ 2024-03-26 111/week @ 2024-04-02 7/week @ 2024-04-09 20/week @ 2024-04-16

140 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

~20–31MB
~533K SLoC