From mboxrd@z Thu Jan 1 00:00:00 1970 From: KOSAKI Motohiro Subject: Re: [PATCH] vmscan: synchronous lumpy reclaim don't call congestion_wait() Date: Sun, 1 Aug 2010 19:51:05 +0900 (JST) Message-ID: <20100801194520.4B14.A69D9226@jp.fujitsu.com> References: <20100801180751.4B0E.A69D9226@jp.fujitsu.com> <20100801104232.GA17573@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit 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 To: Wu Fengguang Return-path: In-Reply-To: <20100801104232.GA17573@localhost> Sender: owner-linux-mm@kvack.org List-Id: linux-fsdevel.vger.kernel.org > > 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, 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