Re: [RFC PATCH v7 00/29] Hierarchical Constant Bandwidth Server
From: Peter Zijlstra
Date: Mon Nov 30 2026 - 08:45:33 EST
On Fri, Nov 27, 2026 at 04:09:26PM +0100, luca abeni wrote:
> > Without this, you get to account every cgroup to all CPUs, which is
> > incredibly pessimistic; to the point of not actually being worth it.
>
> Yes, this is the first part of Yuri's patchset. In the last patches,
> however, it allows setting the dl server parameters per-core (so, it is
> possible to set runtime=0 for all the cores we do not need, avoiding
> the problem you mention - if I understand well)
This makes no sense to me; we have this exact information in the
cpuset's cpumask. Duplicating that information is wasteful and error
prone.
> > As to the whole max thing; am I understanding things right if I say
> > this means the cgroup itself will not have a constraint? I saw talk
> > about one cgroup having mixed constaint and no constraint CPUs?
> > That's crazy talk and makes absolutely no sense. Please don't support
> > this.
>
> I do not like this mix, either. But I think the last example by Juri
> shows that this kind of configuration might be needed (and we do not
> want to end up with something that all the distributions will disable
> because of some interface issue :)
>
> From some discussion, I reached the conclusion that this kind of "mixed
> configuration" might be needed only for non-leaf cgroups (and that
> these cgroups should probably not directly contain any tasks), but I do
> not know enough about cgroup-v2 to be sure...
I am not at all sure I understand. I see the need for the 'max' thing,
eg not having a bandwidth constraint -- which then ends up running the
tasks in the parent servers. But I feel very strongly a single cgroup
must not have CPUs of mixed max and !max setting, that is lunacy.