Disk I/O stats from /proc/diskstats
yorhel_at_gmail.com
Date: 06/27/05
- Next message: Jonathan Bartlett: "Re: Database applications in Linux"
- Previous message: Ross: "Re: Database applications in Linux"
- Next in thread: Bill Marcum: "Re: Disk I/O stats from /proc/diskstats"
- Reply: Bill Marcum: "Re: Disk I/O stats from /proc/diskstats"
- Reply: Jan Panteltje: "Re: Disk I/O stats from /proc/diskstats"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: Jonathan Bartlett: "Re: Database applications in Linux"
- Previous message: Ross: "Re: Database applications in Linux"
- Next in thread: Bill Marcum: "Re: Disk I/O stats from /proc/diskstats"
- Reply: Bill Marcum: "Re: Disk I/O stats from /proc/diskstats"
- Reply: Jan Panteltje: "Re: Disk I/O stats from /proc/diskstats"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|