cgroup tasks file error
Hi Serge,
Now I cannot move the pid out of the assigned group !
[host:/dev/cgroup]$ cat cpuset.cpus 0 [host:/dev/cgroup]$ cat cpuset.mems 0 [host:/dev/cgroup]$ cat hello/tasks 580
[host:/dev/cgroup]$ echo 580 > tasks -bash: echo: write error: Operation not permitted
[host:/dev/cgroup]$
[host:/dev/cgroup]$ cd hello [host:/dev/cgroup/hello]$ cat cpuset.cpus 0 [host:/dev/cgroup/hello]$ cat cpuset.mems 0 [host:/dev/cgroup/hello]
Quoted 63 lines · --- On Mon, 12/13/10, ccmail111 <ccmail111-/[email protected].…
From: ccmail111 <ccmail111-/[email protected]>
Subject: Re: cgroup tasks file error
To: "Serge E. Hallyn" <[email protected]>
Cc: containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org
Date: Monday, December 13, 2010, 8:23 PM
Hi Serge,Thanks for quick response.
I had mounted as:
mount -t cgroup cpuset
/dev/cgroupAfter setting below, it works.
Thank you for helpful tip !--- On Mon, 12/13/10, Serge E. Hallyn <[email protected]>
Quoted 10 lines · wrote:
From: Serge E. Hallyn <[email protected]>
Subject: Re: cgroup tasks file error
To: "ccmail111" <ccmail111-/[email protected]>
Cc: containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org
Date: Monday, December 13, 2010, 6:16 PMQuoted 2 lines · Quoting ccmail111 (ccmail111-/[email protected]):
I see error:[host:/dev/cgroup]$ echo 693 >
hello-test/tasks
Quoted 1 line
-bash: echo: write error: No space left on
device
Quoted 5 lines
Quoted 5 lines
[host:/dev/cgroup]$ pwd/dev/cgroupBut the user process is up and running..
[host:/dev/cgroup]$ ps aux | grep procrootQuoted 2 lines
Quoted 2 lines
693 0.0 0.4 34720 1112 ttyS0 Sl
19:11
Quoted 11 lines
0:00
/opt/bin/myproc-extQuoted 8 lines
Also the cgroup exists and valid..
[host:/dev/cgroup]$ ls | grep hello-test hello-testWhat above error mean and any suggestions ?
Please email.Which cgroups do you have composed on that mount?
I'm
Quoted 7 lines
guess you
have cpuset, and you need to set the cpuset.mems and cpuset.cpus.
Until you do that, no tasks can be assigned to it.-serge
Quoted 4 lines · ccmail111 wrote:
Hi Serge,
Now I cannot move the pid out of the assigned group !
Try:
$ sudo echo 580 > tasks
Quoted 81 lines
[host:/dev/cgroup]$ cat cpuset.cpus 0 [host:/dev/cgroup]$ cat cpuset.mems 0 [host:/dev/cgroup]$ cat hello/tasks 580[host:/dev/cgroup]$ echo 580 > tasks -bash: echo: write error: Operation not permitted[host:/dev/cgroup]$
[host:/dev/cgroup]$ cd hello [host:/dev/cgroup/hello]$ cat cpuset.cpus 0 [host:/dev/cgroup/hello]$ cat cpuset.mems 0 [host:/dev/cgroup/hello]Quoted 58 lines · --- On Mon, 12/13/10, ccmail111 <ccmail111-/[email protected].…
From: ccmail111 <ccmail111-/[email protected]>
Subject: Re: cgroup tasks file error
To: "Serge E. Hallyn" <[email protected]>
Cc: containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org
Date: Monday, December 13, 2010, 8:23 PM
Hi Serge,Thanks for quick response.
I had mounted as:
mount -t cgroup cpuset
/dev/cgroupAfter setting below, it works.
Thank you for helpful tip !--- On Mon, 12/13/10, Serge E. Hallyn <[email protected]>
Quoted 9 lines · wrote:
From: Serge E. Hallyn <[email protected]>
Subject: Re: cgroup tasks file error
To: "ccmail111" <ccmail111-/[email protected]>
Cc: containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org
Date: Monday, December 13, 2010, 6:16 PMQuoted 1 line · Quoting ccmail111 (ccmail111-/[email protected]):
I see error:[host:/dev/cgroup]$ echo 693 >
hello-test/tasks
Quoted 1 line
-bash: echo: write error: No space left on
device
Quoted 7 lines
Quoted 7 lines
[host:/dev/cgroup]$ pwd/dev/cgroupBut the user process is up and running..
[host:/dev/cgroup]$ ps aux | grep procroot693 0.0 0.4 34720 1112 ttyS0 Sl
19:11
Quoted 9 lines
0:00
/opt/bin/myproc-extQuoted 7 lines
Also the cgroup exists and valid..
[host:/dev/cgroup]$ ls | grep hello-test hello-testWhat above error mean and any suggestions ?
Please email.Which cgroups do you have composed on that mount?
I'm
Quoted 7 lines
guess you
have cpuset, and you need to set the cpuset.mems and cpuset.cpus.
Until you do that, no tasks can be assigned to it.-serge
Hi Li,
uid is already root:
[host:/dev/cgroup]$ id uid=0(root) gid=0(root) groups=0(root)
[host:/dev/cgroup]$ echo 580 > tasks -bash: echo: write error: Operation not permitted
[host:/dev/cgroup]$ cat hello/tasks 580 610 2104 [host:/dev/cgroup]$
Quoted 106 lines · Li Zefan
From: Li Zefan <[email protected]>
Subject: Re: cgroup tasks file error
To: "ccmail111" <ccmail111-/[email protected]>
Cc: "Serge E. Hallyn" <[email protected]>, containers-cunTk1MwBs+mg8Ev75riOw@public.gmane.orgx-foundation.org
Date: Monday, December 13, 2010, 8:34 PMQuoted 4 lines · ccmail111 wrote:
Hi Serge,
Now I cannot move the pid out of the assigned group !
Try:
$ sudo echo 580 > tasksQuoted 21 lines
[host:/dev/cgroup]$ cat cpuset.cpus 0 [host:/dev/cgroup]$ cat cpuset.mems 0 [host:/dev/cgroup]$ cat hello/tasks 580[host:/dev/cgroup]$ echo 580 > tasks -bash: echo: write error: Operation not permitted[host:/dev/cgroup]$
[host:/dev/cgroup]$ cd hello [host:/dev/cgroup/hello]$ cat cpuset.cpus 0 [host:/dev/cgroup/hello]$ cat cpuset.mems 0 [host:/dev/cgroup/hello]--- On Mon, 12/13/10, ccmail111 <ccmail111-/[email protected]>
Quoted 27 lines · wrote:
Quoted 27 lines
From: ccmail111 <ccmail111-/[email protected]>
Subject: Re: cgroup tasks file error
To: "Serge E. Hallyn" <[email protected]>
Cc: containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org
Date: Monday, December 13, 2010, 8:23 PM
Hi Serge,Thanks for quick response.
I had mounted as:
mount -t cgroup cpuset
/dev/cgroupAfter setting below, it works.
Thank you for helpful tip !--- On Mon, 12/13/10, Serge E. Hallyn <[email protected]>
Quoted 6 lines · wrote:
From: Serge E. Hallyn <[email protected]>
Subject: Re: cgroup tasks file error
To: "ccmail111" <ccmail111-/[email protected]>
Cc: containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org
Date: Monday, December 13, 2010, 6:16 PM
Quoting ccmail111 (ccmail111-/[email protected]):Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 1 line
I see error:[host:/dev/cgroup]$ echo 693
hello-test/tasks
Quoted 1 line
-bash: echo: write error: No space left
on
Quoted 6 lines
Quoted 6 lines
device
Quoted 5 lines
Quoted 5 lines
[host:/dev/cgroup]$ pwd/dev/cgroupBut the user process is up and running..
[host:/dev/cgroup]$ ps aux | grepprocroot
Quoted 2 lines
Quoted 2 lines
Quoted 1 line
Quoted 1 line
693 0.0 0.4 34720
1112 ttyS0 Sl
Quoted 8 lines
Quoted 8 lines
19:11
Quoted 7 lines
0:00
/opt/bin/myproc-extQuoted 6 lines
Also the cgroup exists and valid..
[host:/dev/cgroup]$ ls | grep hello-test hello-testWhat above error mean and any suggestions
?
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 1 line
Please email.
Which cgroups do you have composed on that
mount?
Quoted 3 lines
Quoted 3 lines
I'm
Quoted 2 lines
guess you
have cpuset, and you need to set thecpuset.mems and
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
cpuset.cpus.
Until you do that, no tasks can be assigned toit.
Quoted 7 lines
Quoted 6 lines
Quoted 3 lines
-serge
Quoted 3 lines · Li Zefan
Try:
$ sudo echo 580> tasks
Hmmm... you probably mean:
sudo sh -c 'echo 580> tasks'
Cheers.
Signature · 6 lines
Gregory Kurz gkurz-NmTC/[email protected] Software Engineer @ IBM/Meiosys http://www.ibm.com Tel +33 (0)534 638 479 Fax +33 (0)561 400 420 "Anarchy is about taking complete responsibility for yourself." Alan Moore.
Quoted 8 lines · Quoting ccmail111 (ccmail111-/[email protected]):
Hi Li,
uid is already root:
[host:/dev/cgroup]$ id uid=0(root) gid=0(root) groups=0(root)
Quoted 8 lines
[host:/dev/cgroup]$ echo 580 > tasks -bash: echo: write error: Operation not permitted[host:/dev/cgroup]$ cat hello/tasks 580 610 2104 [host:/dev/cgroup]$
Could you give:
ls -lZd /dev/cgroup /dev/cgroup/tasks
id -Z
ls -laFZ /dev/cgroup/
cat /dev/cgroup/*
mount
I'm wondering whether an lsm is stopping you.
-serge
The uid is already root as below,
$ id uid=0(root) gid=0(root) groups=0(root)
Quoted 30 lines · Greg Kurz
From: Greg Kurz <gkurz-NmTC/[email protected]>
Subject: Re: cgroup tasks file error
To: "Li Zefan" <[email protected]>
Cc: "ccmail111" <ccmail111-/[email protected]>, [email protected]
Date: Tuesday, December 14, 2010, 4:31 AMQuoted 3 lines · Li Zefan
Try:
$ sudo echo 580> tasksHmmm... you probably mean:
sudo sh -c 'echo 580> tasks'
Cheers.
-- Gregory Kurz
gkurz-NmTC/[email protected] Software Engineer @ IBM/Meiosys
http://www.ibm.com
Tel +33 (0)534 638 479
Fax +33 (0)561 400 420"Anarchy is about taking complete responsibility for yourself."
Alan Moore.