From: Juri Lelli <juri.lelli@redhat.com>
To: Yuri Andriaccio <yuri.andriaccio@santannapisa.it>
Cc: Peter Zijlstra <peterz@infradead.org>,
Yuri Andriaccio <yurand2000@gmail.com>,
Ingo Molnar <mingo@redhat.com>,
Vincent Guittot <vincent.guittot@linaro.org>,
Dietmar Eggemann <dietmar.eggemann@arm.com>,
Steven Rostedt <rostedt@goodmis.org>,
Ben Segall <bsegall@google.com>, Mel Gorman <mgorman@suse.de>,
Valentin Schneider <vschneid@redhat.com>,
linux-kernel@vger.kernel.org,
Luca Abeni <luca.abeni@santannapisa.it>
Subject: Re: [RFC PATCH v5 19/29] sched/rt: Remove support for cgroups-v1
Date: Wed, 13 May 2026 16:37:38 +0200 [thread overview]
Message-ID: <agSMsqv0pxbea2e0@jlelli-thinkpadt14gen4.remote.csb> (raw)
In-Reply-To: <913f3f99-cd70-43ac-9a9e-c56f5d4c23a6@santannapisa.it>
On 13/05/26 14:15, Yuri Andriaccio wrote:
> 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?
Yeah it does, but I'd still be worried about what happens to existing v1
users. Today RT_GROUP_SCHED runs at RT priority and can balance runtime
between CPUs, so tasks don't migrate while runtime moves to them. With
HCBS we'd be switching to deadline servers running at DEADLINE priority,
and tasks migrate to where runtime is available instead.
So v1 users would see their cgroup tasks suddenly running above other RT
tasks, and the switch from runtime balancing to task migration could
mess with cache locality and CPU pinning setups that people have tuned
around the current behavior.
Keeping the same interface files doesn't really hide that we're changing
the whole mechanism underneath. :/
BTW, these concerns apply to v2 as well and we will probably need to
discuss them at some point. But, v2 RT support is new, so breaking
current setups might be to expect to a certain extent?
next prev parent reply other threads:[~2026-05-13 14:37 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20260430213835.62217-1-yurand2000@gmail.com>
[not found] ` <20260430213835.62217-14-yurand2000@gmail.com>
2026-05-05 13:04 ` [RFC PATCH v5 13/29] sched/rt: Implement dl-server operations for rt-cgroups Peter Zijlstra
[not found] ` <20260430213835.62217-15-yurand2000@gmail.com>
2026-05-05 13:16 ` [RFC PATCH v5 14/29] sched/rt: Update task event callbacks for HCBS scheduling Peter Zijlstra
[not found] ` <20260430213835.62217-16-yurand2000@gmail.com>
2026-05-05 14:36 ` [RFC PATCH v5 15/29] sched/rt: Update rt-cgroup schedulability checks Peter Zijlstra
[not found] ` <20260430213835.62217-19-yurand2000@gmail.com>
2026-05-05 14:59 ` [RFC PATCH v5 18/29] sched/core: Cgroup v2 support Peter Zijlstra
2026-05-06 19:58 ` luca abeni
2026-05-07 7:01 ` Peter Zijlstra
2026-05-07 13:30 ` luca abeni
2026-05-07 14:16 ` Peter Zijlstra
[not found] ` <20260430213835.62217-20-yurand2000@gmail.com>
2026-05-05 15:01 ` [RFC PATCH v5 19/29] sched/rt: Remove support for cgroups-v1 Peter Zijlstra
2026-05-07 15:35 ` Juri Lelli
2026-05-13 12:15 ` Yuri Andriaccio
2026-05-13 14:37 ` Juri Lelli [this message]
[not found] ` <20260430213835.62217-21-yurand2000@gmail.com>
2026-05-05 15:15 ` [RFC PATCH v5 20/29] sched/deadline: Allow deeper hierarchies of RT cgroups Peter Zijlstra
2026-05-05 19:56 ` Tejun Heo
2026-05-07 10:53 ` Peter Zijlstra
2026-05-07 15:03 ` Juri Lelli
2026-05-07 15:05 ` Peter Zijlstra
2026-05-07 16:39 ` luca abeni
2026-05-11 9:29 ` Juri Lelli
2026-05-11 17:52 ` Tejun Heo
2026-05-07 16:44 ` luca abeni
2026-05-11 9:40 ` luca abeni
2026-05-11 18:15 ` Tejun Heo
2026-05-11 17:37 ` Tejun Heo
2026-05-07 14:30 ` luca abeni
2026-05-11 18:28 ` Tejun Heo
2026-05-12 17:38 ` Yuri Andriaccio
2026-05-12 18:19 ` Tejun Heo
2026-05-12 18:20 ` Tejun Heo
2026-05-13 12:08 ` Yuri Andriaccio
2026-05-13 19:10 ` Tejun Heo
2026-05-14 7:25 ` luca abeni
[not found] ` <20260430213835.62217-23-yurand2000@gmail.com>
2026-05-05 15:20 ` [RFC PATCH v5 22/29] sched/rt: Add rt-cgroup migration functions Peter Zijlstra
2026-05-05 15:24 ` Peter Zijlstra
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=agSMsqv0pxbea2e0@jlelli-thinkpadt14gen4.remote.csb \
--to=juri.lelli@redhat.com \
--cc=bsegall@google.com \
--cc=dietmar.eggemann@arm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=luca.abeni@santannapisa.it \
--cc=mgorman@suse.de \
--cc=mingo@redhat.com \
--cc=peterz@infradead.org \
--cc=rostedt@goodmis.org \
--cc=vincent.guittot@linaro.org \
--cc=vschneid@redhat.com \
--cc=yurand2000@gmail.com \
--cc=yuri.andriaccio@santannapisa.it \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox