Added missing cleandir line for shared libs.
[unix-history] / usr.sbin / iostat / iostat.8
CommitLineData
15637ed4
RG
1.\" Copyright (c) 1985, 1991 The Regents of the University of California.
2.\" All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.
9.\" 2. Redistributions in binary form must reproduce the above copyright
10.\" notice, this list of conditions and the following disclaimer in the
11.\" documentation and/or other materials provided with the distribution.
12.\" 3. All advertising materials mentioning features or use of this software
13.\" must display the following acknowledgement:
14.\" This product includes software developed by the University of
15.\" California, Berkeley and its contributors.
16.\" 4. Neither the name of the University nor the names of its contributors
17.\" may be used to endorse or promote products derived from this software
18.\" without specific prior written permission.
19.\"
20.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
21.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
24.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30.\" SUCH DAMAGE.
31.\"
32.\" @(#)iostat.8 6.8 (Berkeley) 4/24/91
33.\"
34.TH IOSTAT 8 "April 24, 1991"
35.UC 4
36.SH NAME
37iostat \- report I/O statistics
38.SH SYNOPSIS
39.nf
40.ft B
41iostat [ \-c count ] [ \-M core ] [ \-N system ]
42.ti +5
43[ \-w wait ] [ drives ]
44.ft R
45.fi
46.SH DESCRIPTION
47.I Iostat
48reports certain kernel statistics kept about terminal, disk and cpu
49activity.
50.PP
51The options are as follows:
52.TP
53\-c
54Repeat the display
55.I count
56times.
57The first display is for the time since a reboot and each subsequent
58report is for the time period since the last display.
59If no
60.I wait
61interval is specified, the default is 1 second.
62.TP
63\-M
64Extract values associated with the name list from the specified core
65instead of the default ``/dev/kmem''.
66.TP
67\-N
68Extract the name list from the specified system instead of the default
3fcd7be6 69``/386bsd''.
15637ed4
RG
70.TP
71\-w
72Pause
73.I wait
74seconds between each display.
75If no repeat
76.I count
77is specified, the default is infinity.
78.PP
79.I Iostat
80displays its information in the following format:
81.TP
82tty
83.nf
84.RS
85tin characters read from terminals
86tout characters written to terminals
87.RE
88.fi
89.TP
90disks
91Disk operations (this field is system dependent).
92The header of the field is the disk name and unit number.
93If more than four disk drives are configured in the system,
94.I iostat
95displays only the first four drives.
96To force
97.I iostat
98to display specific drives, their names may be supplied on the command
99line.
100.sp
101.nf
102.RS
103sps sectors transferred per second
104tps transfers per second
105msps milliseconds per average seek (including implied
106 seeks and rotational latency)
107.RE
108.fi
109.TP
110cpu
111.nf
112.RS
113us % of cpu time in user mode
114ni % of cpu time in user mode running niced processes
115sy % of cpu time in system mode
116id % of cpu time in idle mode
117.RE
118.fi
119.SH FILES
120.ta \w'/dev/kmem 'u
3fcd7be6 121/386bsd default kernel namelist
15637ed4
RG
122.br
123/dev/kmem default memory file
124.SH SEE ALSO
125.IR fstat (1),
126.IR netstat (1),
127.IR nfsstat (1),
128.IR ps (1),
129.IR systat (1),
130.IR vmstat (1),
131.IR pstat (8)
132.sp
133The sections starting with ``Interpreting system activity'' in
134.IR "Installing and Operating 4.3BSD" .