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