Re: [PATCH sched_ext/for-6.13 2/2] sched_ext: Enable the ops breather and eject BPF scheduler on softlockup

From: Tejun Heo
Date: Wed Nov 06 2024 - 18:07:58 EST


Hello,

On Wed, Nov 06, 2024 at 03:02:35PM -0800, Doug Anderson wrote:
...
> Honestly, it would feel better to me if the soft lockup timer didn't
> tell schedext to kill things but instead we just make some special
> exception for "schedext" tasks and exclude them from the softlockup
> detector because they're already being watched by their own watchdog.
> Would that be possible? Then tweaking the "softlockup" timeouts
> doesn't implicitly change how long schedext things can run.

Some systems can get into full blown live-lock condition where CPUs are
barely making forward progress through the scheduler and all normal (!RT &&
!DEADLINE) tasks are on sched_ext, so the only reasonable way to exclude
sched_ext would be disabling softlockup detection while sched_ext is
enabled which doesn't feel like a sound trade-off.

Thanks.

--
tejun