From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from psmtp.com (na3sys010amx139.postini.com [74.125.245.139]) by kanga.kvack.org (Postfix) with SMTP id 15C006B0034 for ; Tue, 16 Jul 2013 19:29:42 -0400 (EDT) Received: from /spool/local by e23smtp01.au.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 17 Jul 2013 09:20:08 +1000 Received: from d23relay04.au.ibm.com (d23relay04.au.ibm.com [9.190.234.120]) by d23dlp01.au.ibm.com (Postfix) with ESMTP id 3A05B2CE804A for ; Wed, 17 Jul 2013 09:29:32 +1000 (EST) Received: from d23av04.au.ibm.com (d23av04.au.ibm.com [9.190.235.139]) by d23relay04.au.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id r6GNEHex5243238 for ; Wed, 17 Jul 2013 09:14:17 +1000 Received: from d23av04.au.ibm.com (loopback [127.0.0.1]) by d23av04.au.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id r6GNTViS005129 for ; Wed, 17 Jul 2013 09:29:31 +1000 Date: Wed, 17 Jul 2013 07:29:30 +0800 From: Wanpeng Li Subject: Re: [PATCH 02/10] mm: zone_reclaim: compaction: scan all memory with /proc/sys/vm/compact_memory Message-ID: <20130716232930.GA30164@hacker.(null)> Reply-To: Wanpeng Li References: <1373982114-19774-1-git-send-email-aarcange@redhat.com> <1373982114-19774-3-git-send-email-aarcange@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1373982114-19774-3-git-send-email-aarcange@redhat.com> Sender: owner-linux-mm@kvack.org List-ID: To: Andrea Arcangeli Cc: linux-mm@kvack.org, Mel Gorman , Rik van Riel , Hugh Dickins , Richard Davies , Shaohua Li , Rafael Aquini , Hush Bensen On Tue, Jul 16, 2013 at 03:41:46PM +0200, Andrea Arcangeli wrote: >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 Reviewed-by: Wanpeng Li >--- > 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 -- 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