Re: Default values for cpuset.mems, cpus for children created

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Paul Menage
Date: Thursday, September 4, 2008 - 4:03 pm

On Fri, Aug 15, 2008 at 12:31 PM, Dhaval Giani
<dhaval@linux.vnet.ibm.com> wrote:

Yes, this is an awkwardness with the cpusets model of recursively
sharing a set of identifiable resources. Quite apart from the
backwards compatibility issue, if you make new cpusets inherit their
parent's resources you break the exclusive setting, and if you don't
you require special setup before the cgroup can be used.

There's already a precedent in the cpuset_clone() function, which does
inherit the parent's resources, but I don't think the clone behaviour
is widely used, and even that doesn't handle the case of exclusive
siblings.

I'm inclined to say that this is a userspace bug - if you don't want
cpusets attached to your cgroup hierarchy, don't include them in the
set of mounted subsystems.

Paul
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Default values for cpuset.mems, cpus for children created, Dhaval Giani, (Fri Aug 15, 12:31 pm)
Re: Default values for cpuset.mems, cpus for children created, Paul Menage, (Thu Sep 4, 4:03 pm)