[Try to add maintainer into CC] On Tue 27-05-14 18:35:45, Michal Hocko wrote: > Hi, > I have the following /etc/cgconfig.conf: > mount { > memory = /sys/fs/cgroup/memory; > } > > group foo { > perm { > task { > uid = root; > gid = users; > fperm = 660; > } > admin { > uid = root; > gid = root; > fperm = 600; > dperm = 750; > } > } > } > > mount says that there is memory controller mounted yet. > Yet when I try to use cgconfigparser on the file, no group gets created > and there is no error message printed either: > > # CGROUP_LOGLEVEL=DEBUG cgconfigparser -l /etc/cgconfig.conf > found cpuset in rw,nosuid,nodev,noexec,relatime,cpuset > Found cgroup option rw,nosuid,nodev,noexec,relatime,cpuset, count 0 > found cpu in rw,nosuid,nodev,noexec,relatime,cpuacct,cpu > Found cgroup option rw,nosuid,nodev,noexec,relatime,cpuacct,cpu, count 1 > found cpuacct in rw,nosuid,nodev,noexec,relatime,cpuacct,cpu > Found cgroup option rw,nosuid,nodev,noexec,relatime,cpuacct,cpu, count 2 > found devices in rw,nosuid,nodev,noexec,relatime,devices > Found cgroup option rw,nosuid,nodev,noexec,relatime,devices, count 3 > found freezer in rw,nosuid,nodev,noexec,relatime,freezer > Found cgroup option rw,nosuid,nodev,noexec,relatime,freezer, count 4 > found blkio in rw,nosuid,nodev,noexec,relatime,blkio > Found cgroup option rw,nosuid,nodev,noexec,relatime,blkio, count 5 > found perf_event in rw,nosuid,nodev,noexec,relatime,perf_event > Found cgroup option rw,nosuid,nodev,noexec,relatime,perf_event, count 6 > found hugetlb in rw,nosuid,nodev,noexec,relatime,hugetlb > Found cgroup option rw,nosuid,nodev,noexec,relatime,hugetlb, count 7 > found memory in rw,relatime,memory > Found cgroup option rw,relatime,memory, count 8 > creating group foo, error 0 > creating all cgroups now, error=0 > > # stat /sys/fs/cgroup/memory/foo > stat: cannot stat ‘/sys/fs/cgroup/memory/foo’: No such file or directory > > So far I was only able to debug that cgroup_create_cgroup doesn't do > anything because the cgroup->index is 0. It seems that the only place > where cgroup->index is updated is cgroup_add_controller which is not > called before cgroup_create_cgroup. I have no idea why, though. > > Am I doing something utterly wrong or is this a bug? > > Let me know if you need any further information. > Thanks!
Ohh and I of course forgot to add the most important information. I am using 0.41-rc1 in Opensuse Factory [1] but the same happens even on another Debian box with 0.41. The Debian box doesn't have systemd init. --- [1] - https://build.opensuse.org/package/show/Virtualization/libcgroup -- Michal Hocko SUSE Labs ------------------------------------------------------------------------------ Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. Written by three acclaimed leaders in the field, this first edition is now available. Download your free book today! http://p.sf.net/sfu/NeoTech _______________________________________________ Libcg-devel mailing list Libcg-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libcg-devel