mirror of
https://github.com/sched-ext/scx.git
synced 2024-11-25 20:20:23 +00:00
622b61dd2f
The scx_rusty scheduler does not support hotplug, and expects a static host topology throughout its runtime. Though the kernel does have support for detecting hotplug events, we currently don't detect this in the kernel, nor surface it to user space when it happens. Now that we have scx_bpf_exit(), we can gracefully exit the kernel in the event of a hotplug, and communicate to user space that it should restart the scheduler. This patch adds that support to scx_rusty. Note that this assumes that we're running on a recent enough kernel that has scx_bpf_exit(). If it doesn't, then we instead just error out of the kernel scheduler and exit the application. Signed-off-by: David Vernet <void@manifault.com> |
||
---|---|---|
.. | ||
bpf-compat/gnu | ||
scx | ||
vmlinux |