Recently I've been setting up libcg and I hit some problems: 1) first problem was with my kernel. I had netlink connector in module which wasn't loaded.
cgrulesengd failed on "socket(PF_NETLINK, SOCK_DGRAM, 11)" because netlink connector wasn't loaded. The bug is that it failed silently. No error message was printed even in debug mode. Loading cn.ko module was of course not enough since it needs to be compiled in into kernel to get PROC_EVENTS option available and also compile it in. Somehow docs don't mention this at all. 2) I've rebuild the kernel. Setup some group, added some limits etc but "Cgroup change for PID: 3794, UID: 51, GID: 51, PROCNAME: /usr/bin/convert FAILED! (Error Code: 50002)" Cryptic error code ... turned to be a permission problem for tasks file. Would be nice if these codes would mean something. 3) My cgrules.conf had "http cpu,memory customers/httpd" but I've created only memory group in cgconfig.conf. Unfortunately cgrulesengd tried to move processes to cpu cgroup and when that failed it skipped setting up memory one. I would expect it to move process to memory cgroup regardless of what happened to cpu one. 4) mount section in cgconfig. I had "debug = /dev/cgroup/debug;" which is not supported by 2.6.37 it seems. This caused that all others cgroups were also not mounted. Would be nice to be able to specify subsystems which will be optionally enabled (aka try to enable but if that fails then don't complain mode). 5). There seem to be no way to reload group definitions without umount/mount of cgroup fs, right? For example I'm changing values like memory.limit_in_bytes in config and want these to be reapplied to cgroups. libcgroup-0.37.1 was used, kernel 2.6.37.6 -- Arkadiusz MiĆkiewicz PLD/Linux Team arekm / maven.pl http://ftp.pld-linux.org/ ------------------------------------------------------------------------------ WhatsUp Gold - Download Free Network Management Software The most intuitive, comprehensive, and cost-effective network management toolset available today. Delivers lowest initial acquisition cost and overall TCO of any competing solution. http://p.sf.net/sfu/whatsupgold-sd _______________________________________________ Libcg-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/libcg-devel
