[Devel] Re: Unable to remove control groups on 2.6.23-rc8-mm1
Paul Menage
menage at google.com
Tue Sep 25 16:53:16 PDT 2007
What does memory.usage_in_bytes show? If it's non-zero, there could be
pages still accounted to the cgroup.
Paul
On 9/25/07, Badari Pulavarty <pbadari at us.ibm.com> wrote:
> Hi,
>
> I am playing with control groups on 2.6.23-rc8-mm1.
>
> I am able to mount cgroup and create subgroups. I was able
> to move some tasks into them. But, after killing tasks I am
> not able to remove the subgroups. Any idea on why ?
>
> Thanks,
> Badari
>
> elm3b155:/dev/cgroup # ls -l /dev/cgroup
> total 175
> drwxr-xr-x 4 root root 0 Sep 25 15:02 .
> drwxr-xr-x 35 root root 179272 Sep 25 14:18 ..
> -rw-r--r-- 1 root root 0 Sep 25 14:22 cpuacct.load
> -rw-r--r-- 1 root root 0 Sep 25 14:22 cpuacct.usage
> -rw-r--r-- 1 root root 0 Sep 25 14:22 debug.cgroup_refcount
> -rw-r--r-- 1 root root 0 Sep 25 14:22 debug.current_css_set
> -rw-r--r-- 1 root root 0 Sep 25 14:22
> debug.current_css_set_refcount
> -rw-r--r-- 1 root root 0 Sep 25 14:22 debug.taskcount
> -rw-r--r-- 1 root root 0 Sep 25 14:22 memory.control_type
> -rw-r--r-- 1 root root 0 Sep 25 14:22 memory.failcnt
> -rw-r--r-- 1 root root 0 Sep 25 14:22 memory.limit_in_bytes
> -rw-r--r-- 1 root root 0 Sep 25 14:22 memory.usage_in_bytes
> -rw-r--r-- 1 root root 0 Sep 25 14:22 notify_on_release
> -rw-r--r-- 1 root root 0 Sep 25 14:22 releasable
> -rw-r--r-- 1 root root 0 Sep 25 14:22 release_agent
> -rw-r--r-- 1 root root 0 Sep 25 14:22 tasks
> drwxr-xr-x 2 root root 0 Sep 25 16:27 xxx
> drwxr-xr-x 2 root root 0 Sep 25 14:22 yyy
>
>
> elm3b155:/dev/cgroup # cat xxx/tasks
> elm3b155:/dev/cgroup # cat yyy/tasks
> elm3b155:/dev/cgroup #
>
> elm3b155:/dev/cgroup # rmdir yyy
> rmdir: `yyy': Device or resource busy
> elm3b155:/dev/cgroup # rmdir xxx
> rmdir: `xxx': Device or resource busy
> elm3b155:/dev/cgroup #
>
>
>
_______________________________________________
Containers mailing list
Containers at lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers
More information about the Devel
mailing list