[Devel] Re: [PATCH v5 3/3] cgroups: make procs file writable

2010-12-15 Thread Paul Menage
Ping akpm? On Fri, Oct 8, 2010 at 2:57 PM, Paul Menage wrote: > Hi Andrew, > > Do you see any road-blockers for including this patch set in -mm ? > > Thanks, > Paul > > On Tue, Aug 24, 2010 at 11:08 AM, Paul Menage wrote: >> On Tue, Aug 10, 2010 at 10:48 PM, Ben Blum wrote: >>> >>> >>> Makes pr

[Devel] Re: cgroup tasks file error

2010-12-15 Thread Balbir Singh
* ccmail111 [2010-12-14 10:22:32]: > > > --- On Tue, 12/14/10, Balbir Singh wrote: > > > From: Balbir Singh > > Subject: Re: cgroup tasks file error > > To: "ccmail111" > > Cc: "Jue Hong" , contain...@lists.linux-foundation.org > > Date: Tuesday, December 14, 2010, 12:41 PM > > On Tue, Dec

[Devel] [PATCH v2 6/6] cgroups: Update documentation for bindable subsystems

2010-12-15 Thread Li Zefan
Provide a usage example, update the bind() callback API, etc. Signed-off-by: Li Zefan --- Documentation/cgroups/cgroups.txt | 37 + 1 files changed, 29 insertions(+), 8 deletions(-) diff --git a/Documentation/cgroups/cgroups.txt b/Documentation/cgroups/cgr

[Devel] [PATCH v2 4/6] cgroups: Mark some subsystems bindable/unbindable

2010-12-15 Thread Li Zefan
For those subsystems (debug, cpuacct, net_cls and devices), setting the bindable/unbindable flag is sufficient. Set freezer subsystem as bindable but not unbindable, because sub-cgroups' can be in FROZEN state. Signed-off-by: Li Zefan --- kernel/cgroup.c |6 +- kernel/cgroup_fr

[Devel] [PATCH v2 5/6] cgroups: Triger BUG if a bindable subsystem calls css_get()

2010-12-15 Thread Li Zefan
For now unbindable subsystems should not use css_get/put(), so check this misuse. Signed-off-by: Li Zefan --- include/linux/cgroup.h |7 +-- kernel/cgroup.c|5 + 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/include/linux/cgroup.h b/include/linux/cgroup.

[Devel] [PATCH v2 3/6] cgroups: Allow to unbind subsystem from a cgroup hierarchy

2010-12-15 Thread Li Zefan
This allows us to unbind a cgroup subsystem from a hierarchy which has sub-cgroups in it. If a subsystem is to support unbinding, when pinning a cgroup via css refcnt, it should use __css_tryget() instead of css_get(). Usage: # mount -t cgroup -o cpuset,cpuacct xxx /mnt # mkdir /mnt/tmp # ech

[Devel] [PATCH v2 2/6] cgroups: Allow to bind a subsystem to a cgroup hierarchy

2010-12-15 Thread Li Zefan
Stephane posted a patchset to add perf_cgroup subsystem, so perf can be used to monitor all threads belonging to a cgroup. But if you already mounted a cgroup hierarchy but without perf_cgroup and the hierarchy has sub-cgroups, you can't bind perf_cgroup to it, and thus you're not able to use per-

[Devel] [PATCH v2 1/6] cgroups: Shrink struct cgroup_subsys

2010-12-15 Thread Li Zefan
On x86_32, sizeof(struct cgroup_subsys) shrinks from 276 bytes to 264. Acked-by: Paul Menage Signed-off-by: Li Zefan --- include/linux/cgroup.h | 10 ++ 1 files changed, 6 insertions(+), 4 deletions(-) diff --git a/include/linux/cgroup.h b/include/linux/cgroup.h index ed4ba11..63d953

[Devel] [PATCH v2 0/6] cgroups: Bindable cgroup subsystems

2010-12-15 Thread Li Zefan
Stephane posted a patchset to add perf_cgroup subsystem, so perf can be used to monitor all threads belonging to a cgroup. But if you already mounted a cgroup hierarchy but without perf_cgroup and the hierarchy has sub-cgroups, you can't bind perf_cgroup to it, and thus you're not able to use per-