What: /proc/diskstats
Date: February 2008
Contact: Jerome Marchand <[email protected]>
Description:
The /proc/diskstats file displays the I/O statistics
of block devices. Each line contains the following 14
fields:
1 - major number
2 - minor mumber
3 - device name
4 - reads completed successfully
5 - reads merged
6 - sectors read
7 - time spent reading (ms)
8 - writes completed
9 - writes merged
10 - sectors written
11 - time spent writing (ms)
12 - I/Os currently in progress
13 - time spent doing I/Os (ms)
14 - weighted time spent doing I/Os (ms)
For more details refer to Documentation/iostats.txt
数据量见
iostat
:-m
将以 MiB(而不是块)显示输出,而MB_read
,MB_wrtn
是您要查找的数字。对于 I/O 操作(请求)的总量,请参阅
/sys/block/$DEV/$PART/stat
,例如/sys/block/sda/sda1/stat
或/proc/diskstats
,可以解释如下(这是来自内核文档树):