iostat

From RaySoft

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.[1]

Documentation

Syntax

iostat [PARAMETER ...] [DEVICE [...]|ALL] [INTERVAL [COUNT]]

Parameters

-c
Display the CPU utilization report.
-d
Display the device utilization report.
-h
Make the NFS report displayed by option -n easier to read by a human.
-k
Display statistics in kilobytes per second instead of blocks per second.
-m
Display statistics in megabytes per second instead of blocks or kilobytes per second.
-n
Display the network filesystem (NFS) report. This option works only with kernel 2.6.17 and later.
-p [DEVICE [, ...] | ALL ]
The -p option displays statistics for block devices and all their partitions that are used by the system. If a DEVICE is entered on the command line, then statistics for it and all its partitions are displayed. Last, the ALL keyword indicates that statistics have to be displayed for all the block devices and partitions defined by the system, including those that have never been used.
-t
Print the time for each report displayed.
-x
Display extended statistics.
-z
Tell iostat to omit output for any devices for which there was no activity during the sample period.

References

  1. man 1 'iostat'