xfs
[Top] [All Lists]

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

To: Ted Kline <jtk@xxxxxxx>
Subject: Re: TAKE - Implement the "/proc/sys/fs/xfs_stats" printout.
From: "Andi Kleen" <ak@xxxxxxx>
Date: Wed, 31 May 2000 20:50:48 +0200
Cc: ak@xxxxxxx (Andi Kleen), lord@xxxxxxx (Steve Lord), linux-xfs@xxxxxxxxxxx
In-reply-to: <200005311831.NAA80815@xxxxxxxxxxxxxxxxxxxxx>; from jtk@xxxxxxx on Wed, May 31, 2000 at 01:31:20PM -0500
References: <20000531200503.A31398@xxxxxxxxxxxxxxxxxxx> <200005311831.NAA80815@xxxxxxxxxxxxxxxxxxxxx>
Sender: owner-linux-xfs@xxxxxxxxxxx
On Wed, May 31, 2000 at 01:31:20PM -0500, Ted Kline wrote:
> > 
> > On Wed, May 31, 2000 at 12:37:11PM -0500, Steve Lord wrote:
> > > > 
> > > > XFS stats have been in the system for a long time; now they
> > > > can be printed by:
> > > > 
> > > >         cat /proc/sys/fs/xfs_stats
> > > > 
> > > 
> > > Ted,
> > > 
> > > probably /proc/fs/xfs/xfs_stats is a better place to put this, /proc/sys
> > > tends to consist of things which control kernel tunables.
> > 
> > Also the format is hard to parse by a program. I'm sure someone somewhere
> > will later curse you for that ;) 
> > 
> > -Andi
> > 
> 
> I'm open to moving it, /proc/fs/xfs/.. is a little more difficult, but
> not much, I think we need to create the ..xfs.. directory..
> 
> How about 2 files?  One good for human eyes & xfs_stats.raw for "more
> machine readable?

For machine readable /proc/sys is actually good again (using the sysctl.h
infrastructure with one read only file / variable) 

I guess that would be overkill though, a simple file e.g. in the format
of /proc/cpuinfo that is friendly to both human and machine is probably 
enough.


-Andi

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