2 .\" Copyright (c) 1997 Kenneth D. Merry.
3 .\" All rights reserved.
5 .\" Redistribution and use in source and binary forms, with or without
6 .\" modification, are permitted provided that the following conditions
8 .\" 1. Redistributions of source code must retain the above copyright
9 .\" notice, this list of conditions and the following disclaimer.
10 .\" 2. Redistributions in binary form must reproduce the above copyright
11 .\" notice, this list of conditions and the following disclaimer in the
12 .\" documentation and/or other materials provided with the distribution.
13 .\" 3. The name of the author may not be used to endorse or promote products
14 .\" derived from this software without specific prior written permission.
16 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
17 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
20 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30 .\" Copyright (c) 1985, 1991, 1993
31 .\" The Regents of the University of California. All rights reserved.
33 .\" Redistribution and use in source and binary forms, with or without
34 .\" modification, are permitted provided that the following conditions
36 .\" 1. Redistributions of source code must retain the above copyright
37 .\" notice, this list of conditions and the following disclaimer.
38 .\" 2. Redistributions in binary form must reproduce the above copyright
39 .\" notice, this list of conditions and the following disclaimer in the
40 .\" documentation and/or other materials provided with the distribution.
41 .\" 3. Neither the name of the University nor the names of its contributors
42 .\" may be used to endorse or promote products derived from this software
43 .\" without specific prior written permission.
45 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
46 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
47 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
48 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
49 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
50 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
51 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
52 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
53 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
54 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
57 .\" @(#)iostat.8 8.1 (Berkeley) 6/6/93
77 utility displays kernel
79 statistics on terminal, device and cpu operations.
80 The first statistics that are printed are averaged over the system uptime.
81 To get information about the current activity, a suitable wait time should
82 be specified, so that the subsequent sets of printed statistics will be
83 averaged over that time.
85 The options are as follows:
88 Display a usage statement and exit.
95 interval is specified, the default is 1 second.
97 Display CPU statistics.
98 This is on by default, unless
102 Display only device statistics.
103 If this flag is turned on, only device statistics will be displayed, unless
109 is also specified to enable the display of CPU, load average or TTY statistics.
111 Display total statistics for a given time period, rather than average
112 statistics for each second during that time period.
114 In the blocks transferred display (-o), display block count in kilobytes rather
115 then the device native block size.
122 utility will display fewer devices if there are not
129 Sectors per second, transfers per second, and milliseconds per seek are
133 is specified, total blocks/sectors, total transfers, and
134 milliseconds per seek are displayed.
136 Display TTY statistics.
137 This is on by default, unless
141 Display system load averages.
142 This is on by default, unless
148 seconds between each display.
151 is specified, the default is infinity.
156 utility displays its information in the following format:
159 .Bl -tag -width indent -compact
161 characters read from terminals
163 characters written to terminals
167 The header of the field is the device name and unit number.
171 will display as many devices as will fit in a standard 80 column screen, or
172 the maximum number of devices in the system, whichever is smaller.
175 is specified on the command line,
177 will display the smaller of the
178 requested number of devices, and the maximum number of devices in the system.
181 to display specific drives, their names may be supplied on the command
186 will not display more devices than will fit in an 80 column screen, unless
189 argument is given on the command line to specify a maximum number of
190 devices to display, or the list of specified devices exceeds 80 columns.
191 If fewer devices are specified on the command line than will fit in an 80
194 will show only the specified devices.
198 device display shows the following statistics:
200 .Bl -tag -width indent -compact
202 kilobytes per transfer
211 device display, with the
213 flag specified, shows the following statistics:
215 .Bl -tag -width indent -compact
217 kilobytes per transfer
219 total number of transfers
221 total number of megabytes transferred
228 shows the following statistics:
230 .Bl -tag -width indent -compact
232 sectors transferred per second
236 average milliseconds per transaction
243 flag specified, shows the following statistics:
245 .Bl -tag -width indent -compact
247 total blocks/sectors transferred
251 average milliseconds per transaction
254 .Bl -tag -width indent -compact
256 % of cpu time in user mode
258 % of cpu time in system mode
260 % of cpu time in idle mode
264 .Dl iostat -w 1 disk0 disk2
266 Display statistics for the first and third disk devices device every
271 Display the statistics for the first four devices in the system twice, with
272 a one second display interval.
276 Display total statistics every three seconds ad infinitum.
278 .Dl iostat -odICTw 2 -c 9
280 Display total statistics using the old-style output format 9 times, with
281 a two second interval between each measurement/display.
284 flag generally disables the TTY and CPU displays, but since the
288 flags are given, the TTY and CPU displays will be displayed.
296 The sections starting with ``Interpreting system activity'' in
297 .%T "Installing and Operating 4.3BSD" .