xfs
[Top] [All Lists]

Re: TAKE - Implement the "/proc/sys/fs/xfs_stats" printout.

To: nathans@xxxxxxxxxxxxxxxxxxxxxxxx (Nathan Scott)
Subject: Re: TAKE - Implement the "/proc/sys/fs/xfs_stats" printout.
From: Ted Kline <jtk@xxxxxxx>
Date: Wed, 31 May 2000 20:51:13 -0500 (CDT)
Cc: jtk@xxxxxxx, lord@xxxxxxx, linux-xfs@xxxxxxxxxxx
In-reply-to: <10006010951.ZM10643@wobbly.melbourne.sgi.com> from "Nathan Scott" at Jun 01, 2000 09:51:06 AM
Sender: owner-linux-xfs@xxxxxxxxxxx
> 
> > 
> > I think we will be changing that, and there already is a program to display
> > this stuff, the performance copilot at http://oss.sgi.com/projects/pcp/
> > the Irix version can understand all these numbers, hooking up the linux
> > one should not be too hard.
> > 
> 
> We'll do this today & I'll send mail to linux-xfs@oss and pcp@oss
> once we have an updated pcp rpm (I'm not sure how long that process
> takes though).
> 
> Mark's (markgw) comments on file format etc (having done all the
> existing pcp metrics which come from /proc on Linux) are that the
> interface should be ascii-only - he suggests using /proc/stat as
> a reference.
> 
> My 2c on the file name - I prefer /proc/fs/xfs/stat for both
> consistency with nfs (/proc/fs/nfs/* subdir) and the option to
> add new files to the subdir later, and the "stat" file name for
> consistency with most of the other statistics files in procfs.
> 

I have a change to checkin shortly, changes the path to:

        /proc/fs/xfs/stats

                &

        /proc/fs/xfs/stats.raw

The 'stats' file is easy on the eyes, the 'stats.raw' is simple, easy
to grok ascii, i.e:

        xs_foo  1235

one per line..

Was able to do this by using the same read routine with just a few
more 'if's thrown in..

        -Ted

<Prev in Thread] Current Thread [Next in Thread>