date and time created 88/09/19 15:01:31 by bostic
[unix-history] / usr / src / usr.sbin / iostat / iostat.8
CommitLineData
3a672b8e
KM
1.\" Copyright (c) 1980 Regents of the University of California.
2.\" All rights reserved. The Berkeley software License Agreement
3.\" specifies the terms and conditions for redistribution.
4.\"
d8f06b41 5.\" @(#)iostat.8 6.1 (Berkeley) %G%
3a672b8e 6.\"
d8f06b41 7.TH IOSTAT 1 ""
3a672b8e
KM
8.UC 4
9.SH NAME
10iostat \- report I/O statistics
11.SH SYNOPSIS
12.B iostat
d8f06b41 13[ drives ]
3a672b8e
KM
14[ interval [ count ] ]
15.SH DESCRIPTION
16.I Iostat
d8f06b41
KM
17iteratively reports the number of characters read and written to terminals
18per second,
19and, for each disk, the number of transfers per second, kilobytes
20transferred per second,
3a672b8e
KM
21and the milliseconds per average seek.
22It also gives the percentage of time the system has
23spent in user mode, in user mode running low priority (niced) processes,
24in system mode, and idling.
25.PP
26To compute this information, for each disk, seeks and data transfer completions
27and number of words transferred are counted;
28for terminals collectively, the number
29of input and output characters are counted.
30Also, each sixtieth of a second,
31the state of each disk is examined
32and a tally is made if the disk is active.
33From these numbers and given the transfer rates
34of the devices it is possible to determine
35average seek times for each device.
36.PP
37The optional
38.I interval
39argument causes
40.I iostat
41to report once each
42.I interval
43seconds.
44The first report is for all time since a reboot and each
45subsequent report is for the last interval only.
46.PP
47The optional
48.I count
49argument restricts the number of reports.
d8f06b41
KM
50.PP
51If more than 4 disk drives are configured in the system,
52.I iostat
53displays only the first 4 drives, with priority given
54to Massbus disk drives (i.e. if both Unibus and Massbus
55drives are present and the total number of drives exceeds
564, then some number of Unibus drives will not be displayed
57in favor of the Massbus drives). To force
58.I iostat
59to display specific drives, their names may be supplied on
60the command line.
3a672b8e
KM
61.SH FILES
62/dev/kmem
df667069 63.br
3a672b8e
KM
64/vmunix
65.SH SEE ALSO
66vmstat(1)