From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Hellwig Subject: Re: [PATCH 03/19] fs: Convert nr_inodes and nr_unused to per-cpu counters Date: Sat, 16 Oct 2010 21:12:04 -0400 Message-ID: <20101017011204.GA2207@infradead.org> References: <1287216853-17634-1-git-send-email-david@fromorbit.com> <1287216853-17634-4-git-send-email-david@fromorbit.com> <1287217776.2799.69.camel@edumazet-laptop> <20101016100441.GP4681@dastard> <1287224852.2799.130.camel@edumazet-laptop> <1287250008.1998.123.camel@laptop> <20101017010944.GD29677@dastard> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Peter Zijlstra , Eric Dumazet , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org To: Dave Chinner Return-path: Content-Disposition: inline In-Reply-To: <20101017010944.GD29677@dastard> Sender: linux-kernel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org On Sun, Oct 17, 2010 at 12:09:44PM +1100, Dave Chinner wrote: > > fwiw, for_each_*_cpu() takes longer than a single jiffy tick on those > > machines. > > Yes, agreed. I'm not sure we need exact summation for these counters, > but I haven't wanted to bring inaccuracies into the code at this > point in time. I need to investigate the effect of using the > approximate summation values in all the cases they are used. Use of the dirty inodes numbers in the writeback code is something that does not make much sense. It was added as an undocumented workaround somewhere in the old writeback code, and spread to even more sites over time. I'm pretty sure we don't actually need it, but I'm not quite sure what we actually need.