pcp
[Top] [All Lists]

RE: bug in /proc/stat parsing on linux 2.4...

To: <pcp@xxxxxxxxxxx>
Subject: RE: bug in /proc/stat parsing on linux 2.4...
From: "gilly" <gilly@xxxxxxxxxx>
Date: Wed, 29 Aug 2001 10:16:07 +0200
Importance: Normal
In-reply-to: <Pine.LNX.4.21.0108290728180.7594-100000@sherman.melbourne.sgi.com>
Reply-to: <gilly@xxxxxxxxxx>
Sender: owner-pcp@xxxxxxxxxxx
do you know if there's such a patch for linux kernel 2.4.6, since it seems
the structures are changed and the sard patch versions I can find are not
compatible to this kernel.
thanks in advance, gilly

-----Original Message-----
From: Mark Goodwin [mailto:markgw@xxxxxxx]
Sent: Tuesday, August 28, 2001 11:32 PM
To: gilly
Cc: pcp@xxxxxxxxxxx
Subject: Re: bug in /proc/stat parsing on linux 2.4...


On Tue, 28 Aug 2001, gilly wrote:

> In the linux PMDA, in proc_stat.c file (parsing of /proc/stat file)
there's
> a different parsing for 2.4 kernels and 2.2 ones. I'm running on 2.4.6
linux
> kernel and in /proc/stat the line says:
> "disk_io:............." (disk io stats for all devices) includes 5
> parameters, and not 4 as expected in proc_stat.c:
> instead of - (X,Y):(RIO,RBLK,WIO,WBLK),
> the line is - (X,Y):(TOTALIO*,RIO,RBLK,WIO,WBLK)
> *(TOTALIO = RIO + WIO)
> Attached is an example for /proc/stat file in 2.4.6 linux kernel & a fix
for
> this bug.

thanks, it looks like you are correct and I have applied your patch. Most
of the machines around here have the "sard" patch applied (which gives
extra I/O accounting in /proc/partitions) and if sard stats are available
then /proc/stat is not used for disk stats.

-- Mark


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