Re: [PATCH v4 2/6] sched: Move DL's admission control to sysfs

From: Juri Lelli

Date: Tue Nov 24 2026 - 06:04:40 EST


On 24/11/26 11:35, Sebastian Andrzej Siewior wrote:
> On 2026-11-24 10:57:54 [+0100], Juri Lelli wrote:

...

> > > I assumed you use the proc interface because you don't know better. The
> > > warning makes you aware that the throttling knobs and DL knobs moved to
> > > sysfs. The DL bits are mirror to the sysfs interface in case you ignore
> > > the warning and keep using proc.
> > > If you move to using sysfs then everything is fine. From here, going
> > > back to proc looks odd.
> >
> > Odd indeed, but I wondered if it might happen that a sysadmin configures
> > things properly using the new interface and some time later, say, an old
> > application that hasn't switched yet to the new interface resets/tweaks
> > using the old interface?
>
> Therefore I wanted to remove the old interface. The legitime users would
> want to change the default DL attributes. I am more afraid of those that
> intend to disable RT throttling and are failing to do so.

Agreed, that's the group to worry about, but they never touch sysfs, so
an error after sysfs was used wouldn't reach them; the warning and the
docs do.

> We could also make the proc interface return -EINVAL on read/ write once
> the sysfs was used. What about it?

Hummm, I'm not convinced. Whether old tools work would then depend on whether
somebody wrote to sysfs since boot, which isn't visible anywhere: LTP's
proc_sched_rt01 would fail again, just only sometimes?

Earlier you actually offered:

> I could look into making the sysfs values appear in proc, too.

This might be simpler. For !RT_GROUP_SCHED, procfs could become a view
of the sysfs_dl_* state, with no second copy. sysctl_sched_rt_* would
only be needed for RT_GROUP_SCHED (which is marked BROKEN anyway, and
what we end up with depends on the HCBS discussion).