Wednesday, 21 December 2011

handling Linux cgroups with a new kernel

handling Linux cgroups with a new kernel

I have cgroups working under Linux fedora14 with kernel 2.6.35. The cgroup fs is mounted upon boot ok
per the following /etc/cgconfig.conf file:

mount {
cpuset = /dev/cgroup/cpuset;
cpu = /dev/cgroup/cpu;
cpuacct = /dev/cgroup/cpuacct;
memory = /dev/cgroup/memory;
devices = /dev/cgroup/devices;
freezer = /dev/cgroup/freezer;
net_cls = /dev/cgroup/net_cls;
ns = /dev/cgroup/ns;
blkio = /dev/cgroup/blkio;
}


The libcgroup is still : /lib64/libcgroup.so.1.0.36

When I now switch to a new kernel 3.2.0-rc1 the Linux is booted ok but the cgroup is not mounted after boot per above
Cgroup config file ( I also ran : chkconfig --add cgconfig successfuly).
Trying explicitly : *service cgconfig restart* fails with following message :

Cgroup mounting failed
Failed to parse /etc/cgconfig.conf [FAILED]


Any idea ? Any change in config file syntax ? (I did not find a change in RedHat cgroup manual)
I doubt that the rc1 version is the cause (not stable reason)

No comments:

Post a Comment