[Devel] Re: cgroup tasks file error

ccmail111 ccmail111 at yahoo.com
Mon Dec 13 18:51:54 PST 2010


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]$




--- On Mon, 12/13/10, Li Zefan <lizf at cn.fujitsu.com> wrote:

> From: Li Zefan <lizf at cn.fujitsu.com>
> Subject: Re: cgroup tasks file error
> To: "ccmail111" <ccmail111 at yahoo.com>
> Cc: "Serge E. Hallyn" <serge.hallyn at canonical.com>, containers at lists.linux-foundation.org
> Date: Monday, December 13, 2010, 8:34 PM
> ccmail111 wrote:
> > Hi Serge,
> > 
> > Now I cannot move the pid out of the assigned group !
> > 
> 
> Try:
> 
>   $ sudo echo 580 > tasks
> 
> > [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 at yahoo.com>
> wrote:
> > 
> >> From: ccmail111 <ccmail111 at yahoo.com>
> >> Subject: Re: cgroup tasks file error
> >> To: "Serge E. Hallyn" <serge.hallyn at canonical.com>
> >> Cc: containers at lists.linux-foundation.org
> >> Date: Monday, December 13, 2010, 8:23 PM
> >> Hi Serge,
> >>
> >> Thanks for quick response.
> >>
> >> I had mounted as:
> >>
> >>  mount -t cgroup cpuset /dev/cgroup
> >>
> >> After setting below, it works.
> >> Thank you for helpful tip !
> >>
> >>
> >> --- On Mon, 12/13/10, Serge E. Hallyn <serge.hallyn at canonical.com>
> >> wrote:
> >>
> >>> From: Serge E. Hallyn <serge.hallyn at canonical.com>
> >>> Subject: Re: cgroup tasks file error
> >>> To: "ccmail111" <ccmail111 at yahoo.com>
> >>> Cc: containers at lists.linux-foundation.org
> >>> Date: Monday, December 13, 2010, 6:16 PM
> >>> Quoting ccmail111 (ccmail111 at yahoo.com):
> >>>> I see error:[host:/dev/cgroup]$ echo 693
> >
> >>> hello-test/tasks
> >>>> -bash: echo: write error: No space left
> on
> >> device
> >>>> [host:/dev/cgroup]$ pwd/dev/cgroup
> >>>>
> >>>> But the user process is up and running..
> >>>>
> >>>> [host:/dev/cgroup]$ ps aux | grep
> procroot    
> >>   
> >>>> 693  0.0  0.4  34720 
> 1112 ttyS0    Sl  
> >> 19:11
> >>>   0:00 /opt/bin/myproc -ext
> >>>> Also the cgroup exists and valid..
> >>>>
> >>>> [host:/dev/cgroup]$ ls | grep hello-test
> >>>> hello-test
> >>>>
> >>>> What above error mean and any suggestions
> ?
> >>>> Please email.
> >>> Which cgroups do you have composed on that
> mount? 
> >> I'm
> >>> 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
> >>>
> >>
> >>
> >>
> > 
> 


      
_______________________________________________
Containers mailing list
Containers at lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers




More information about the Devel mailing list