mirror of
https://github.com/sched-ext/scx.git
synced 2024-11-28 13:40:28 +00:00
3bd15be840
In scx_rlfifo, we're currently using topo.nr_cpus_possible() to determine how many possible CPU IDs we could have on the system. To properly support systems whose disabled CPUs may be in the middle of the range of possible CPU IDs, let's instead use topo.nr_cpu_ids() so that we don't accidentally dispatch to an invalid DSQ. Signed-off-by: David Vernet <void@manifault.com> |
||
---|---|---|
.. | ||
src | ||
.gitignore | ||
build.rs | ||
Cargo.toml | ||
LICENSE | ||
meson.build | ||
README.md | ||
rustfmt.toml |
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.