Am 21.02.2012 09:05, schrieb Jan Safranek:
> 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
>


ok, did that.
sudo /etc/init.d/cgred stop
sudo /etc/init.d/cgconfig restart
cat /sys/fs/cgroup/cpuset/rar/cpuset.mems
0
cat /sys/fs/cgroup/cpuset/rar/cpuset.cpus
1


still the same 50002 error

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Libcg-devel mailing list
Libcg-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libcg-devel

Reply via email to