mirror of
https://github.com/sched-ext/scx.git
synced 2026-12-03 15:20:51 +00:00
compute_cpu_assignments bails when cell 0 -- the catch-all for CPUs no child cgroup's cpuset claims -- ends up with zero CPUs, which happens once child cpusets collectively cover every host CPU. The bail propagates up and exits the scheduler mid-recompute. Reserve a configurable number of CPUs for cell 0 via --cell0-min-cpus (default 0, off) before the cpuset-based assignment runs. Prefer CPUs that no child cpuset claims; when those run out, take from the cells evenly, largest first, but never a cell's last CPU, so the reservation can't starve a child into the same bail. This also lets operators set a minimum size for cell 0. Signed-off-by: Pat Somaru <patso@likewhatevs.io>