mirror of
https://github.com/sched-ext/scx.git
synced 2024-12-04 16:27:12 +00:00
678b10133d
Introduce scx_flash (Fair Latency-Aware ScHeduler), a scheduler that
focuses on ensuring fairness among tasks and performance predictability.
This scheduler is introduced as a replacement of the "lowlatency" mode
in scx_bpfland, that has been dropped in commit 78101e4
("scx_bpfland:
drop lowlatency mode and the priority DSQ").
scx_flash operates based on an EDF (Earliest Deadline First) policy,
where each task is assigned a latency weight. This weight is adjusted
dynamically, influenced by the task's static weight and how often it
releases the CPU before its full assigned time slice is used: tasks that
release the CPU early receive a higher latency weight, granting them
a higher priority over tasks that fully use their time slice.
The combination of dynamic latency weights and EDF scheduling ensures
responsive and stable performance, even in overcommitted systems, making
the scheduler particularly well-suited for latency-sensitive workloads,
such as multimedia or real-time audio processing.
Tested-by: Peter Jung <ptr1337@cachyos.org>
Tested-by: Piotr Gorski <piotrgorski@cachyos.org>
Signed-off-by: Andrea Righi <arighi@nvidia.com>
37 lines
842 B
INI
37 lines
842 B
INI
[scx_lavd]
|
|
sched: scx_lavd
|
|
sched_args: -v
|
|
stress_cmd: stress-ng -t 14 --aggressive -M -c `nproc` -f `nproc`
|
|
timeout_sec: 15
|
|
|
|
[scx_rusty]
|
|
sched: scx_rusty
|
|
sched_args: -v
|
|
stress_cmd: stress-ng -t 14 --aggressive -M -c `nproc` -f `nproc`
|
|
timeout_sec: 15
|
|
|
|
[scx_rustland]
|
|
sched: scx_rustland
|
|
sched_args: -v
|
|
stress_cmd: stress-ng -t 14 --aggressive -M -c `nproc` -f `nproc`
|
|
timeout_sec: 15
|
|
|
|
[scx_bpfland]
|
|
sched: scx_bpfland
|
|
sched_args: -v
|
|
stress_cmd: stress-ng -t 14 --aggressive -M -c `nproc` -f `nproc`
|
|
timeout_sec: 15
|
|
|
|
[scx_flash]
|
|
sched: scx_flash
|
|
sched_args:
|
|
stress_cmd: stress-ng -t 14 --aggressive -M -c `nproc` -f `nproc`
|
|
timeout_sec: 15
|
|
|
|
[scx_layered]
|
|
sched: scx_layered
|
|
sched_args: --run-example -v --stats 1
|
|
stress_cmd: stress-ng -t 14 --aggressive -M -c `nproc` -f `nproc`
|
|
timeout_sec: 15
|
|
bpftrace_scripts: dsq_lat.bt,process_runqlat.bt
|