Re: [RFC][PATCH] sched_ext: Allow consuming local tasks when aborting
From: Tejun Heo
Date: Fri May 08 2026 - 13:59:28 EST
Hello, Andrea.
On Fri, May 08, 2026 at 05:47:36PM +0200, Andrea Righi wrote:
> There are few selftests that use stress-ng in tools/testing/selftests, maybe we
> can put a script there calling stress-ng, if present, and a sched similar to
> scx_simple and if stress-ng isn't present, skip the test. Do you remember the
> stress-ng command you were using? Probably we can even reproduce the issue
> adding something to the C part of the scheduler that mimics what stress-ng is
> doing.
Dug it out of shell history on the test box. It was the workload from
b7b3b2dbae73 ("sched_ext: Split the global DSQ per NUMA node"):
stress-ng --race-sched 1024
stress-ng --workload 80 --workload-threads 10
Run both in parallel on a 2x EPYC 7642 while flipping a SCX scheduler on
and off in a loop and the live-lock reproduced reliably.
Thanks.
--
tejun