IOSTAT(8)
π IOSTAT(8) π
okay bestie, welcome to the System Manager's Manual page for iostat, the utility that reports I/O statistics. yes, we're doing kernel stats and we're doing them cute. π«Ά
πΈ NAME πΈ
iostat β report I/O statistics. literally that's the name, that's the job. β¨
π¦ SYNOPSIS π¦
iostat [-CUdKIoT?] [-c count] [-n devs] [-w wait] [drives]
π DESCRIPTION π
okay so the iostat utility displays kernel I/O statistics on terminal, device and cpu operations. the first statistics that are printed are averaged over the system uptime. to get info about the current activity, a suitable wait time should be specified, so that the subsequent sets of printed statistics will be averaged over that time. periodt. β³
β¨ the options, bestie (all of them) β¨
The options are as follows:
-?β display a usage statement and exit. no notes, just vibes.-cβ repeat the display count times. if no wait interval is specified, the default is1second. β°-Cβ display CPU statistics. this is on by default, unless-dis specified. main character CPU energy. π-dβ display only device statistics. if this flag is turned on, only device statistics will be displayed, unless-Cor-Uor-Tis also specified to enable the display of CPU, load average or TTY statistics. so-dis not the boss of-C,-U, or-T, iykyk. π-Iβ display total statistics for a given time period, rather than average statistics for each second during that time period. total slay, not per-second slay. β¨-Kβ in the blocks transferred display (-o), display block count in kilobytes rather than the device native block size. π-nβ display up to devs number of devices. theiostatutility will display fewer devices if there are not devs devices present. respect the limit, bestie. π-oβ display old-styleiostatdevice statistics. sectors per second, transfers per second, and milliseconds per seek are displayed. if-Iis specified, total blocks/sectors, total transfers, and milliseconds per seek are displayed. vintage but make it useful. π-Tβ display TTY statistics. this is on by default, unless-dis specified. TTY bestie stays included. π§-Uβ display system load averages. this is on by default, unless-dis specified. load average said hi. π-wβ pause wait seconds between each display. if no repeat count is specified, the default is infinity. infinity seconds? no bestie, infinity displays. π
The iostat utility displays its information in the following format:
π₯οΈ tty
tinβ characters read from terminalstoutβ characters written to terminals
π½ devices
Device operations. the header of the field is the device name and unit number. the iostat utility will display as many devices as will fit in a standard 80 column screen, or the maximum number of devices in the system, whichever is smaller. if -n is specified on the command line, iostat will display the smaller of the requested number of devices, and the maximum number of devices in the system. to force iostat to display specific drives, their names may be supplied on the command line. the iostat utility will not display more devices than will fit in an 80 column screen, unless the -n argument is given on the command line to specify a maximum number of devices to display, or the list of specified devices exceeds 80 columns. if fewer devices are specified on the command line than will fit in an 80 column screen, iostat will show only the specified devices. okay that was a lot of 80-column lore, but we got it. π
The standard iostat device display shows the following statistics:
KB/tβ kilobytes per transfertpsβ transfers per secondMB/sβ megabytes per second
The standard iostat device display, with the -I flag specified, shows the following statistics:
KB/tβ kilobytes per transferxfrsβ total number of transfersMBβ total number of megabytes transferred
The old-style iostat display (using -o) shows the following statistics:
spsβ sectors transferred per secondtpsβ transfers per secondmspsβ average milliseconds per transaction
The old-style iostat display, with the -I flag specified, shows the following statistics:
blkβ total blocks/sectors transferredxfrβ total transfersmspsβ average milliseconds per transaction
π§ cpu
usβ % of cpu time in user modesyβ % of cpu time in system modeidβ % of cpu time in idle mode
π EXAMPLES π
iostat -w 1 disk0 disk2
display statistics for the first and third disk devices device every second ad infinitum. yes bestie, forever. π
iostat -c 2
display the statistics for the first four devices in the system twice, with a one second display interval. two rounds, four devices, one second apart. π
iostat -Iw 3
display total statistics every three seconds ad infinitum. total stats, every 3 seconds, forever and ever. π
iostat -odICTw 2 -c 9
display total statistics using the old-style output format 9 times, with a two second interval between each measurement/display. the -d flag generally disables the TTY and CPU displays, but since the -T and -C flags are given, the TTY and CPU displays will be displayed. plot twist: they're back. π
π SEE ALSO π
netstat(1), nfsstat(1), ps(1), top(1), vm_stat(1)
The sections starting with βInterpreting system activityβ in Installing and Operating 4.3BSD.
β HISTORY β
This version of iostat first appeared in FreeBSD 3.0. iconic. π°οΈ
mwah π this page is from Debian, dated May 22, 2015, and it's the IOSTAT(8) manual. byeee π«Ά
π¦ where this page comes from
- nixpkgs unstable: system_cmds 1042.100.6.0.1
- Copyright (c) 1997 Kenneth D. Merry
- Copyright (c) 1985, 1991, 1993 The Regents of the University of California. All rights reserved
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms