Re: [PATCH v4 4/6] sched: Limit sysctl sched_rt_{period|runtime}_us to RT_GROUP_SCHED

From: Juri Lelli

Date: Tue Nov 24 2026 - 05:11:44 EST


Hello,

On 23/11/26 14:41, Sebastian Andrzej Siewior wrote:
> The admission control for SCHED_DL has been moved to sysfs and RT
> throttling has been moved (long ago) to the fair_server and its debugfs
> interface.
>
> This file remains to have an impact only on RT_GROUP_SCHED. Keeping it
> for ABI/ compatibility reasons makes no sense because its original
> purpose (RT throttling) is no longer served. Anyone changing this file
> and hoping to change the throttling behaviour will be surprised.
>
> Limit sysctl sched_rt_{period|runtime}_us to RT_GROUP_SCHED so everyone
> using this outdated file is aware.
>
> Signed-off-by: Sebastian Andrzej Siewior <bigeasy@xxxxxxxxxxxxx>
> ---

It looks like subject and changelog still describe the previous version,
as we are not removing the interface anymore?

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

Thanks,
Juri