msgbartop
MAC OS X, Linux, Windows and other IT Tips and Tricks
msgbarbottom

07 Feb 10 /proc/diskstats line format

Each line inside /proc/diskstats is having the following info format:
eg.
for sda (Full disk)
cat /proc/diskstats | grep 'sda '
8 0 sda 2461810 61427 148062742 6482992 660009 1544934 67900384 45642376 0 7162961 52128751

Meaning:(fields starting after the device name)
Field 1 -- # of reads issued
Field 2 -- # of reads merged
Field 3 -- # of sectors read
Field 4 -- # of milliseconds spent reading
Field 5 -- # of writes completed
Field 6 -- # of writes merged
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

or for hda1(Partition only)
cat /proc/diskstats | grep 'hda1 '
3 1 hda1 25838 525266 1505217 12041736

Meaning:
Field 1 -- # of reads issued - Total number of reads issued to this partition.
Field 2 -- # of sectors read - Total number of sectors requested to be read from this partition.
Field 3 -- # of writes issued - Total number of writes issued to this partition.
Field 4 -- # of sectors written - Total number of sectors requested to be written to this partition

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: