Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756793Ab0HAKvL (ORCPT ); Sun, 1 Aug 2010 06:51:11 -0400 Received: from fgwmail6.fujitsu.co.jp ([192.51.44.36]:43214 "EHLO fgwmail6.fujitsu.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755322Ab0HAKvJ (ORCPT ); Sun, 1 Aug 2010 06:51:09 -0400 X-SecurityPolicyCheck-FJ: OK by FujitsuOutboundMailChecker v1.3.1 From: KOSAKI Motohiro To: Wu Fengguang Subject: Re: [PATCH] vmscan: synchronous lumpy reclaim don't call congestion_wait() Cc: kosaki.motohiro@jp.fujitsu.com, Andrew Morton , Mel Gorman , Minchan Kim , Andy Whitcroft , Rik van Riel , Christoph Hellwig , "linux-kernel@vger.kernel.org" , "linux-fsdevel@vger.kernel.org" , "linux-mm@kvack.org" , Dave Chinner , Chris Mason , Nick Piggin , Johannes Weiner , KAMEZAWA Hiroyuki , Andrea Arcangeli , Andreas Mohr , Bill Davidsen , Ben Gamari In-Reply-To: <20100801104232.GA17573@localhost> References: <20100801180751.4B0E.A69D9226@jp.fujitsu.com> <20100801104232.GA17573@localhost> Message-Id: <20100801194520.4B14.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, 1 Aug 2010 19:51:05 +0900 (JST) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 814 Lines: 26 > > If the system 512MB memory, DEF_PRIORITY mean 128kB scan and It takes 4096 > > shrink_page_list() calls to scan 128kB (i.e. 128kB/32=4096) memory. > > Err you must forgot the page size. page size? DEF_PRIORITY is 12. 512MB >> DEF_PRIORITY = 512MB / 4096 = 128kB 128kB scan mean 4096 times shrink_list(). because one shrink_list() scan SWAP_CLUSTER_MAX (i.e. 32). > > 128kB means 128kB/4kB=32 pages which fit exactly into one > SWAP_CLUSTER_MAX batch. The shrink_page_list() call times > has nothing to do DEF_PRIORITY. Umm.. I haven't catch this mention. -- 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/