#ebpf #scheduler #linux-kernel #sched-ext #userspace #fifo

app scx_rlfifo

A simple FIFO scheduler in Rust that runs in user-space

7 releases (stable)

1.0.5 Oct 2, 2024
1.0.4 Sep 7, 2024
1.0.3 Aug 21, 2024
1.0.1 Jul 15, 2024
0.0.3 Jun 3, 2024

#308 in Unix APIs

Download history 224/week @ 2024-07-11 27/week @ 2024-07-18 99/week @ 2024-08-08 98/week @ 2024-08-15 47/week @ 2024-08-22 149/week @ 2024-09-05 26/week @ 2024-09-12 3/week @ 2024-09-19 81/week @ 2024-09-26 102/week @ 2024-10-03 15/week @ 2024-10-10

203 downloads per month

GPL-2.0-only

22KB
115 lines

scx_rlfifo

This is a single user-defined scheduler used within sched_ext, which is a Linux kernel feature which enables implementing kernel thread schedulers in BPF and dynamically loading them. Read more about sched_ext.

Overview

scx_rlfifo is a simple FIFO scheduler runs in user-space, based on the scx_rustland_core framework.

Typical Use Case

This scheduler is provided as a simple template that can be used as a baseline to test more complex scheduling policies.

Production Ready?

Definitely not. Using this scheduler in a production environment is not recommended, unless there are specific requirements that necessitate a basic FIFO scheduling approach. Even then, it's still recommended to use the kernel's SCHED_FIFO real-time class.

Dependencies

~28–40MB
~625K SLoC