2014-08-04 02:59:39 +01:00
|
|
|
# iostat
|
|
|
|
|
2016-07-09 17:13:36 +01:00
|
|
|
> Report statistics for devices and partitions.
|
2014-08-04 02:59:39 +01:00
|
|
|
|
2016-07-09 17:13:36 +01:00
|
|
|
- Display a report of CPU and disk statistics since system startup:
|
2014-08-04 02:59:39 +01:00
|
|
|
|
2016-07-09 17:13:36 +01:00
|
|
|
`iostat`
|
2014-08-04 02:59:39 +01:00
|
|
|
|
2016-07-11 16:37:30 +01:00
|
|
|
- Display a report of CPU and disk statistics with units converted to megabytes:
|
2016-07-11 06:08:53 +01:00
|
|
|
|
|
|
|
`iostat -m`
|
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- Display CPU statistics:
|
2014-08-04 02:59:39 +01:00
|
|
|
|
|
|
|
`iostat -c`
|
|
|
|
|
2016-07-09 17:13:36 +01:00
|
|
|
- Display disk statistics with disk names (including LVM):
|
|
|
|
|
|
|
|
`iostat -N`
|
|
|
|
|
2016-07-11 16:48:46 +01:00
|
|
|
- Display extended disk statistics with disk names for device "sda":
|
2016-07-09 17:13:36 +01:00
|
|
|
|
|
|
|
`iostat -xN {{sda}}`
|
|
|
|
|
2016-07-11 16:48:46 +01:00
|
|
|
- Display incremental reports of CPU and disk statistics every 2 seconds:
|
2014-08-04 02:59:39 +01:00
|
|
|
|
2016-07-11 06:08:53 +01:00
|
|
|
`iostat {{2}}`
|