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!
--
Michal Hocko
SUSE Labs
------------------------------------------------------------------------------
The best possible search technologies are now affordable for all companies.
Download your FREE open source Enterprise Search Engine today!
Our experts will assist you in its installation for $59/mo, no commitment.
Test it for FREE on our Cloud platform anytime!
http://pubads.g.doubleclick.net/gampad/clk?id=145328191&iu=/4140/ostg.clktrk
_______________________________________________
Libcg-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libcg-devel