^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) What: /proc/diskstats
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) Date: February 2008
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) Contact: Jerome Marchand <jmarchan@redhat.com>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) The /proc/diskstats file displays the I/O statistics
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) of block devices. Each line contains the following 14
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) fields:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) == ===================================
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) 1 major number
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) 2 minor mumber
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) 3 device name
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) 4 reads completed successfully
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) 5 reads merged
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) 6 sectors read
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) 7 time spent reading (ms)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) 8 writes completed
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) 9 writes merged
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) 10 sectors written
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) 11 time spent writing (ms)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) 12 I/Os currently in progress
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) 13 time spent doing I/Os (ms)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) 14 weighted time spent doing I/Os (ms)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) == ===================================
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) Kernel 4.18+ appends four more fields for discard
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) tracking putting the total at 18:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) == ===================================
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) 15 discards completed successfully
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) 16 discards merged
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) 17 sectors discarded
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) 18 time spent discarding
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) == ===================================
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) Kernel 5.5+ appends two more fields for flush requests:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) == =====================================
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) 19 flush requests completed successfully
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) 20 time spent flushing
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) == =====================================
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) For more details refer to Documentation/admin-guide/iostats.rst