Re: [RFC PATCH v5 19/29] sched/rt: Remove support for cgroups-v1

From: Yuri Andriaccio

Date: Wed May 13 2026 - 08:16:11 EST


Hello,

> This however means we will essentially need to maintain 2 versions of
> rt.c until v1 is gone? AFAIK v1 rt group implementation is quite a
> substantial amount of code. :/

If we really need to maintain cgroups v1 maybe it is possible to use the same code for HCBS (as I think the behaviors of the old RT_GROUP_SCHED and HCBS are 'compatible') and use a subset of the functionalities and configuration modes for cgroup v2, i.e., use the cpu.rt_runtime/period_us files and disallow running tasks on the root runqueue if they do not belong in the root cgroup, which is basically what already happens with RT_GROUP_SCHED (right?).

So this would mean that cgroups v1 will still be 'broken' but will be compatible with what there is already. And a good amount of old code will be gone.

Does this make sense?

Yuri