Re: [PATCHv3 8/8] cgroup: Add documentation for cgroup namespaces

2 messages, 2 authors, 2015-01-07 · open the first message on its own page

Re: [PATCHv3 8/8] cgroup: Add documentation for cgroup namespaces

From: Eric W. Biederman <hidden>
Date: 2015-01-07 22:17:27

"Serge E. Hallyn" [off-list ref] writes:
quoted
  By unified hierarchy I mean that  every mount of cgroupfs has the
same directories with the same processes in each directory.
No, my reading of Documentation/cgroups/unified-hierarchy.txt is that
unified hierarchy means that all (sane) controllers are co-mounted into
one hierarchy.
I see what you mean.  If it is indeed the case than a mount of cgroupfs
using the unified hiearchy and can not specify which controllers are
present under that mount that very significant bug and presents a very
significant regression in user space flexibility.

I think you can still mount the unified hierarchy and select which
controls you want to see.  If you can not that is a change significantly
past what was agreed to and a regression fix needs to be applied.

With a unified hierarchy and separate controllers per mount many cgroup
using applications will continue to work as before without changes, or
with minimal changes.  That is what was agreed to and what I expect has
been actually implemented and it is what needs to be implemented in any
case.

I will see about making time to see where things are really at.

Eric

Re: [PATCHv3 8/8] cgroup: Add documentation for cgroup namespaces

From: Tejun Heo <tj@kernel.org>
Date: 2015-01-07 22:45:18

On Wed, Jan 07, 2015 at 04:14:40PM -0600, Eric W. Biederman wrote:
I see what you mean.  If it is indeed the case than a mount of cgroupfs
using the unified hiearchy and can not specify which controllers are
present under that mount that very significant bug and presents a very
significant regression in user space flexibility.
The parent always controls which controllers are made available at the
children level.  Only if the parent enables a controller, its
children, whether they're namespaces or not, can choose to further
distribute resources using that controller.  It's a straight-forward
top-down thing.

-- 
tejun
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help