Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965038AbVLHACx (ORCPT ); Wed, 7 Dec 2005 19:02:53 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S965043AbVLHACx (ORCPT ); Wed, 7 Dec 2005 19:02:53 -0500 Received: from omx1-ext.sgi.com ([192.48.179.11]:48053 "EHLO omx1.americas.sgi.com") by vger.kernel.org with ESMTP id S965038AbVLHACw (ORCPT ); Wed, 7 Dec 2005 19:02:52 -0500 Date: Wed, 7 Dec 2005 16:02:27 -0800 (PST) From: Christoph Lameter To: Nick Piggin cc: linux-kernel@vger.kernel.org, Hugh Dickins , linux-mm@kvack.org, Andi Kleen , Marcelo Tosatti Subject: Re: [RFC 1/3] Framework for accurate node based statistics In-Reply-To: <43976949.8010205@yahoo.com.au> Message-ID: References: <20051206182843.19188.82045.sendpatchset@schroedinger.engr.sgi.com> <439619F9.4030905@yahoo.com.au> <439684C0.9090107@yahoo.com.au> <43976949.8010205@yahoo.com.au> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1187 Lines: 29 On Thu, 8 Dec 2005, Nick Piggin wrote: > Christoph Lameter wrote: > > On Wed, 7 Dec 2005, Nick Piggin wrote: > > > Sorry, I think I meant: why don't you just use the "add all counters > > > from all per-cpu of the node" in order to find the node-statistic? > > which function is that? > > > > I'm thinking of get_page_state_node... but that's not quite the same > thing. I guess sum all per-CPU counters from all zones in the node, > but that's going to be costly on big machines. The per cpu counters count when a cpu did an allocation. They do not count on which node the allocation was done and are thereofre not useful to determine the memory use on one node. > So I'm not sure, I guess I don't have any bright ideas... there is the > batching approach used by current pagecache_acct - is something like > that not sufficient either? The framework provides a similar approach by keeping differential counters for each processor. - 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/