Wednesday 23 March 2016

Monitoring disk i/o with CentOS

There are many different tools that can be used to help us measure disk i/o - although for this post I will be looking at two specific tools that both have their merits.

iotop (yum install iotop)

iotop is a real-time command line utility used to measure i/o performance for specific processes and has a similar interface to that of top.

iostat (yum install sysstat)

iostat comes as part of the sysstat package and is a great tool to check i/o against a specific disk for example:

iostat -x 2

The above command displays the disk i/o stats in 2 second intervals.

The %iowait variable is the time the system is waiting on the disk.


Post a Comment