linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] memcg reclaim shouldn't change zone->recent_rotated statics.
@ 2008-11-25  3:22 KOSAKI Motohiro
  2008-11-25 15:51 ` Rik van Riel
  2008-11-25 23:54 ` Andrew Morton
  0 siblings, 2 replies; 8+ messages in thread
From: KOSAKI Motohiro @ 2008-11-25  3:22 UTC (permalink / raw)
  To: Rik van Riel, LKML, linux-mm, Andrew Morton; +Cc: kosaki.motohiro

Hi

this is a trivial bugfix.
I think this is not serious bug.
but if memcgroup reclaim change zone statics, global reclaim can confusion a bit.


================================================
memcg reclaim shouldn't change zone->recent_rotated statics.


Signed-off-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
CC: Rik van Riel <riel@redhat.com>
---
 mm/vmscan.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Index: b/mm/vmscan.c
===================================================================
--- a/mm/vmscan.c	2008-11-24 06:20:24.000000000 +0900
+++ b/mm/vmscan.c	2008-11-25 01:29:16.000000000 +0900
@@ -1254,7 +1254,8 @@ static void shrink_active_list(unsigned 
 	 * This helps balance scan pressure between file and anonymous
 	 * pages in get_scan_ratio.
 	 */
-	zone->recent_rotated[!!file] += pgmoved;
+	if (scan_global_lru(sc))
+		zone->recent_rotated[!!file] += pgmoved;
 
 	/*
 	 * Move the pages to the [file or anon] inactive list.


--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2008-11-27  3:59 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-11-25  3:22 [PATCH] memcg reclaim shouldn't change zone->recent_rotated statics KOSAKI Motohiro
2008-11-25 15:51 ` Rik van Riel
2008-11-25 23:54 ` Andrew Morton
2008-11-26  0:13   ` KOSAKI Motohiro
2008-11-26  0:16     ` Alan Cox
2008-11-26  0:19       ` KOSAKI Motohiro
2008-11-27  3:49   ` KAMEZAWA Hiroyuki
2008-11-27  3:59     ` Johannes Weiner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox