From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Morton Subject: Re: [patch 00/41] cpu alloc / cpu ops v3: Optimize per cpu access Date: Thu, 29 May 2008 23:37:58 -0700 Message-ID: <20080529233758.7bd2c977.akpm@linux-foundation.org> References: <20080530035620.587204923@sgi.com> <20080529215827.b659d032.akpm@linux-foundation.org> <20080529222143.5d7aa1e5.akpm@linux-foundation.org> <483F981E.3040004@cosmosbay.com> <20080529231618.56e4028b.akpm@linux-foundation.org> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: Received: from smtp1.linux-foundation.org ([140.211.169.13]:36139 "EHLO smtp1.linux-foundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751185AbYE3GiO (ORCPT ); Fri, 30 May 2008 02:38:14 -0400 In-Reply-To: Sender: linux-arch-owner@vger.kernel.org List-ID: To: Christoph Lameter Cc: Eric Dumazet , linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, David Miller , Peter Zijlstra , Rusty Russell , Mike Travis On Thu, 29 May 2008 23:22:31 -0700 (PDT) Christoph Lameter wrote: > On Thu, 29 May 2008, Andrew Morton wrote: > > > ext3 maintains three percpu_counters per mount. Each percpu_counter > > does one percpu_alloc. People can mount an arbitrary number of ext3 > > filesystems! > > But its 4 bytes per alloc right? It could be 4000. The present alloc_percpu() would support that. And struct nfs_iostats is 264 bytes and nfs does an alloc_percpu() of one of those per server and mounting thousands of servers per client is, I believe, a real-world operation. Plus for the entyenth time: saying that this code will probably work acceptably for most people in 2.6.26 is not sufficient!