Re: [RFC PATCH v7 06/29] sched/rt: Disable RT_GROUP_SCHED

From: Sebastian Andrzej Siewior

Date: Fri Dec 04 2026 - 07:19:44 EST


On 2026-12-04 12:46:09 [+0100], luca abeni wrote:
> Hi,
>
> On Fri, 4 Dec 2026 11:26:41 +0100
> Sebastian Andrzej Siewior <bigeasy@xxxxxxxxxxxxx> wrote:
>
> > On 2026-11-09 17:35:52 [+0100], Yuri Andriaccio wrote:
> > > Disable the old RT_GROUP_SCHED scheduler. Note that this does not
> > > completely remove all the RT_GROUP_SCHED functionality, just
> > > unhooks it and removes most of the relevant functions. Some of the
> > > RT_GROUP_SCHED functions are kept because they will be adapted for
> > > the HCBS scheduling.
> >
> > What is not obvious to me, will RT_GROUP_SCHED remain after this
> > series?
>
> We started working on this patchset after looking at
> Documentation/scheduler/sched-rt-group.rst, which mentions deadline
> scheduling of the real-time control groups (this is what we originally
> tried to do). So, the plan was to change the RT_GROUP_SCHED
> implementation, but not the config option, and to stay with a
> compatible interface.
>
> Later, we were suggested to go v2-only (if I understand well), so the
> original plan changed but we stayed with the RT_GROUP_SCHED config
> option. If this approach is wrong, we'll change it.

The old is broken in my opinion. I tried to get rid of it because people
trying to use it were always complaining it is not working right. It is
v1 only, too.
We don't do cgroup-v1 these days and PREEMPT_RT support lacks some of
v1 as far as I recall. The general advice is to do v2 and don't care
about v1 since it is legacy anyway.

In
https://lore.kernel.org/all/20261123-sched_dl-v4-0-d523e4d960d3@xxxxxxxxxxxxx/

I tried to rip it out but then I got yelled at and now I try to mark it
BROKEN so it can be removed later.
If this HCBS is a new thing, it might get its own name and there is no
need to put it in RT_GROUP_SCHED clothes. After a few patches later (in
this series) a few of those sysfs files were removed. So the interface
is not the same or missing something.
I can't tell if an application/ setup using RT_GROUP_SCHED can
seamlessly switch to this HCBS replacement or not.

Therefore, if HSBC is just fixing RT_GROUP_SCHED and replacing it piece
by piece maybe name it as such.

Also as part of my series (referenced above) I was going to move the
global DL config out of /proc and so uncouple it from RT throttling what
it once was (which is now limited to RT-GROUPs).
But if you have some global knobs that you would like to have I would
suggest to have it sysfs and part of stable ABI and identified as such.
So that it is more or less obvious that it is a new thing maybe with
new/ different global switches if any at all.

Sebastian