On 02/18/2012 12:02 PM, mycommercials...@web.de wrote: > hi, > > playing around with cgroups on ubuntu 11.10 i ran into the error: > > Cgroup change for PID: 14674, UID: 1000, GID: 1000, PROCNAME: > /usr/bin/rar FAILED! (Error Code: 50002) > > > on the mailing list archives theres a message that says that 50002 is a > permission problem with the tasks file, but my current running user can > write to it and cgrulesengd is running as root. > > i tried to keep the config as minimal as possible but still its not > working. i was expecting the process rar on the second core, but > checking with htop its allowed to use both cores. > > > any ideas whats wrong? > > > /etc/cgconfig > > mount { > cpu = /sys/fs/cgroup/cpu; > cpuset = /sys/fs/cgroup/cpuset; > cpuacct = /sys/fs/cgroup/cpuacct; > devices = /sys/fs/cgroup/devices; > memory = /sys/fs/cgroup/memory; > freezer = /sys/fs/cgroup/freezer; > } > > > group rar { > perm { > task { > uid = dmkcrew; > gid = dmkcrew; > } > admin { > uid = dmkcrew; > gid = dmkcrew; > } > } > cpuset { > cpuset.cpus = 1;
You should probably set also cpuset.mems. You cannot place anything in a cpuset cgroup unless it has both cpuset.mems and cpuset.cpus filled. Jan ------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d _______________________________________________ Libcg-devel mailing list Libcg-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libcg-devel