xref: /linux/Documentation/ABI/testing/procfs-diskstats (revision 34433332841de2787f903fcf7de8dc3e06780f4a)
10e53c2beSJerome MarchandWhat:		/proc/diskstats
20e53c2beSJerome MarchandDate:		February 2008
30e53c2beSJerome MarchandContact:	Jerome Marchand <jmarchan@redhat.com>
40e53c2beSJerome MarchandDescription:
50e53c2beSJerome Marchand		The /proc/diskstats file displays the I/O statistics
60e53c2beSJerome Marchand		of block devices. Each line contains the following 14
70e53c2beSJerome Marchand		fields:
8bdca3c87SMichael Callahan
9*34433332SMauro Carvalho Chehab		==  ===================================
10*34433332SMauro Carvalho Chehab		 1  major number
11*34433332SMauro Carvalho Chehab		 2  minor mumber
12*34433332SMauro Carvalho Chehab		 3  device name
13*34433332SMauro Carvalho Chehab		 4  reads completed successfully
14*34433332SMauro Carvalho Chehab		 5  reads merged
15*34433332SMauro Carvalho Chehab		 6  sectors read
16*34433332SMauro Carvalho Chehab		 7  time spent reading (ms)
17*34433332SMauro Carvalho Chehab		 8  writes completed
18*34433332SMauro Carvalho Chehab		 9  writes merged
19*34433332SMauro Carvalho Chehab		10  sectors written
20*34433332SMauro Carvalho Chehab		11  time spent writing (ms)
21*34433332SMauro Carvalho Chehab		12  I/Os currently in progress
22*34433332SMauro Carvalho Chehab		13  time spent doing I/Os (ms)
23*34433332SMauro Carvalho Chehab		14  weighted time spent doing I/Os (ms)
24*34433332SMauro Carvalho Chehab		==  ===================================
25bdca3c87SMichael Callahan
26bdca3c87SMichael Callahan		Kernel 4.18+ appends four more fields for discard
27bdca3c87SMichael Callahan		tracking putting the total at 18:
28bdca3c87SMichael Callahan
29*34433332SMauro Carvalho Chehab		==  ===================================
30*34433332SMauro Carvalho Chehab		15  discards completed successfully
31*34433332SMauro Carvalho Chehab		16  discards merged
32*34433332SMauro Carvalho Chehab		17  sectors discarded
33*34433332SMauro Carvalho Chehab		18  time spent discarding
34*34433332SMauro Carvalho Chehab		==  ===================================
35bdca3c87SMichael Callahan
36b6866318SKonstantin Khlebnikov		Kernel 5.5+ appends two more fields for flush requests:
37b6866318SKonstantin Khlebnikov
38b6866318SKonstantin Khlebnikov		19 - flush requests completed successfully
39b6866318SKonstantin Khlebnikov		20 - time spent flushing
40b6866318SKonstantin Khlebnikov
414f4cfa6cSMauro Carvalho Chehab		For more details refer to Documentation/admin-guide/iostats.rst
42