Re: [PATCH v4 2/6] sched: Move DL's admission control to sysfs
From: Juri Lelli
Date: Tue Nov 24 2026 - 04:58:12 EST
On 24/11/26 08:53, Sebastian Andrzej Siewior wrote:
> On 2026-11-24 08:30:50 [+0100], Juri Lelli wrote:
> > Hello,
>
> Hi,
>
> > On 23/11/26 14:41, Sebastian Andrzej Siewior wrote:
> >
> > ...
> >
> > > @@ -2882,26 +2881,18 @@ static int sched_rt_handler(const struct ctl_table *table, int write, void *buff
> > > if (ret)
> > > goto undo;
> > >
> > > - ret = sched_dl_global_validate();
> > > + ret = sched_dl_try_boundary(sysctl_sched_rt_runtime,
> > > + sysctl_sched_rt_period);
> > > if (ret)
> > > goto undo;
> > > -
> > > - sched_dl_do_global();
> >
> > 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?