From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753440Ab0KNGCL (ORCPT ); Sun, 14 Nov 2010 01:02:11 -0500 Received: from fgwmail7.fujitsu.co.jp ([192.51.44.37]:45319 "EHLO fgwmail7.fujitsu.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751670Ab0KNGCH (ORCPT ); Sun, 14 Nov 2010 01:02:07 -0500 X-SecurityPolicyCheck-FJ: OK by FujitsuOutboundMailChecker v1.3.1 From: KOSAKI Motohiro To: Mel Gorman Subject: Re: [PATCH 3/3] mm,vmscan: Reclaim order-0 and compact instead of lumpy reclaim when under light pressure Cc: kosaki.motohiro@jp.fujitsu.com, Andrea Arcangeli , Andrew Morton , Rik van Riel , Johannes Weiner , linux-mm@kvack.org, linux-kernel@vger.kernel.org In-Reply-To: <20101112093742.GA3537@csn.ul.ie> References: <1289502424-12661-4-git-send-email-mel@csn.ul.ie> <20101112093742.GA3537@csn.ul.ie> Message-Id: <20101114150039.E028.A69D9226@jp.fujitsu.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Becky! ver. 2.50.07 [ja] Date: Sun, 14 Nov 2010 15:02:03 +0900 (JST) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > On Thu, Nov 11, 2010 at 07:07:04PM +0000, Mel Gorman wrote: > > + if (COMPACTION_BUILD) > > + sc->lumpy_reclaim_mode = LUMPY_MODE_COMPACTION; > > + else > > + sc->lumpy_reclaim_mode = LUMPY_MODE_CONTIGRECLAIM; > > > > Gack, I posted the slightly wrong version. This version prevents lumpy > reclaim ever being used. The figures I posted were for a patch where > this condition looked like > > if (COMPACTION_BUILD && priority > DEF_PRIORITY - 2) > sc->lumpy_reclaim_mode = LUMPY_MODE_COMPACTION; > else > sc->lumpy_reclaim_mode = LUMPY_MODE_CONTIGRECLAIM; Can you please tell us your opinition which is better 1) automatically turn lumby on by priority (this approach) 2) introduce GFP_LUMPY (andrea proposed). I'm not sure which is better, then I'd like to hear both pros/cons concern. Thanks.