Back to home page

OSCL-LXR

 
 

    


0001 What:           /proc/diskstats
0002 Date:           February 2008
0003 Contact:        Jerome Marchand <jmarchan@redhat.com>
0004 Description:
0005                 The /proc/diskstats file displays the I/O statistics
0006                 of block devices. Each line contains the following 14
0007                 fields:
0008 
0009                 ==  ===================================
0010                  1  major number
0011                  2  minor mumber
0012                  3  device name
0013                  4  reads completed successfully
0014                  5  reads merged
0015                  6  sectors read
0016                  7  time spent reading (ms)
0017                  8  writes completed
0018                  9  writes merged
0019                 10  sectors written
0020                 11  time spent writing (ms)
0021                 12  I/Os currently in progress
0022                 13  time spent doing I/Os (ms)
0023                 14  weighted time spent doing I/Os (ms)
0024                 ==  ===================================
0025 
0026                 Kernel 4.18+ appends four more fields for discard
0027                 tracking putting the total at 18:
0028 
0029                 ==  ===================================
0030                 15  discards completed successfully
0031                 16  discards merged
0032                 17  sectors discarded
0033                 18  time spent discarding
0034                 ==  ===================================
0035 
0036                 Kernel 5.5+ appends two more fields for flush requests:
0037 
0038                 ==  =====================================
0039                 19  flush requests completed successfully
0040                 20  time spent flushing
0041                 ==  =====================================
0042 
0043                 For more details refer to Documentation/admin-guide/iostats.rst