mirror of
https://github.com/sched-ext/scx.git
synced 2026-12-03 15:20:51 +00:00
The test scripts sleep a fixed few seconds after launching the scheduler and check sched_ext state once, which flakes when startup takes longer, as it does on large machines. Poll instead. The dynamic lifecycle test similarly raced killing the stress workers against removing their cgroup: retry the rmdir, as polling cgroup.procs is not enough when exiting tasks keep the cgroup busy after they stop being listed. The scripts also assumed the controllers they enable under the base cgroup are delegated from the root, which does not hold for cpuset under systemd (it delegates only cpu, memory and pids) nor for cpu on minimal systems that delegate nothing. Enable missing controllers in the root subtree_control first. The cpuset change test additionally recreates the base cgroup, which an earlier test's cleanup may have removed.