[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20080714170359.31198aef.kamezawa.hiroyu@jp.fujitsu.com>
Date: Mon, 14 Jul 2008 17:03:59 +0900
From: KAMEZAWA Hiroyuki <kamezawa.hiroyu@...fujitsu.com>
To: Andrew Morton <akpm@...ux-foundation.org>
Cc: LKML <linux-kernel@...r.kernel.org>,
"riel@...hat.com" <riel@...hat.com>,
"kosaki.motohiro@...fujitsu.com" <kosaki.motohiro@...fujitsu.com>
Subject: [-mm][PATCH][resend] split-lru-memcg page reclaim active anon fix
v2
Under memcg, active anon tend not to go to inactive anon under split-lru vmscan.
Because this check was lacked in split-lru.
Without this, we see OOM under memcg too often.
This patch is a fix agaisnt
vmscan-second-chance-replacement-for-anonymous-pages.patch
Changelog: v1 -> v2:
- clean up and avoid adding "else".
Signed-off-by:KAMEZAWA Hiroyuki <kamezawa.hiroyu@...fujitsu.com>
Acked-by: Rik van Riel <riel@...hat.com>
mm/vmscan.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: linux-2.6.26-rc8-mm1/mm/vmscan.c
===================================================================
--- linux-2.6.26-rc8-mm1.orig/mm/vmscan.c
+++ linux-2.6.26-rc8-mm1/mm/vmscan.c
@@ -1499,7 +1499,7 @@ static unsigned long shrink_zone(int pri
* Even if we did not try to evict anon pages at all, we want to
* rebalance the anon lru active/inactive ratio.
*/
- if (scan_global_lru(sc) && inactive_anon_is_low(zone))
+ if (!scan_global_lru(sc) || inactive_anon_is_low(zone))
shrink_active_list(SWAP_CLUSTER_MAX, zone, sc, priority, 0);
throttle_vm_writeout(sc->gfp_mask);
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists