Hide Forgot
Description of problem: When cpuset is defined in the format "cpuset.cpus = CPU1,CPU2", cgconfig service fail to start. As per the documentation " http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/Resource_Management_Guide/sec-cpuset.html" this should work. Version-Release number of selected component (if applicable): libcgroup-0.36.1-6.el6.x86_64 How reproducible: Add the following entries to /etc/cgconfig.conf and restart cgconfig service. ---------- mount { cpuset = /cgroup/cgmnt; } group critical { cpuset { cpuset.cpus = 0,2; -->any cpu's separated by comma cpuset.mems = 0; } } ---------- Actual results: error at line number 7 at ,:syntax error Loading configuration file /etc/cgconfig.conf failed Failed to parse config file Expected results: The service should start without any issues. Subin
This is fixed by rebase to libcgroup-0.37 in RHEL 6.1, where double-quotes are allowed with anything inside, incl. comma. cpuset { cpuset.cpus = "0,2"; cpuset.mems = 0; } I let the bug open so our qa guys can check it.
using a cgconfig.conf containing: mount { cpuset = /cgroup/cgmnt; } group critical { cpuset { cpuset.cpus = "0,2"; cpuset.mems = 0; } } [root@amd-dinar-01 etc]# /etc/init.d/cgconfig restart Stopping cgconfig service: [ OK ] Starting cgconfig service: [ OK ] [root@amd-dinar-01 etc]# lscgroup cpuset:/ cpuset:/critical [root@amd-dinar-01 etc]# grep cgroup /proc/mounts cgroup /cgroup/cgmnt cgroup rw,relatime,cpuset 0 0 [root@amd-dinar-01 etc]# cat /cgroup/cgmnt/critical/cpuset.cpus 0,2 [root@amd-dinar-01 etc]# uname -r 2.6.32-114.0.1.el6.i686 [root@amd-dinar-01 etc]# rpm -q libcgroup libcgroup-0.37-1.el6.i686 It looks like this one can be verified.
An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2011-0577.html