[mrtg] Re: Disk I/O stats
Greg.Volk at edwardjones.com
Greg.Volk at edwardjones.com
Wed Feb 27 00:21:46 MET 2002
>
> This is obviously going to be very linux / kernel specific.
>
> (wally)[me #cat /proc/stat
>
> cpu 3173445 26 1302543 125223869
> cpu0 3173445 26 1302543 125223869
> page 311513440 51043843
> swap 113162 57755
> intr 258773534 129699883 4670 0 0 0 80238964 4 0 0 0 39077411 0 0 0 9681495
> 71107 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
> 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
> 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
> 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
> 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
> 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
> disk_io: (2,0):(1,1,2,0,0)
> (3,0):(9765648,8043410,168089586,1722238,54186712)
> (8,0):(2860306,2093081,107002452,767225,41500176)
> (8,1):(2080581,2048940,120428632,31641,2500770)
> (8,2):(1695241,1675223,129184672,20018,1277474)
> (8,3):(1260412,1192028,98321536,68384,2622554)
> ctxt 288085157
> btime 1013467353
> processes 480528
>
> Which parameters is the correct ones and what are each of them.
> This machine has 1 x Floppy (2) 1 x IDE (3) and 4 x SCSCI (8) I am
> guessing.
>
> So the output of the awk is going to be different for me and
> probably the wrong thing on the 2 statements people are using.
>
> Is there a better way and what are all the values ?
>
Hmmmm...yes, it is quite linux specific and even a little
more kernel (major version) specific after that.
My /proc/stat output looks significantly different than yours.
FYI, I'm still running kernel 2.2.13.
> cat /proc/stat
cpu 41416178 16862 11598414 1658900830
cpu0 20676724 8250 5792067 829489101
cpu1 20739454 8612 5806347 829411729
disk 210216141 0 0 0
disk_rio 71373150 0 0 0
disk_wio 138842991 0 0 0
disk_rblk 570985188 0 0 0
disk_wblk 1110743928 0 0 0
page 141969506 181515320
swap 4313416 2820942
intr 11002705 855966142 10 0 0 0 862125398 0 0 1 0 0 0 0 1 2587878444 5 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
ctxt 861448849
btime 1006205249
processes 9748185
The script is grepping on disk_rio and disk_wio which if I
understand correctly are whole-disk read and write requests
respectively.
Here is what I have for documentation for some of the
counters...
disk_rio
Number of read requests to whole disk not only for partitions.
disk_wio
Number of write requests to whole disk.
disk_rblk
Number of read blocks from whole disk.
disk_wblk
Number of written blocks from whole disk.
--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive http://www.ee.ethz.ch/~slist/mrtg
FAQ http://faq.mrtg.org Homepage http://www.mrtg.org
WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
More information about the mrtg
mailing list