Jump to Navigation

197 - iostat

The iostat command is used for monitoring system input/output device loading by observing the time the devices are active in relation
to their average transfer rates. The iostat command generates reports that can be used to change system configuration to better balance
the input/output load between physical disks.

iostat is part of the sysstat package, so go ahead and install it :

# yum -y install sysstat

< Examples >

* Display a single history since boot report for all CPU and Devices.

# iostat

* Display a continuous device report at two second intervals.

# iostat -d 2

* Display six reports at two second intervals for all devices.

# iostat -d 2 6

* Display six reports of extended statistics at two second intervals for devices hda and hdb.

# iostat -x hda hdb 2 6

*Display six reports at two second intervals for device sda and all its partitions (sda1, etc.)

# iostat -p sda 2 6

* CPU Statistics(%user, %nice, %system, %iowait, %steal, %idle ) Only

# iostat 5 -c








Main menu 2

Story | by Dr. Radut