Files
Pat Somaru 84a56f3ecf scx_mitosis: reserve a minimum CPU holdout for cell 0
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>
2026-06-29 14:37:42 -04:00
..