Re: [PATCH 0/4] CGroup: Support for named and empty hierarchies

From: KAMEZAWA Hiroyuki
Date: Thu Jul 23 2009 - 01:14:55 EST


On Wed, 22 Jul 2009 12:50:24 -0700
Paul Menage <menage@xxxxxxxxxx> wrote:

> The following series implements support for named cgroup hierarchies,
> and for cgroup hierarchies that have no bound subsystems.
>
> This is a subset of the patch series that I sent out as an RFC earlier
> in the month; I'm not pushing the additional support for
> multiply-bound hierarchies at this point.
>
> Signed-off-by: Paul Menage <menage@xxxxxxxxxx>
>

Thank you. I'd like to look into procps package to allow

#ps -lf -cgroup=/xxxx/yyy
or
#top -cgroup=/xxx/yyy

I think this can reduce scanning cost of ps/top/pgrep/pkill etc...
(ps can take 1ms if there are lots of processes.)
If rejected, I'll find some other way ;) ../add cgps to libcgroup.

Thanks,
-Kame



> ---
>
> Paul Menage (4):
> Support named cgroups hierarchies
> Move the cgroup debug subsys into cgroup.c to access internal state
> Add a back-pointer from struct cg_cgroup_link to struct cgroup
> Allow cgroup hierarchies to be created with no bound subsystems
>
>
> Documentation/cgroups/cgroups.txt | 19 +
> kernel/Makefile | 1
> kernel/cgroup.c | 660 +++++++++++++++++++++++++++++--------
> kernel/cgroup_debug.c | 105 ------
> 4 files changed, 533 insertions(+), 252 deletions(-)
> delete mode 100644 kernel/cgroup_debug.c
>
> _______________________________________________
> Containers mailing list
> Containers@xxxxxxxxxxxxxxxxxxxxxxxxxx
> https://lists.linux-foundation.org/mailman/listinfo/containers

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/