memory-controller-add-per-container-lru-and-reclaim-v7
commitdd834f288ad942d697511c1f3f2bfb8040956791
authorBalbir Singh <balbir@linux.vnet.ibm.com>
Sun, 21 Oct 2007 22:45:18 +0000 (21 22:45 +0000)
committerMatthias Urlichs <smurf@hera.kernel.org>
Wed, 14 Nov 2007 11:30:32 +0000 (14 11:30 +0000)
treed2eb4154b86103783bfb1dc6aa52cb823eae10fa
parent4e12be1d01c1199e06d7ad831c30245a43dac5c9
memory-controller-add-per-container-lru-and-reclaim-v7

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 now accepts the cgroup on behalf of which
reclaims are carried out.  try_to_free_pages() has been extended to become
cgroup aware.

Signed-off-by: Pavel Emelianov <xemul@openvz.org>
Signed-off-by: Balbir Singh <balbir@linux.vnet.ibm.com>
Cc: Paul Menage <menage@google.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Cc: Nick Piggin <nickpiggin@yahoo.com.au>
Cc: Kirill Korotaev <dev@sw.ru>
Cc: Herbert Poetzl <herbert@13thfloor.at>
Cc: David Rientjes <rientjes@google.com>
Cc: Vaidyanathan Srinivasan <svaidy@linux.vnet.ibm.com>
DESC
memory-controller-add-per-cgroup-lru-and-reclaim-v7-fix
EDESC
From: Andrew Morton <akpm@linux-foundation.org>

mm/memcontrol.c: In function 'mem_cgroup_charge':
mm/memcontrol.c:337: error: implicit declaration of function 'congestion_wait'

Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Cc: Balbir Singh <balbir@linux.vnet.ibm.com>
Cc: David Rientjes <rientjes@google.com>
Cc: Herbert Poetzl <herbert@13thfloor.at>
Cc: Kirill Korotaev <dev@sw.ru>
Cc: Nick Piggin <nickpiggin@yahoo.com.au>
Cc: Paul Menage <menage@google.com>
Cc: Pavel Emelianov <xemul@openvz.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Vaidyanathan Srinivasan <svaidy@linux.vnet.ibm.com>
DESC
Memory Controller: initialize all scan_control's isolate_pages member
EDESC
From: Lee Schermerhorn <Lee.Schermerhorn@hp.com>

We need to initialize all scan_controls' isolate_pages member.  Otherwise,
shrink_active_list() attempts to execute at undefined location.

Signed-off-by: Lee Schermerhorn <lee.schermerhorn@hp.com>
Cc: Balbir Singh <balbir@linux.vnet.ibm.com>
DESC
make do_try_to_free_pages() static
EDESC
From: Adrian Bunk <bunk@kernel.org>

do_try_to_free_pages() can become static.

Signed-off-by: Adrian Bunk <bunk@kernel.org>
Cc: Balbir Singh <balbir@linux.vnet.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/memcontrol.h
include/linux/res_counter.h
include/linux/swap.h
mm/memcontrol.c
mm/swap.c
mm/vmscan.c