10

I'm trying to test cgroup and, after I set it, I stumbled upon that error. That's what I did:

  • creation of the group grp
  • creation of the user test within the grp group

I ran the command:

sudo cgcreate -t test:grp -a sleax -g memory,cpu:grp
echo '10000000'> /sys/fs/cgroup/memory/grp/memory.limit_in_bytes

Then i went to try that with the user test:

test@sleax-PC:~$ cgexec stress -t 20 -c 99 -i 99
cgroup change of group failed

And that's the error I get. Why? I set -t test:grp so test is able to write the PIDs.

1

1 Answer 1

5

Specifying users and groups works fine when you create a subsystem.

sudo cgcreate -t $USER:$USER -a $USER:$USER  -g cpu:testgroupcpu 

"cgroup change of group failed" error with cgexec from libcgroup

3

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .