From: Nick Piggin Subject: Re: [PATCH v3 2/7] fs: Use a percpu_counter to track nr_inodes Date: Tue, 24 Jul 2007 11:30:55 +1000 Message-ID: <200707241130.56767.nickpiggin@yahoo.com.au> References: <493100B0.6090104@cosmosbay.com> <4941968E.3020201@cosmosbay.com> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4941968E.3020201-fPLkHRcR87vqlBn2x/YWAg@public.gmane.org> Content-Disposition: inline Sender: kernel-testers-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-ID: Content-Type: text/plain; charset="us-ascii" To: Eric Dumazet Cc: Andrew Morton , Ingo Molnar , Christoph Hellwig , David Miller , "Rafael J. Wysocki" , linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, "kernel-testers-u79uwXL29TY76Z2rM5mHXA@public.gmane.org >> Kernel Testers List" , Mike Galbraith , Peter Zijlstra , Linux Netdev List , Christoph Lameter , linux-fsdevel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Al Viro , "Paul E. McKenney" On Friday 12 December 2008 09:39, Eric Dumazet wrote: > Avoids cache line ping pongs between cpus and prepare next patch, > because updates of nr_inodes dont need inode_lock anymore. > > (socket8 bench result : no difference at this point) Looks good. But.... If we never actually need fast access to the approximate total, (which seems to apply to this and the previous patch) we could use something much simpler which does not have the spinlock or all this batching stuff that percpu counters have. I'd prefer that because it will be faster in a straight line... (BTW. percpu counters can't be used in interrupt context? That's nice.)