[Devel] Re: [PATCH 5/6] [RFC] Checkpoint/restart unlinked files

2010-10-22 Thread Sukadev Bhattiprolu
Matt Helsley [matth...@us.ibm.com] wrote: | To understand why relinking is extremely useful for checkpoint/restart | consider this simple pseudocode program and a specific example checkpoint | of it: I can see how relinking the file simplifies C/R :-) But patch 2 indicates not all filesystems ca

[Devel] Re: [PATCH 5/7] cgroups: Make freezer subsystem bindable

2010-10-22 Thread Matt Helsley
On Fri, Oct 22, 2010 at 01:57:55PM -0700, Matt Helsley wrote: > On Fri, Oct 22, 2010 at 04:11:41PM +0800, Li Zefan wrote: > > To make it bindable, we need to thaw all processes when unbinding > > the freezer subsystem from a cgroup hierarchy. > > > > Signed-off-by: Li Zefan > > Based on experien

[Devel] Re: [PATCH 5/7] cgroups: Make freezer subsystem bindable

2010-10-22 Thread Matt Helsley
On Fri, Oct 22, 2010 at 01:57:55PM -0700, Matt Helsley wrote: > On Fri, Oct 22, 2010 at 04:11:41PM +0800, Li Zefan wrote: > > To make it bindable, we need to thaw all processes when unbinding > > the freezer subsystem from a cgroup hierarchy. > > > > Signed-off-by: Li Zefan > > Alternately yo

[Devel] Re: [PATCH 2/7] cgroups: Allow to bind a subsystem to a cgroup hierarchy

2010-10-22 Thread Matt Helsley
On Fri, Oct 22, 2010 at 04:09:56PM +0800, Li Zefan wrote: > 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, yo

[Devel] vzpkg2 and pkg-cacher

2010-10-22 Thread Benny Amorsen
opensource-sw.net seems to have been down for a while now. Is there a new home for vzpkg2 and pkg-cacher? Did they get abandoned? Did vzpkg acquire the same features, so vzpkg2 became unnecessary? vzpkg2 and pkg-cacher seemed to be a great leap forward in usability at the time, and I never conside

[Devel] Re: [PATCH 5/7] cgroups: Make freezer subsystem bindable

2010-10-22 Thread Matt Helsley
On Fri, Oct 22, 2010 at 04:11:41PM +0800, Li Zefan wrote: > To make it bindable, we need to thaw all processes when unbinding > the freezer subsystem from a cgroup hierarchy. > > Signed-off-by: Li Zefan Based on experience using cgroups and questions we've fielded in the past on IRC I'd say user

[Devel] Re: [PATCH 0/7] cgroups: Allow to bind/unbind subsystems to/from non-trival hierarchy

2010-10-22 Thread Peter Zijlstra
On Fri, 2010-10-22 at 16:09 +0800, Li Zefan wrote: > 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

[Devel] Re: [PATCH 2/7] cgroups: Allow to bind a subsystem to a cgroup hierarchy

2010-10-22 Thread Peter Zijlstra
On Fri, 2010-10-22 at 16:09 +0800, Li Zefan wrote: > For example, we can't decide a cgroup's cpuset.mems and > cpuset.cpus automatically, so cpuset is not bindable. You mean to say that you cannot add cpuset to an existing hierarchy right? Not that you cannot add perf/cpuacct to an existing cpuse

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

2010-10-22 Thread Li Zefan
Provide a usage example, and update the bind() callback API. Signed-off-by: Li Zefan --- Documentation/cgroups/cgroups.txt | 26 +- 1 files changed, 17 insertions(+), 9 deletions(-) diff --git a/Documentation/cgroups/cgroups.txt b/Documentation/cgroups/cgroups.txt ind

[Devel] [PATCH 6/7] cgroups: Warn if a bindable subsystem calls css_get()

2010-10-22 Thread Li Zefan
For now bindable subsystems should not use css_get/put(), so warn on this misuse. Signed-off-by: Li Zefan --- include/linux/cgroup.h |7 +-- kernel/cgroup.c|3 +++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/include/linux/cgroup.h b/include/linux/cgroup.h i

[Devel] [PATCH 5/7] cgroups: Make freezer subsystem bindable

2010-10-22 Thread Li Zefan
To make it bindable, we need to thaw all processes when unbinding the freezer subsystem from a cgroup hierarchy. Signed-off-by: Li Zefan --- include/linux/cgroup.h |3 ++- kernel/cgroup.c | 22 -- kernel/cgroup_freezer.c | 19 +-- 3 files chan

[Devel] [PATCH 4/7] cgroups: Mark some subsystems bindable

2010-10-22 Thread Li Zefan
For those subsystems (debug, cpuacct, net_cls and devices), setting the can_bind flag is sufficient. Signed-off-by: Li Zefan --- kernel/cgroup.c |1 + kernel/sched.c |1 + net/sched/cls_cgroup.c |1 + security/device_cgroup.c |1 + 4 files changed, 4 insertio

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

2010-10-22 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 3/7] cgroups: Allow to unbind subsystem from a cgroup hierarachy

2010-10-22 Thread Li Zefan
This allows us to unbind a cgroup subsystem from a hierarchy which has sub-cgroups in it. Due to some complexity, for now subsytems that use css_get/put() can't be unbound from such a hierarchy. Usage: # mount -t cgroup -o cpuset,cpuacct xxx /mnt # mkdir /mnt/tmp # echo $$ > /mnt/tmp/tasks (rem

[Devel] [PATCH 1/7] cgroups: Shrink struct cgroup_subsys

2010-10-22 Thread Li Zefan
On x86_32, sizeof(struct cgroup_subsys) shrinks from 276 bytes to 264. 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..e23ded6 100644 --- a/include/l

[Devel] [PATCH 0/7] cgroups: Allow to bind/unbind subsystems to/from non-trival hierarchy

2010-10-22 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-