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.

I've got cpu, cpuacct and memory cgroups configured via /etc/cgconfig.conf ( cgconfig-bin on Lucid ). I can add new control groups, and assign processes to them however there does not seem to be a facility for changing the paramters of the root level memory cgroup ( the actual mount point ).

How would one best set such parameters in a clean manner withoput c

For example, I've the memory cgroup mounted to /var/run/cgroup/memory. I'd like to have /var/run/cgroup/memory/memory.use_hierarchy set to 1 on boot.

share|improve this question
    
Just as I'd gotten annoyed and decided to ask for help, I found the answer .. go figure. The root control group is referenced by a standard group <name> { } statement where <name> is a single period. –  delerious010 Dec 30 '10 at 17:04

2 Answers 2

From the comment to the question

The root control group is referenced by a standard group <name> { } statement where <name> is a single period.

share|improve this answer

What is the point in limiting the root group? You're basically limiting all tasks that are running on the system. And secondly, there are some drawbacks when altering the parameters of a root group, see:

http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6-Beta/html-single/Resource_Management_Guide/index.html#process_behavior

Some parameters even can't be set for a root group, e.g. memory.limit_in_bytes. From the doc above:

You cannot use memory.limit_in_bytes to limit the root cgroup; you can only apply values to groups lower in the hierarchy.

share|improve this answer

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.