[PATCH 04/33] task containersv11 add fork exit hooks

2007-09-17 Thread Paul Menage
Adds the necessary hooks to the fork() and exit() paths to ensure that new children inherit their parent's cgroup assignments, and that exiting processes release reference counts on their cgroups. Signed-off-by: Paul Menage <[EMAIL PROTECTED]> --- include/linux/cgroup.h |

[PATCH 16/33] add containerstats v3

2007-09-17 Thread Paul Menage
From: Balbir Singh <[EMAIL PROTECTED]> (container->cgroup renaming by Paul Menage <[EMAIL PROTECTED]>) This patch is inspired by the discussion at http://lkml.org/lkml/2007/4/11/187 and implements per cgroup statistics as suggested by Andrew Morton in http://lkml.org/lkml/2007

[PATCH 33/33] memory-controller-make-charging-gfp-mask-aware

2007-09-17 Thread Paul Menage
From: Balbir Singh <[EMAIL PROTECTED]> (container->cgroup renaming by Paul Menage <[EMAIL PROTECTED]>) Nick Piggin pointed out that swap cache and page cache addition routines could be called from non GFP_KERNEL contexts. This patch makes the charging routine aware of the gfp con

[PATCH 30/33] memory controller add switch to control what type of pages to limit v7

2007-09-17 Thread Paul Menage
From: Balbir Singh <[EMAIL PROTECTED]> (container->cgroup renaming by Paul Menage <[EMAIL PROTECTED]>) Choose if we want cached pages to be accounted or not. By default both are accounted for. A new set of tunables are added. echo -n 1 > mem_control_type switches the account

[PATCH 27/33] memory controller add per container lru and reclaim v7

2007-09-17 Thread Paul Menage
From: Balbir Singh <[EMAIL PROTECTED]> (container->cgroup renaming by Paul Menage <[EMAIL PROTECTED]>) Add the page_cgroup to the per cgroup LRU. The reclaim algorithm has been modified to make the isolate_lru_pages() as a pluggable component. The scan_control data structure

[PATCH 12/33] task containersv11 example cpu accounting subsystem

2007-09-17 Thread Paul Menage
off-by: Paul Menage <[EMAIL PROTECTED]> --- include/linux/cgroup_subsys.h |6 include/linux/cpu_acct.h | 14 ++ init/Kconfig |7 + kernel/Makefile |1 kernel/cpu_acct.c| 186 + ke

[PATCH 06/33] task containersv11 add procfs interface

2007-09-17 Thread Paul Menage
Add: /proc/cgroups - general system info /proc/*/cgroup - per-task cgroup membership info Signed-off-by: Paul Menage <[EMAIL PROTECTED]> --- fs/proc/base.c|7 + include/linux/cgroup.h |2 kernel/cgroup.c| 132 3 files c

[PATCH 09/33] task containersv11 shared container subsystem group arrays include fix

2007-09-17 Thread Paul Menage
7;BDI_CAP_NO_ACCT_DIRTY' undeclared (first use in this function) kernel/cgroup.c:574: error: (Each undeclared identifier is reported only once) Signed-off-by: Andrew Morton <[EMAIL PROTECTED]> Signed-off-by: Paul Menage <[EMAIL PROTECTED]> --- kernel/cgroup.c |1 + 1 file chan

[PATCH 23/33] memory controller containers setup v7

2007-09-17 Thread Paul Menage
From: Balbir Singh <[EMAIL PROTECTED]> (container->cgroup renaming by Paul Menage <[EMAIL PROTECTED]>) Setup the memory cgroup and add basic hooks and controls to integrate and work with the cgroup. Signed-off-by: Balbir Singh <[EMAIL PROTECTED]> Signed-off-by: Paul Men

[PATCH 28/33] memory controller add per container lru and reclaim v7 fix

2007-09-17 Thread Paul Menage
From: Andrew Morton <[EMAIL PROTECTED]> (container->cgroup renaming by Paul Menage <[EMAIL PROTECTED]>) mm/memcontrol.c: In function 'mem_cgroup_charge': mm/memcontrol.c:337: error: implicit declaration of function 'congestion_wait' Signed-off-by: Andrew Morto

[PATCH 20/33] memory controller add documentation

2007-09-17 Thread Paul Menage
From: Balbir Singh <[EMAIL PROTECTED]> (container->cgroup renaming by Paul Menage <[EMAIL PROTECTED]>) Signed-off-by: Balbir Singh <[EMAIL PROTECTED]> Signed-off-by: Paul Menage <[EMAIL PROTECTED]> --- Documentation/controllers/memory.txt | 259

[PATCH 02/33] task containersv11 basic task container framework fix

2007-09-17 Thread Paul Menage
Handle reading /proc/self/cpuset when cpusets isn't mounted. Signed-off-by: Paul Menage <[EMAIL PROTECTED]> --- kernel/cgroup.c |9 + 1 file changed, 9 insertions(+) diff -puN kernel/cgroup.c~task-cgroupsv11-basic-task-cgroup-framework-fix kernel/cgroup.c --- a/kern

[PATCH 07/33] task containersv11 shared container subsystem group arrays

2007-09-17 Thread Paul Menage
e the same cgroup assignments, this reduces overall space usage and keeps the size of the task_struct down (three pointers added to task_struct compared to a non-cgroups kernel, no matter how many subsystems are registered). Signed-off-by: Paul Menage <[EMAIL PROTECTED]> --- Documentation/cg

[PATCH 15/33] task-containersv11-add-container_clone-interface-cgroups-fix-refcount-bug

2007-09-17 Thread Paul Menage
Updates cgroup_clone() to use lookup_one_len() rather than cgroup_get_dentry(). Originally part of task-cgroupsv11-basic-task-cgroup-framework-cgroups-fix-refcount-bug but split out by akpm for the -mm tree. Signed-off-by: Paul Menage <[EMAIL PROTECTED]> --- kernel/cgroup.c |2 +-

[PATCH 08/33] task containersv11 shared container subsystem group arrays avoid lockdep warning

2007-09-17 Thread Paul Menage
ode will ultimately be a child directory of the parent whose i_mutex is nested outside of cgroup_mutex. Signed-off-by: Paul Menage <[EMAIL PROTECTED]> Acked-by: Peter Zijlstra <[EMAIL PROTECTED]> --- kernel/cgroup.c | 17 +++-- 1 files changed, 7 insertions(+), 10 del

[PATCH 17/33] add containerstats v3 fix

2007-09-17 Thread Paul Menage
From: Andrew Morton <[EMAIL PROTECTED]> (container->cgroup renaming by Paul Menage <[EMAIL PROTECTED]>) kernel/taskstats.c: In function 'cgroupstats_user_cmd': kernel/taskstats.c:414: error: dereferencing pointer to incomplete type Signed-off-by: Andrew Morton <[EM

[PATCH 21/33] memory controller resource counters v7

2007-09-17 Thread Paul Menage
From: Pavel Emelianov <[EMAIL PROTECTED]> (container->cgroup renaming by Paul Menage <[EMAIL PROTECTED]>) Introduce generic structures and routines for resource accounting. Each resource accounting cgroup is supposed to aggregate it, cgroup_subsystem_state and its resource-s

[PATCH 22/33] memory controller resource counters v7 fix

2007-09-17 Thread Paul Menage
From: David Rientjes <[EMAIL PROTECTED]> (container->cgroup renaming by Paul Menage <[EMAIL PROTECTED]>) There's a gotcha in res_counter_charge_locked() because of C99 6.3.1.8(1) since both counter->limit and 'val' are of unsigned long type, the result of the

[PATCH 31/33] memory controller make page_referenced container aware v7

2007-09-17 Thread Paul Menage
From: Balbir Singh <[EMAIL PROTECTED]> (container->cgroup renaming by Paul Menage <[EMAIL PROTECTED]>) Make page_referenced() cgroup aware. Without this patch, page_referenced() can cause a page to be skipped while reclaiming pages. This patch ensures that other cgroups do not

[PATCH 32/33] memory-controller-improve-user-interface

2007-09-17 Thread Paul Menage
From: Balbir Singh <[EMAIL PROTECTED]> (container->cgroup renaming by Paul Menage <[EMAIL PROTECTED]>) Change the interface to use bytes instead of pages. Page sizes can vary across platforms and configurations. A new strategy routine has been added to the resource counters in

[PATCH 10/33] task containersv11 automatic userspace notification of idle containers

2007-09-17 Thread Paul Menage
their release agents invoked by the workqueue task are linked on to a list. Signed-off-by: Paul Menage <[EMAIL PROTECTED]> --- include/linux/cgroup.h | 11 kernel/cgroup.c| 425 2 files changed, 393 insertions(+), 43 deletions(-) diff -puN i

[PATCH 03/33] task containersv11 add tasks file interface

2007-09-17 Thread Paul Menage
Add the per-directory "tasks" file for cgroupfs mounts; this allows the user to determine which tasks are members of a cgroup by reading a cgroup's "tasks", and to move a task into a cgroup by writing its pid to its "tasks". Signed-off-by: Paul Menage <

[PATCH 24/33] memory controller accounting setup v7

2007-09-17 Thread Paul Menage
From: Pavel Emelianov <[EMAIL PROTECTED]> (container->cgroup renaming by Paul Menage <[EMAIL PROTECTED]>) Basic setup routines, the mm_struct has a pointer to the cgroup that it belongs to and the the page has a page_cgroup associated with it. Signed-off-by: Pavel Emelianov &l

[PATCH 25/33] memory controller memory accounting v7

2007-09-17 Thread Paul Menage
From: Balbir Singh <[EMAIL PROTECTED]> (container->cgroup renaming by Paul Menage <[EMAIL PROTECTED]>) Add the accounting hooks. The accounting is carried out for RSS and Page Cache (unmapped) pages. There is now a common limit and accounting for both. The RSS accounting

[PATCH 29/33] memory controller oom handling v7

2007-09-17 Thread Paul Menage
From: Pavel Emelianov <[EMAIL PROTECTED]> (container->cgroup renaming by Paul Menage <[EMAIL PROTECTED]>) Out of memory handling for cgroups over their limit. A task from the cgroup over limit is chosen using the existing OOM logic and killed. TODO: 1. As discussed in the

[PATCH 14/33] task-containersv11-basic-task-container-framework-containers-fix-refcount-bug

2007-09-17 Thread Paul Menage
reference count being missed from the directory dentry. This patch removes cgroup_get_dentry() and replaces it with direct calls to lookup_one_len(); the initialization of cgroupfs dentry ops is done now in cgroup_create_file() at dentry creation time. Signed-off-by: Paul Menage <[EMAIL PROTEC

[PATCH 19/33] containers implement namespace tracking subsystem fix order of container subsystems in init kconfig

2007-09-17 Thread Paul Menage
From: Cedric Le Goater <[EMAIL PROTECTED]> (container->cgroup renaming by Paul Menage <[EMAIL PROTECTED]>) some cosmetic changes to init/Kconfig to make the subsystem list under cgroups look nicer when CONFIG_CGROUPS=y. also changed the 'select' to 'depends o

[PATCH 26/33] memory controller task migration v7

2007-09-17 Thread Paul Menage
From: Balbir Singh <[EMAIL PROTECTED]> (container->cgroup renaming by Paul Menage <[EMAIL PROTECTED]>) Allow tasks to migrate from one cgroup to the other. We migrate mm_struct's mem_cgroup only when the thread group id migrates. Signed-off-by: Balbir Singh <[EMAIL PR

[PATCH 05/33] task containersv11 add container_clone interface

2007-09-17 Thread Paul Menage
Add support for cgroup_clone(), a way to create new cgroups intended to be used for systems such as namespace unsharing. A new subsystem callback, post_clone(), is added to allow subsystems to automatically configure cloned cgroups. Signed-off-by: Paul Menage <[EMAIL PROTEC

[PATCH 00/33] Rename "Task Containers" to "Control Groups"

2007-09-17 Thread Paul Menage
-- This patchset renames "Task Containers" to "Control Groups", in line with recent discussions. These patches are drop-in replacements for those of the same names in the current -mm tree, as listed at the bottom of this email. I have tried to keep the patch names (based on the description lines

[PATCH 18/33] containers implement namespace tracking subsystem

2007-09-17 Thread Paul Menage
From: "Serge E. Hallyn" <[EMAIL PROTECTED]> (container->cgroup renaming by Paul Menage <[EMAIL PROTECTED]>) When a task enters a new namespace via a clone() or unshare(), a new cgroup is created and the task moves into it. This version names cgroups which are au

Re: cpuset trouble after hibernate

2007-09-18 Thread Paul Menage
On 9/9/07, Pavel Machek <[EMAIL PROTECTED]> wrote: > > One of the cpus was unplugged during suspend... perhaps some > save/restore is needed during hotplug/unplug? Or else keep track separately in cpusets of - cpus that the cpuset can run on - cpus that the admin has specified for the cpu to run

Re: [PATCH] Memory controller Add Documentation

2007-08-22 Thread Paul Menage
On 8/22/07, Balbir Singh <[EMAIL PROTECTED]> wrote: > > > Signed-off-by: Balbir Singh <[EMAIL PROTECTED]> > --- > > Documentation/memcontrol.txt | 193 > +++ > 1 file changed, 193 insertions(+) > > diff -puN /dev/null Documentation/memcontrol.txt > --- /de

<    1   2   3   4