Site icon LinuxCommands.site

linux iostat syntax and iostat examples

linux iostat command is an abbreviation for I/O statistics (input/output statistics).

Iostat is a computer system monitor tool used to collect and show operating system storage input and output statistics.

Syntax

iostat [options] [interval] [count]

interval: The interval parameter specifies the amount of time in seconds between each report. The count parameter can be specified in conjunction with the interval parameter.

count: If the count parameter is specified, the value of count determines the number of reports generated at interval seconds apart. If the interval parameter is specified without the count parameter, the iostat command generates reports continuously.

Common options

Reports

The iostat command generates two types of reports, the CPU Utilization report and the Device Utilization report.

CPU Utilization Report:

Device Utilization Report:

Remarks
If %util is close to 100%, it means that there are too many I/O requests, the I/O system is full, and the disk may have a bottleneck.

Examples

 

Reports of all cpu and devices are displayed 3 times every 2 seconds.

$ iostat 2 3

Display a continuous cpu report at two second intervals.

$ iostat -c 2

View bandwidth utilization for the device (%util) and response time (await)

$ iostat -d -k -x 1 1

View TPS and throughput

$ iostat -d -k 1 1

reference

https://en.wikipedia.org/wiki/Iostat

About the use of the iostat command: Linux load average high
More about Linux commands: Linux Commands Tutorial

Exit mobile version