Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

In cgroups there seems to be an option called 'cgroup.clone_children' for each subsystem, that allows you to specify if the setting of the parent cgroup should be inherited into the child cgroups. But I have not been able to find any evidence that it works.

I was hoping to use this feature to more easily administer cgroups by using the hierarchy to copy settings that are common to all groups and only tweak minor settings in the children cgroups.

Anyone have an idea if what I am trying to do can be done?

share|improve this question

1 Answer 1

That's exactly what it does:

/dev/cgroup# mkdir parent
/dev/cgroup# cat parent/cpuset.cpus
0
/dev/cgroup# echo 1-2 > parent/cpuset.cpus
/dev/cgroup# cat parent/cpuset.cpus
1-2
/dev/cgroup# echo 1 > parent.clone_children
/dev/cgroup# mkdir parent/child
/dev/cgroup# cat parent/child/cpuset.cpus
1-2
share|improve this answer
    
it seems like clone_children only affects cpuset, kernel.org/doc/Documentation/cgroups/cgroups.txt –  kevin Jul 9 at 21:27

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.