Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755542AbZKBPg3 (ORCPT ); Mon, 2 Nov 2009 10:36:29 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755522AbZKBPg2 (ORCPT ); Mon, 2 Nov 2009 10:36:28 -0500 Received: from fgwmail7.fujitsu.co.jp ([192.51.44.37]:43454 "EHLO fgwmail7.fujitsu.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755485AbZKBPg2 (ORCPT ); Mon, 2 Nov 2009 10:36:28 -0500 Date: Tue, 3 Nov 2009 00:35:30 +0900 (JST) X-SecurityPolicyCheck-FJ: OK by FujitsuOutboundMailChecker v1.3.1 From: KOSAKI Motohiro To: Minchan Kim Subject: Re: [PATCHv2 1/5] vmscan: separate sc.swap_cluster_max and sc.nr_max_reclaim Cc: kosaki.motohiro@jp.fujitsu.com, "Rafael J. Wysocki" , Rik van Riel , LKML , linux-mm , Andrew Morton In-Reply-To: <20091102093517.32021780.minchan.kim@barrios-desktop> References: <20091101234614.F401.A69D9226@jp.fujitsu.com> <20091102093517.32021780.minchan.kim@barrios-desktop> Message-Id: <20091103001211.8866.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] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1126 Lines: 46 Hi > > @@ -1932,6 +1938,7 @@ static unsigned long balance_pgdat(pg_data_t *pgdat, int order) > > .may_unmap = 1, > > .may_swap = 1, > > > .swap_cluster_max = SWAP_CLUSTER_MAX, > Or add comment in here. > > 'kswapd doesn't want to be bailed out while reclaim.' OK, reasonable. How about this? --- mm/vmscan.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/mm/vmscan.c b/mm/vmscan.c index 7fb3435..84e4da0 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c @@ -1930,6 +1930,10 @@ static unsigned long balance_pgdat(pg_data_t *pgdat, int order) .gfp_mask = GFP_KERNEL, .may_unmap = 1, .may_swap = 1, + /* + * kswapd doesn't want to be bailed out while reclaim. because + * we want to put equal scanning pressure on each zone. + */ .nr_to_reclaim = ULONG_MAX, .swappiness = vm_swappiness, .order = order, -- 1.6.2.5 -- 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/