Disk I/O stats from /proc/diskstats

yorhel_at_gmail.com
Date: 06/27/05


Date: 27 Jun 2005 07:45:32 -0700

Hello,

I'm trying to create a script which creates some system stats-graphs
with rrdtool, I want to graph the Disk I/O stats of my server, and I
can get some information from /proc/diskstats

`cat /proc/diskstats | grep 'hda '` gives me
   8 0 hda 2461810 61427 148062742 6482992 660009 1544934 67900384
45642376 0 7162961 52128751

where:
Field 1 -- # of reads issued
Field 2 -- # of reads merged, field 6 -- # of writes merged
Field 3 -- # of sectors read
Field 4 -- # of milliseconds spent reading
Field 5 -- # of writes completed
Field 7 -- # of sectors written
Field 8 -- # of milliseconds spent writing
Field 9 -- # of I/Os currently in progress
Field 10 -- # of milliseconds spent doing I/Os
Field 11 -- weighted # of milliseconds spent doing I/Os

the problem: I prefer to graph I/O stats in (K|M)bytes/second, and for
that I need to know the total amount of bytes read from/written to the
disk... but I don't know the size of one sector, nor the size of one
read/write.
Is there any way to calculate the total amount of bytes read
from/written to the disk?

Thanks in advance!
//YorHel



Relevant Pages

  • Re: Volume shadowing stalls...
    ... The disk giving the issue had a pagefile on it... ... Shadowing was designed to throttle back merge I/Os ...
    (comp.os.vms)
  • Re: 306GB drives!
    ... If possible, use MSCP controllers, which have ... Volume Shadowing Assists, including the Write History Logging which ... Avoid disk I/Os. ...
    (comp.os.vms)
  • Re: sizing and capacity planning
    ... In Perfmon if you capture the data to a log file. ... you can then run a report ... > space and how many disk drives are needed. ... > time so that I can get a calculation for I/Os per second. ...
    (microsoft.public.sqlserver.server)
  • Disk I/O and memory/swapping
    ... I'm running an AIX 5.1 system with TSM. ... The memory always seems to be ... I/Os to disk crawl. ... If I cancel the "dd" then I notice that the I/Os ...
    (comp.unix.aix)