* Realtime throttling and Real-Time group scheduling
@ 2025-10-20 8:54 KHUENY.Gerhard
2025-10-20 9:36 ` John Ogness
0 siblings, 1 reply; 4+ messages in thread
From: KHUENY.Gerhard @ 2025-10-20 8:54 UTC (permalink / raw)
To: 'linux-rt-users@vger.kernel.org'
Hi,
I'm running a 6.12.39-rt Linux kernel and have been experimenting with runtime throttling on my embedded hardware.
However, it seems that the settings for sched_rt_period_us and sched_rt_runtime_us have no effect. In my kernel configuration, CONFIG_RT_GROUP_SCHED is not set.
Is my understanding correct that CONFIG_RT_GROUP_SCHED is not required to throttle real-time tasks?
Best regards,
Gerhard
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Realtime throttling and Real-Time group scheduling
2025-10-20 8:54 Realtime throttling and Real-Time group scheduling KHUENY.Gerhard
@ 2025-10-20 9:36 ` John Ogness
2025-10-21 9:13 ` KHUENY.Gerhard
0 siblings, 1 reply; 4+ messages in thread
From: John Ogness @ 2025-10-20 9:36 UTC (permalink / raw)
To: KHUENY.Gerhard, 'linux-rt-users@vger.kernel.org'
Hi Gerhard,
On 2025-10-20, KHUENY.Gerhard <Gerhard.KHUENY@bachmann.info> wrote:
> I'm running a 6.12.39-rt Linux kernel and have been experimenting with
> runtime throttling on my embedded hardware. However, it seems that
> the settings for sched_rt_period_us and sched_rt_runtime_us have no
> effect. In my kernel configuration, CONFIG_RT_GROUP_SCHED is not set.
>
> Is my understanding correct that CONFIG_RT_GROUP_SCHED is not required
> to throttle real-time tasks?
Yes. But instead of adjusting "throttling", you adjust the guaranteed
bandwidth for !rt tasks. You can read about the fair deadline server in
its original commit message [0].
Basically you can adjust these debugfs files:
/sys/kernel/debug/sched/fair_server/cpu*/runtime
to guarantee bandwith for !rt tasks.
And yes, we are aware that proper documentation for this is missing.
John Ogness
[0] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/Documentation?&id=a110a81c52a9de73e2e57e826dd3bf0fd4c22226
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Realtime throttling and Real-Time group scheduling
2025-10-20 9:36 ` John Ogness
@ 2025-10-21 9:13 ` KHUENY.Gerhard
2025-10-21 14:43 ` John Ogness
0 siblings, 1 reply; 4+ messages in thread
From: KHUENY.Gerhard @ 2025-10-21 9:13 UTC (permalink / raw)
To: 'John Ogness'
Cc: KHUENY.Gerhard, 'linux-rt-users@vger.kernel.org'
> -----Ursprüngliche Nachricht-----
> Von: John Ogness <john.ogness@linutronix.de>
> Gesendet: Montag, 20. Oktober 2025 11:36
> An: KHUENY.Gerhard <Gerhard.KHUENY@bachmann.info>; 'linux-rt-
> users@vger.kernel.org' <linux-rt-users@vger.kernel.org>
> Betreff: Re: Realtime throttling and Real-Time group scheduling
>
>
> Hi Gerhard,
>
> On 2025-10-20, KHUENY.Gerhard <Gerhard.KHUENY@bachmann.info>
> wrote:
> > I'm running a 6.12.39-rt Linux kernel and have been experimenting with
> > runtime throttling on my embedded hardware. However, it seems that
> > the settings for sched_rt_period_us and sched_rt_runtime_us have no
> > effect. In my kernel configuration, CONFIG_RT_GROUP_SCHED is not set.
> >
> > Is my understanding correct that CONFIG_RT_GROUP_SCHED is not required
> > to throttle real-time tasks?
>
> Yes. But instead of adjusting "throttling", you adjust the guaranteed
> bandwidth for !rt tasks. You can read about the fair deadline server in its
> original commit message [0].
>
> Basically you can adjust these debugfs files:
>
> /sys/kernel/debug/sched/fair_server/cpu*/runtime
>
> to guarantee bandwith for !rt tasks.
>
> And yes, we are aware that proper documentation for this is missing.
>
> John Ogness
>
> [0]
> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/Do
> cumentation?&id=a110a81c52a9de73e2e57e826dd3bf0fd4c22226
Thanks for clarification. So this means that if CONFIG_RT_GROUP_SCHED is not set, the parameters /proc/sys/kernel/sched_rt_period and /proc/sys/kernel/sched_rt_runtime have no effect?
Best,
Gerhard
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Realtime throttling and Real-Time group scheduling
2025-10-21 9:13 ` KHUENY.Gerhard
@ 2025-10-21 14:43 ` John Ogness
0 siblings, 0 replies; 4+ messages in thread
From: John Ogness @ 2025-10-21 14:43 UTC (permalink / raw)
To: KHUENY.Gerhard; +Cc: KHUENY.Gerhard, 'linux-rt-users@vger.kernel.org'
On 2025-10-21, KHUENY.Gerhard <Gerhard.KHUENY@bachmann.info> wrote:
>> > I'm running a 6.12.39-rt Linux kernel and have been experimenting with
>> > runtime throttling on my embedded hardware. However, it seems that
>> > the settings for sched_rt_period_us and sched_rt_runtime_us have no
>> > effect. In my kernel configuration, CONFIG_RT_GROUP_SCHED is not set.
>> >
>> > Is my understanding correct that CONFIG_RT_GROUP_SCHED is not required
>> > to throttle real-time tasks?
>>
>> Yes. But instead of adjusting "throttling", you adjust the guaranteed
>> bandwidth for !rt tasks. You can read about the fair deadline server in its
>> original commit message [0].
>>
>> Basically you can adjust these debugfs files:
>>
>> /sys/kernel/debug/sched/fair_server/cpu*/runtime
>>
>> to guarantee bandwith for !rt tasks.
>>
>> And yes, we are aware that proper documentation for this is missing.
>>
>> John Ogness
>>
>> [0]
>> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/Do
>> cumentation?&id=a110a81c52a9de73e2e57e826dd3bf0fd4c22226
>
> Thanks for clarification. So this means that if CONFIG_RT_GROUP_SCHED
> is not set, the parameters /proc/sys/kernel/sched_rt_period and
> /proc/sys/kernel/sched_rt_runtime have no effect?
They have no effect on the "RT throttling" feature, which does not exist
for CONFIG_RT_GROUP_SCHED=n. See where it was removed here [1].
However, the parameters are still used for admission control of
SCHED_DEADLINE tasks. And likewise they also affect what values can be
written to /sys/kernel/debug/sched/fair_server/cpu*/runtime to configure
the fair deadline server.
Note that this is all new starting with v6.12.
John Ogness
[1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=5f6bd380c7bdbe10f7b4e8ddcceed60ce0714c6d
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2025-10-21 14:43 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-20 8:54 Realtime throttling and Real-Time group scheduling KHUENY.Gerhard
2025-10-20 9:36 ` John Ogness
2025-10-21 9:13 ` KHUENY.Gerhard
2025-10-21 14:43 ` John Ogness
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).