iostat – installation and usage

 

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 physicaldisks.

How to install iostat:

iostat is available in sysstat module, so to install iostat we need to install sysstat module.

Use following command to sysstat:

$ apt-get install sysstat

Examples:

To print all disks IO stat:

$ iostat

To print a specific disk IO stat:

$ iostat /dev/sdb

To contiuesly print a specific disk IO stats every 10 seconds:

$ iostat -d 10 /dev/sdb

To display device utilization and extended statistics in Kilobytes:

$ iostat -dkx
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s