, , ,

Linux – IO Wait Monitoring – Top, IOStat and WMStat

1. Top

top -c

column wa => io wait

2. IOStat
Installation

sudo apt-get install -y sysstat
iostat -k 3

IO History

ls /var/log/sysstat/sa[0-9]*

Select a File, e.g.

sar -u -f /var/log/sysstat/sa17

3. VMStat

vmstat 5 120

Help:

vmstat --help

Usage:
 vmstat [options] [delay [count]]

Options:
 -a, --active           active/inactive memory
 -f, --forks            number of forks since boot
 -m, --slabs            slabinfo
 -n, --one-header       do not redisplay header
 -s, --stats            event counter statistics
 -d, --disk             disk statistics
 -D, --disk-sum         summarize disk statistics
 -p, --partition   partition specific statistics
 -S, --unit       define display unit

 -h, --help     display this help and exit
 -V, --version  output version information and exit

4. PiDStat – from sysstat
installation:

pidstat

References:
sysstat – http://sebastien.godard.pagesperso-orange.fr/download.html
sysstat 8.1.7-1 from ubuntu contains pidstat tool

5. dstat

Installation

sudo apt-get install -y dstat

dstat -fcmlp
dstat –help

6. iotop
Installation

sudo apt-get install iotop -y

Usage for accumulated process io

iotop -Pao

7. blktrace
sudo apt-get install blktrace -y

8. iodump
Installation

wget http://aspersa.googlecode.com/svn/trunk/iodump
echo 1 > /proc/sys/vm/block_dump
while true; do sleep 1; dmesg -c; done | perl iodump

References:
http://www.xaprb.com/blog/2009/08/23/how-to-find-per-process-io-statistics-on-linux/
iodump - http://aspersa.googlecode.com/svn/trunk/iodump
http://gentoobrowse.randomdan.homeip.net/category/sys-process

9. iopp

10. glances
http://www.hecticgeek.com/2012/03/glances-powerful-monitor-ubuntu-linux/

11. io monitoring References
http://sebastien.godard.pagesperso-orange.fr/features.html
http://www.xaprb.com/blog/2009/08/23/how-to-find-per-process-io-statistics-on-linux/
http://collectl.sourceforge.net/Examples.html
http://collectl-utils.sourceforge.net/

13. Links
http://freetofeel.com/page3/


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *