mirror of
https://github.com/sched-ext/scx.git
synced 2024-11-28 21:50:23 +00:00
66dea6262b
Switching the scheduler requires changing SCX_SCHEDULER (and potentially also SCX_FLAGS) in /etc/default/scx. This patch allows overriding these settings using systemd environment variables SCX_SCHEDULER_OVERRIDE and SCX_FLAGS_OVERRIDE, without changing the default configuration. Example: > grep SCX_SCHEDULER /etc/default/scx SCX_SCHEDULER=scx_rusty > sudo systemctl status scx ... Main PID: 8021 (scx_rusty) ... > sudo systemctl set-environment SCX_SCHEDULER_OVERRIDE=scx_rustland > sudo systemctl restart scx > sudo systemctl status scx ... Main PID: 4021 (scx_rustland) ... This feature can be useful for quickly testing different schedulers and settings, without altering the global system configuration. Signed-off-by: Pietro Righi <pietro.righi.email@gmail.com> |
||
---|---|---|
.. | ||
journald@sched-ext.conf | ||
meson.build | ||
scx.service |