From mboxrd@z Thu Jan 1 00:00:00 1970 From: ccmail111 Subject: Re: cgroup tasks file error Date: Mon, 13 Dec 2010 18:50:45 -0800 (PST) Message-ID: <903526.98695.qm@web34207.mail.mud.yahoo.com> References: <4D06C996.9010101@cn.fujitsu.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <4D06C996.9010101-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Errors-To: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org To: Li Zefan Cc: containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org List-Id: containers.vger.kernel.org Hi Li, uid is already root: [host:/dev/cgroup]$ id uid=3D0(root) gid=3D0(root) groups=3D0(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 wrote: > From: Li Zefan > Subject: Re: cgroup tasks file error > To: "ccmail111" > Cc: "Serge E. Hallyn" , containers-cunTk1MwBs+mg8Ev75riOw@public.gmane.org= x-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: > = > =A0 $ 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 > wrote: > > = > >> From: ccmail111 > >> Subject: Re: cgroup tasks file error > >> To: "Serge E. Hallyn" > >> 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: > >> > >>=A0 mount -t cgroup cpuset /dev/cgroup > >> > >> After setting below, it works. > >> Thank you for helpful tip ! > >> > >> > >> --- On Mon, 12/13/10, Serge E. Hallyn > >> wrote: > >> > >>> From: Serge E. Hallyn > >>> Subject: Re: cgroup tasks file error > >>> To: "ccmail111" > >>> Cc: containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org > >>> Date: Monday, December 13, 2010, 6:16 PM > >>> Quoting ccmail111 (ccmail111-/E1597aS9LQAvxtiuMwx3w@public.gmane.org): > >>>> 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=A0 =A0 = > >>=A0=A0=A0 > >>>> 693=A0 0.0=A0 0.4=A0 34720=A0 > 1112 ttyS0=A0 =A0 Sl=A0 = > >> 19:11 > >>>=A0=A0=A00: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 > >>> > >> > >> > >> > > = > = =