From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from psmtp.com (na3sys010amx169.postini.com [74.125.245.169]) by kanga.kvack.org (Postfix) with SMTP id 4D71A6B004D for ; Mon, 7 Jan 2013 10:37:28 -0500 (EST) Date: Mon, 7 Jan 2013 15:37:23 +0000 From: Mel Gorman Subject: Re: [PATCH 44/49] mm: numa: Add THP migration for the NUMA working set scanning fault case. Message-ID: <20130107153723.GN3885@suse.de> References: <1354875832-9700-1-git-send-email-mgorman@suse.de> <1354875832-9700-45-git-send-email-mgorman@suse.de> <20130105084229.GA3208@hacker.(null)> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <20130105084229.GA3208@hacker.(null)> Sender: owner-linux-mm@kvack.org List-ID: To: Wanpeng Li Cc: Peter Zijlstra , Andrea Arcangeli , Ingo Molnar , Rik van Riel , Johannes Weiner , Hugh Dickins , Thomas Gleixner , Paul Turner , Hillf Danton , David Rientjes , Lee Schermerhorn , Alex Shi , Srikar Dronamraju , Aneesh Kumar , Linus Torvalds , Andrew Morton , Linux-MM , LKML On Sat, Jan 05, 2013 at 04:42:29PM +0800, Wanpeng Li wrote: > >+int numamigrate_isolate_page(pg_data_t *pgdat, struct page *page) > >+{ > >+ int ret = 0; > > > > /* Avoid migrating to a node that is nearly full */ > > if (migrate_balanced_pgdat(pgdat, 1)) { > > Hi Mel Gorman, > > This parameter nr_migrate_pags = 1 is not correct, since balancenuma also > support THP in this patchset, the parameter should be 1 <= compound_order(page) > instead of 1. I'd rather change to something like: > True. The impact is marginal because it only applies when a node is almost full but it does mean that we do some unnecessary work before migration fails anyway. I've added a TODO item to fix it when I next revisit NUMA balancing. Thanks. -- Mel Gorman SUSE Labs -- 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