lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20251105135911.GQ4067720@noisy.programming.kicks-ass.net>
Date: Wed, 5 Nov 2025 14:59:11 +0100
From: Peter Zijlstra <peterz@...radead.org>
To: Andrea Righi <arighi@...dia.com>
Cc: Ingo Molnar <mingo@...hat.com>, Juri Lelli <juri.lelli@...hat.com>,
	Vincent Guittot <vincent.guittot@...aro.org>,
	John Stultz <jstultz@...gle.com>,
	Dietmar Eggemann <dietmar.eggemann@....com>,
	Steven Rostedt <rostedt@...dmis.org>,
	Ben Segall <bsegall@...gle.com>, Mel Gorman <mgorman@...e.de>,
	Valentin Schneider <vschneid@...hat.com>, Tejun Heo <tj@...nel.org>,
	David Vernet <void@...ifault.com>,
	Changwoo Min <changwoo@...lia.com>, Shuah Khan <shuah@...nel.org>,
	Joel Fernandes <joelagnelf@...dia.com>,
	Christian Loehle <christian.loehle@....com>,
	Emil Tsalapatis <emil@...alapatis.com>,
	Luigi De Matteis <ldematteis123@...il.com>,
	sched-ext@...ts.linux.dev, bpf@...r.kernel.org,
	linux-kselftest@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCHSET v10 sched_ext/for-6.19] Add a deadline server for
 sched_ext tasks

On Wed, Nov 05, 2025 at 02:47:39PM +0100, Andrea Righi wrote:
> On Wed, Oct 29, 2025 at 08:08:37PM +0100, Andrea Righi wrote:
> > sched_ext tasks can be starved by long-running RT tasks, especially since
> > RT throttling was replaced by deadline servers to boost only SCHED_NORMAL
> > tasks.
> > 
> > Several users in the community have reported issues with RT stalling
> > sched_ext tasks. This is fairly common on distributions or environments
> > where applications like video compositors, audio services, etc. run as RT
> > tasks by default.
> > 
> > Example trace (showing a per-CPU kthread stalled due to the sway Wayland
> > compositor running as an RT task):
> > 
> >  runnable task stall (kworker/0:0[106377] failed to run for 5.043s)
> >  ...
> >  CPU 0   : nr_run=3 flags=0xd cpu_rel=0 ops_qseq=20646200 pnt_seq=45388738
> >            curr=sway[994] class=rt_sched_class
> >    R kworker/0:0[106377] -5043ms
> >        scx_state/flags=3/0x1 dsq_flags=0x0 ops_state/qseq=0/0
> >        sticky/holding_cpu=-1/-1 dsq_id=0x8000000000000002 dsq_vtime=0 slice=20000000
> >        cpus=01
> > 
> > This is often perceived as a bug in the BPF schedulers, but in reality
> > schedulers can't do much: RT tasks run outside their control and can
> > potentially consume 100% of the CPU bandwidth.
> > 
> > Fix this by adding a sched_ext deadline server, so that sched_ext tasks are
> > also boosted and do not suffer starvation.
> > 
> > Two kselftests are also provided to verify the starvation fixes and
> > bandwidth allocation is correct.
> 
> Peter, Juri, this has now been tested quite extensively on our side and
> we're considering applying these patches to Tejun's sched_ext branch.
> 
> Do you have any objections or concerns?

Yeah, I want to finish this first:

  https://lkml.kernel.org/r/20251101000057.GA2184199@noisy.programming.kicks-ass.net

Because as is, the whole dl_server stuff isn't quite right.

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ