LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

iostat

Report CPU and I/O statistics for devices and partitions

TLDR

Display CPU and disk statistics
$ iostat
copy
Display with megabytes units
$ iostat -m
copy
Display CPU statistics only
$ iostat -c
copy
Display disk statistics with names
$ iostat -N
copy
Display extended disk statistics
$ iostat -x
copy
Display extended stats for a specific device
$ iostat -xN [sda]
copy
Display reports every 2 seconds
$ iostat 2
copy
Display 5 reports at 2-second intervals
$ iostat 2 5
copy
Display in JSON format
$ iostat -o JSON
copy
Omit the first boot report and show only active devices
$ iostat -yz 2
copy

SYNOPSIS

iostat [options] [device...] [interval [count]]

DESCRIPTION

iostat monitors system input/output device loading by observing the time devices are active in relation to their average transfer rates. It generates CPU and device utilization reports useful for optimizing I/O performance.

PARAMETERS

-c

Display CPU utilization only
-d
Display device utilization only
-x
Display extended statistics
-k
Display statistics in kilobytes per second
-m
Display statistics in megabytes per second
-N
Display registered device mapper names (LVM)
-p [device|ALL]
Display statistics for block devices and all their partitions.
-h
Make the NFS and Device reports easier to read by a human.
-t
Print timestamp for each report
-y
Omit first report (boot statistics)
-z
Exclude inactive devices from report
-g GROUP
Display statistics grouped together
-H
With -g, only show group totals
-j {ID|LABEL|PATH|UUID}
Display persistent device names
-o JSON
Output in JSON format
--human
Print sizes in human-readable format
--pretty
Pretty-print device names.
-s
Display short (narrow) report fitting 80-column screens.
-V
Print version number and exit.

INSTALL

sudo apt install sysstat
copy
sudo dnf install sysstat
copy
sudo pacman -S sysstat
copy
sudo apk add sysstat
copy
sudo zypper install sysstat
copy
brew install sysstat
copy
nix profile install nixpkgs#sysstat
copy

CAVEATS

The first report shows statistics since boot. For current activity, use the -y option or ignore the first report. Extended statistics (-x) provide more detailed I/O metrics.

HISTORY

iostat is part of the sysstat package, providing system performance monitoring tools for Linux.

SEE ALSO

sar(1), vmstat(8), mpstat(1), pidstat(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid