Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758170Ab3HOORC (ORCPT ); Thu, 15 Aug 2013 10:17:02 -0400 Received: from mail-pa0-f47.google.com ([209.85.220.47]:60628 "EHLO mail-pa0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757431Ab3HOORA (ORCPT ); Thu, 15 Aug 2013 10:17:00 -0400 Date: Thu, 15 Aug 2013 23:16:53 +0900 From: Minchan Kim To: Mel Gorman Cc: Xishi Qiu , Andrew Morton , riel@redhat.com, aquini@redhat.com, linux-mm@kvack.org, LKML Subject: Re: [PATCH] mm: skip the page buddy block instead of one page Message-ID: <20130815141652.GE8437@gmail.com> References: <20130814161642.GM2296@suse.de> <20130814163921.GC2706@gmail.com> <20130814180012.GO2296@suse.de> <520C3DD2.8010905@huawei.com> <20130815024427.GA2718@gmail.com> <520C4EFF.8040305@huawei.com> <20130815041736.GA2592@gmail.com> <20130815113019.GV2296@suse.de> <20130815131935.GA8437@gmail.com> <20130815134209.GW2296@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20130815134209.GW2296@suse.de> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1038 Lines: 33 On Thu, Aug 15, 2013 at 02:42:09PM +0100, Mel Gorman wrote: > On Thu, Aug 15, 2013 at 10:19:35PM +0900, Minchan Kim wrote: > > > > > > Why? We're looking for pages to migrate. If the page is free and at the > > > maximum order then there is no point searching in the middle of a free > > > page. > > > > isolate_migratepages_range API works with [low_pfn, end_pfn) > > and we can't guarantee page_order in normal compaction path > > so I'd like to limit the skipping by end_pfn conservatively. > > > > Fine > > s/MAX_ORDER_NR_PAGES/pageblock_nr_pages/ > > and take the min of it and > > low_pfn = min(low_pfn, end_pfn - 1) True. That was really what I suggested to Xishi. Only thing we need it is just number to justify for proving the benefit. Thanks. -- Kind regards, Minchan Kim -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/