Files
Tejun Heo 1e9d241b07 scx_mitosis: Make the test scripts robust on real machines
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.
2026-08-28 12:30:52 -10:00
..