Re: [PATCHSET RFC cgroup/for-4.6] cgroup, sched: implement resource group and PRIO_RGRP
From: Peter Zijlstra
Date: Thu Apr 07 2016 - 04:08:57 EST
On Thu, Apr 07, 2016 at 03:35:47AM -0400, Johannes Weiner wrote:
> On Thu, Apr 07, 2016 at 08:45:49AM +0200, Peter Zijlstra wrote:
> > So I recently got made aware of the fact that cgroupv2 doesn't allow
> > tasks to be associated with !leaf cgroups, this is yet another
> > capability of cpu-cgroup you've destroyed.
>
> May I ask how you are using that?
_I_ use a kernel with CONFIG_CGROUPS=n (yes really).
But seriously? You have to ask?
The root cgroup is per definition not a leaf, and all tasks start life
there, and some cannot be ever moved out.
Therefore _everybody_ uses this.
> The behavior for tasks in !leaf groups was fairly inconsistent across
> controllers because they all did different things, or didn't handle it
> at all.
Then they're all bloody broken, because fully hierarchical was an early
requirement for cgroups; I know, because I had to throw away many days
of work and start over with cgroup support when they did that.
> So it was a nice cleanup for the memory controller and I believe the
> IO controller as well. I'd be curious how it'd be a problem for CPU?
The full hierarchy took years to make work and is fully ingrained with
how the thing words, changing it isn't going to be nice or easy.
So sure, go with a lowest common denominator, instead of fixing shit,
yay for progress :/