Re: [PATCH v4 4/6] sched: Limit sysctl sched_rt_{period|runtime}_us to RT_GROUP_SCHED
From: Sebastian Andrzej Siewior
Date: Tue Nov 24 2026 - 09:00:16 EST
On 2026-11-24 11:11:29 [+0100], Juri Lelli wrote:
> Hello,
Hi,
> It looks like subject and changelog still describe the previous version,
> as we are not removing the interface anymore?
Updated:
|sched: Issue a warning for sysctl sched_rt_{period|runtime}_us on !RT_GROUP_SCHED
|The admission control for SCHED_DL has been moved to sysfs and updates
|via proc are mirrored to the sysfs interface. The sysctl knob controls
|RT throttling within a RT group if RT_GROUP_SCHED is enabled. Without
|RT_GROUP_SCHED it serves no further purpose.
|Add a warning in the !RT_GROUP_SCHED case to encourage people to move to
|the new interface.
|Move the declaration of sysctl_sched_rt_{period|runtime} to
|RT_GROUP_SCHED because it is not accessed outside this define.
> > kernel/sched/rt.c | 8 ++++++++
> > kernel/sched/sched.h | 5 +++--
> > 2 files changed, 11 insertions(+), 2 deletions(-)
> >
> > diff --git a/kernel/sched/rt.c b/kernel/sched/rt.c
> > index bd37dbf2bebbe..258b187459bb9 100644
> > --- a/kernel/sched/rt.c
> > +++ b/kernel/sched/rt.c
> > @@ -2877,6 +2877,14 @@ static int sched_rt_handler(const struct ctl_table *table, int write, void *buff
> > ret = proc_dointvec_minmax(table, write, buffer, lenp, ppos);
> >
> > if (!ret && write) {
> > + if (!IS_ENABLED(CONFIG_RT_GROUP_SCHED)) {
> > + const char *msg =
> > + "Please note that DL admission control (via sched_rt_period_us, sched_rt_runtime_us) moved to sysfs.\n"
> > + "This update will be mirrored. Controls for RT throttling moved to the fair_server.\n"
> > + "This will not be mirrored. The fair_server settings are under /sys/kernel/sched/cpuX/.\n";
>
> I am not sure a user who hasn't followed this thread will understand
> what "mirrored" means in this context. What about something like (names
> depending on the unit discussion):
>
> sched_rt_{period,runtime}_us only control SCHED_DEADLINE admission control,
> now also available in /sys/kernel/sched/dl_{period,runtime}_us.
> RT throttling is done by the fair server, see /sys/kernel/sched/cpuX/fair_server_{period,runtime}.
Updated.
> Thanks,
> Juri
Sebastian