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

From: Sebastian Andrzej Siewior

Date: Tue Nov 24 2026 - 02:53:40 EST


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?
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.
I could look into making the sysfs values appear in proc, too.

> Thanks,
> Juri

Sebastian