Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755908Ab0HAKoq (ORCPT ); Sun, 1 Aug 2010 06:44:46 -0400 Received: from mga09.intel.com ([134.134.136.24]:53249 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751921Ab0HAKop (ORCPT ); Sun, 1 Aug 2010 06:44:45 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.55,297,1278313200"; d="scan'208";a="643682786" Date: Sun, 1 Aug 2010 18:42:32 +0800 From: Wu Fengguang To: KOSAKI Motohiro Cc: 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 Subject: Re: [PATCH] vmscan: synchronous lumpy reclaim don't call congestion_wait() Message-ID: <20100801104232.GA17573@localhost> References: <20100801085134.GA15577@localhost> <20100801180751.4B0E.A69D9226@jp.fujitsu.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100801180751.4B0E.A69D9226@jp.fujitsu.com> User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 596 Lines: 16 > 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. 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. Thanks, Fengguang -- 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/