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
add comment

1 Answer

That's exactly what it does:

/dev/cgroup# mkdir parent
/dev/cgroup# cat parent/cpuset.cpus
/dev/cgroup# echo 1-2 > parent/cpuset.cpus
/dev/cgroup# cat parent/cpuset.cpus
/dev/cgroup# echo 1 > parent.clone_children
/dev/cgroup# mkdir parent/child
/dev/cgroup# cat parent/child/cpuset.cpus
share|improve this answer
add comment

Your Answer


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.