mirror of
https://github.com/JakeHillion/scx.git
synced 2026-12-03 18:20:51 +00:00
scx_tickless is a server-oriented scheduler, derived from scx_central,
designed to minimize OS noise and maximize performance isolation.
The scheduler works by routing all scheduling events through a pool of
primary CPUs assigned to handle these events. This allows disabling the
scheduler's tick on other CPUs, reducing OS noise.
Tasks are added to a global DSQ, and the primary CPUs distribute them
across the other "tickless" CPUs, sending preemption events via IPC in
case multiple tasks are competing for the same CPU.
In situations where the system is not overcommitted, tasks can run
uninterrupted on their assigned CPUs, leading to better performance
isolation and lower OS noise.
Typical use cases include cloud computing, virtualization and high
performance computing workloads. This scheduler is *not* designed for
latency-sensitive workloads.
NOTE: in order to effectively disable ticks on the "tickless" CPUs the
kernel must be booted with nohz_full.
Example:
- start a VM running a CPU-intensive workload:
$ vng -vr -- stress-ng -c 0
- on the host measure the rate of sched_tick events/sec:
$ bpftrace -e 'kprobe:sched_tick { @ticks++; } interval:s:1 { print(@ticks); clear(@ticks); }'
With the default scheduler:
@ticks: 1027
@ticks: 1021
@ticks: 1016
@ticks: 1016
@ticks: 1029
@ticks: 1024
@ticks: 1015
@ticks: 1022
@ticks: 1014
@ticks: 1056
...
With scx_tickless:
@ticks: 1000
@ticks: 1001
@ticks: 1001
@ticks: 1000
@ticks: 1001
@ticks: 1000
@ticks: 1000
@ticks: 1002
@ticks: 1000
@ticks: 1000
...
Tested-by: Piotr Gorski <piotrgorski@cachyos.org>
Signed-off-by: Andrea Righi <arighi@nvidia.com>
Symbolic link
1 line
16 B
Plaintext
Symbolic link
1 line
16 B
Plaintext
../../../LICENSE |