On Tue, Dec 14, 2010 at 11:03 PM, ccmail111 <ccmail...@yahoo.com> wrote:
>
> Isn't ns mounted by default ?
> I rebooted machine,
> based on 2.6.32 kernel.
>
> Then,
>
> [host:~]$ mkdir /dev/cgroup
> [host:~]$ mount -t cgroup cpuset -ocpuset,ns /dev/cgroup
> [host:~]$ ps aux | grep libvirt
> root       575  0.6  0.9  88816  2216 ?        Sl   17:28   0:00 myproc 
> --daemon
> root       654  0.0  0.2   4044   664 ttyS0    S+   17:29   0:00 grep libvirt
> [host:~]$ mkdir /dev/cgroup/hello
> [host:~]$ cat /dev/cgroup/hello/tasks
> [host:~]$ echo 0 > /dev/cgroup/hello/cpuset.cpus
> [host:~]$ echo 0 > /dev/cgroup/hello/cpuset.mems

Can you paste the output of

cat /dev/cgroup/hello/cpuset.cpus and mems.

Also please paste the o/p of /dev/cgroup/cpuset.cpus and mems

> [host:~]$ echo 575 > /dev/cgroup/hello/tasks
> [host:~]$ cat /dev/cgroup/hello/tasks
> 575
> [host:~]$ id
> uid=0(root) gid=0(root) groups=0(root)
> [host:~]$
>
> Now, I try to move the task out - the parent/root:
>
> [host:~]$ echo 575 > /dev/cgroup/tasks
> -bash: echo: write error: Operation not permitted

can you send us the o/p of

ls -al /dev/cgroup

and ls -al /dev/cgroup/hello

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

_______________________________________________
Devel mailing list
Devel@openvz.org
https://openvz.org/mailman/listinfo/devel

Reply via email to