#linux-kernel #scheduler #userspace #fifo #bpf #thread #sched-ext

app scx_rlfifo

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

11 stable releases

1.0.10 Mar 6, 2025
1.0.8 Dec 16, 2024
1.0.6 Nov 6, 2024
1.0.1 Jul 15, 2024
0.0.3 Jun 3, 2024

#207 in Unix APIs

Download history 1/week @ 2024-11-23 24/week @ 2024-11-30 118/week @ 2024-12-07 147/week @ 2024-12-14 15/week @ 2024-12-21 15/week @ 2024-12-28 132/week @ 2025-02-01 19/week @ 2025-02-08 9/week @ 2025-02-15 3/week @ 2025-02-22 99/week @ 2025-03-01 29/week @ 2025-03-08

140 downloads per month

GPL-2.0-only

20KB
112 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

~53MB
~634K SLoC