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

From: Sebastian Andrzej Siewior

Date: Tue Nov 24 2026 - 05:35:21 EST


On 2026-11-24 10:57:54 [+0100], Juri Lelli wrote:
> > > Nothing updates sysctl_sched_rt_{period,runtime} when the sysfs files
> > > are written, but this always passes both, so a procfs write of one knob
> > > resets the other to its stale sysctl value? E.g. write 2000000 to
> > > dl_period_us, then -1 to sched_rt_runtime_us: admission control is
> > > disabled as expected, but sysctl_sched_rt_period is still 1000000 and
> > > the period is back to 1s.
> >
> > You want this working both ways?
>
> Want is definitely too strong of a word. :)
:)

> > 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.

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

Sebastian