From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from psmtp.com (na3sys010amx107.postini.com [74.125.245.107]) by kanga.kvack.org (Postfix) with SMTP id 9002F6B003B for ; Fri, 2 Aug 2013 12:06:45 -0400 (EDT) From: Andrea Arcangeli Subject: [PATCH 2/9] mm: zone_reclaim: compaction: scan all memory with /proc/sys/vm/compact_memory Date: Fri, 2 Aug 2013 18:06:29 +0200 Message-Id: <1375459596-30061-3-git-send-email-aarcange@redhat.com> In-Reply-To: <1375459596-30061-1-git-send-email-aarcange@redhat.com> References: <1375459596-30061-1-git-send-email-aarcange@redhat.com> Sender: owner-linux-mm@kvack.org List-ID: To: linux-mm@kvack.org Cc: Johannes Weiner , Mel Gorman , Rik van Riel , Hugh Dickins , Richard Davies , Shaohua Li , Rafael Aquini , Andrew Morton , Hush Bensen Reset the stats so /proc/sys/vm/compact_memory will scan all memory. Signed-off-by: Andrea Arcangeli Reviewed-by: Rik van Riel Acked-by: Rafael Aquini Acked-by: Mel Gorman --- mm/compaction.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mm/compaction.c b/mm/compaction.c index 05ccb4c..cac9594 100644 --- a/mm/compaction.c +++ b/mm/compaction.c @@ -1136,12 +1136,14 @@ void compact_pgdat(pg_data_t *pgdat, int order) static void compact_node(int nid) { + pg_data_t *pgdat = NODE_DATA(nid); struct compact_control cc = { .order = -1, .sync = true, }; - __compact_pgdat(NODE_DATA(nid), &cc); + reset_isolation_suitable(pgdat); + __compact_pgdat(pgdat, &cc); } /* Compact all nodes in the system */ -- 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: email@kvack.org