On Wed, Apr 6, 2011 at 9:17 AM, Arkadiusz Miskiewicz <ar...@maven.pl> wrote: > > 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. >
Yes, they do mean smething, but I am guessing this report was not wrapped up properly. Will take a look at it. > 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. > This is expected. It should not succeed partially. Having said that, would you be kind enough to exchange memory and cpu n teh configuration file and confirm if that works? > 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). > I will add it as a future feature, though I cannot promise when we get to it. (Patches aer however very welcome) > 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. I think you can use cgset for that. But for the configuration, yes, you need to reload it. ------------------------------------------------------------------------------ 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 Libcg-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libcg-devel