From: Steve Lord Subject: Re: Filesystem statistics APIs/counters ? Date: 25 Jun 2003 10:45:59 -0500 Sender: linux-fsdevel-owner@vger.kernel.org Message-ID: <1056555961.1416.95.camel@laptop.americas.sgi.com> References: <20030625143422.GE28900@mea-ext.zmailer.org> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Cc: linux-fsdevel@vger.kernel.org Return-path: Received: from [198.149.18.6] ([198.149.18.6]:29163 "EHLO tolkor.sgi.com") by vger.kernel.org with ESMTP id S264905AbTFYPbK (ORCPT ); Wed, 25 Jun 2003 11:31:10 -0400 To: Matti Aarnio In-Reply-To: <20030625143422.GE28900@mea-ext.zmailer.org> List-Id: linux-fsdevel.vger.kernel.org On Wed, 2003-06-25 at 09:34, Matti Aarnio wrote: > To be able to compare software performance in different systems, > I would like to periodically collect filesystem counters to see > how much activity there is, e.g. in case I am running several > hundred parallel activity processes, each doing their things in > the filesystem (I am essentially using the filesystem as a database.) > > I would like to know at least: > - Disk writes (requests and blocks) > - Disk reads > - i-node updates > - Directory accesses, modifications > - File accesses for read, read/write, write > - Counts of direct IOs > - Locking requests (internal, and application) > > I don't think those counters need to be absolute truth, that is, > they can be mere volatile, not atomic_t things. > > I think unsigned 32 bits should always be enough, if things wrap > around so that once a minute RRD polling can't keep up, then I need > to poll quicker... > > > > Reading 2.5 sources, I see that XFS has some performance > counters. Are they shared by all XFS filesystems in the box, > or one for each mounted system, that is unclear. > They are across all filesystems, not per filesystem. There is a script in our commands tree called xfsstats.pl for dumping them formatted, and the pcp toolset lets you look at them and a lot of other things: http://oss.sgi.com/projects/pcp/ Doing it per fs gets a little more expensive. Steve