From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail202.messagelabs.com (mail202.messagelabs.com [216.82.254.227]) by kanga.kvack.org (Postfix) with SMTP id BC95B6B004A for ; Fri, 3 Sep 2010 20:54:06 -0400 (EDT) Date: Fri, 3 Sep 2010 19:54:01 -0500 (CDT) From: Christoph Lameter Subject: Re: [PATCH 2/3] mm: page allocator: Calculate a better estimate of NR_FREE_PAGES when memory is low and kswapd is awake In-Reply-To: <20100903162821.48ec57cc.akpm@linux-foundation.org> Message-ID: References: <1283504926-2120-1-git-send-email-mel@csn.ul.ie> <1283504926-2120-3-git-send-email-mel@csn.ul.ie> <20100903155537.41f1a3a7.akpm@linux-foundation.org> <20100903162821.48ec57cc.akpm@linux-foundation.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linux-mm@kvack.org To: Andrew Morton Cc: Mel Gorman , Linux Kernel List , linux-mm@kvack.org, Rik van Riel , Johannes Weiner , Minchan Kim , KAMEZAWA Hiroyuki , KOSAKI Motohiro List-ID: On Fri, 3 Sep 2010, Andrew Morton wrote: > > percpu counters must always be added up when their value is determined. > > Nope. That's the difference between percpu_counter_read() and > percpu_counter_sum(). Hmmm... Okay you can fold them therefore. That is analogous to what we do in the _snapshot function now. -- 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