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
28 .\" $FreeBSD: src/usr.sbin/iostat/iostat.8,v 1.11.2.9 2002/12/29 16:35:41 schweikh Exp $
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
84 statistics on terminal, device and cpu
87 The options are as follows:
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
107 is also specified to enable the display of CPU or TTY statistics.
109 Display more details.
110 If this flag is turned on, details on read and write statistics will be
111 displayed as MBw/s (Megabyte written per second), MBr/s (Megabyte read per second),
112 rtps (read transactions per second) and wtps (write transactions per second).
121 will show devices in order from highest to lowest bytes
122 per measurement cycle.
124 Display total statistics for a given time period, rather than average
125 statistics for each second during that time period.
127 In the blocks transferred display (-o), display block count in kilobytes rather
128 then the device native block size.
134 will display fewer devices if there aren't
141 Sectors per second, transfers per second, and milliseconds per seek are
145 is specified, total blocks/sectors, total transfers, and
146 milliseconds per seek are displayed.
148 Specify which types of devices to display.
149 There are three different categories of devices:
151 .Bl -tag -width indent -compact
153 .Bl -tag -width 9n -compact
155 Direct Access devices
157 Sequential Access devices
163 Write Once Read Multiple devices
169 Optical Memory devices
171 Medium Changer devices
173 Communication devices
175 Storage Array devices
177 Enclosure Services devices
183 .Bl -tag -width 9n -compact
185 Integrated Drive Electronics devices
187 Small Computer System Interface devices
189 Any other device interface
193 .Bl -tag -width 9n -compact
199 The user must specify at least one device type, and may specify at most
200 one device type from each category.
201 Multiple device types in a single device type statement must be separated by
206 arguments may be specified on the command line.
209 arguments are ORed together to form a matching expression against which
210 all devices in the system are compared.
211 Any device that fully matches any
213 argument will be included in the
215 output, up to the number of devices that can be displayed in
216 80 columns, or the maximum number of devices specified by the user.
218 Display TTY statistics.
219 This is on by default, unless
225 seconds between each display.
228 is specified, the default is infinity.
232 displays its information in the following format:
235 .Bl -tag -width indent -compact
237 characters read from terminals
239 characters written to terminals
243 The header of the field is the device name and unit number.
245 will display as many devices as will fit in a standard 80 column screen, or
246 the maximum number of devices in the system, whichever is smaller.
249 is specified on the command line,
251 will display the smaller of the
252 requested number of devices, and the maximum number of devices in the system.
255 to display specific drives, their names may be supplied on the command
258 will not display more devices than will fit in an 80 column screen, unless
261 argument is given on the command line to specify a maximum number of
263 If fewer devices are specified on the command line than will fit in an 80
266 will show only the specified devices.
270 device display shows the following statistics:
272 .Bl -tag -width indent -compact
274 kilobytes per transfer
283 device display, with the
285 flag specified, shows the following statistics:
287 .Bl -tag -width indent -compact
289 kilobytes per transfer
291 total number of transfers
293 total number of megabytes transferred
300 shows the following statistics:
302 .Bl -tag -width indent -compact
304 sectors transferred per second
308 average milliseconds per transaction
315 flag specified, shows the following statistics:
317 .Bl -tag -width indent -compact
319 total blocks/sectors transferred
323 average milliseconds per transaction
326 .Bl -tag -width indent -compact
328 % of cpu time in user mode
330 % of cpu time in user mode running niced processes
332 % of cpu time in system mode
334 % of cpu time in interrupt mode
336 % of cpu time in idle mode
340 .Dl iostat -w 1 da0 da1 cd0
342 Display statistics for the first two Direct Access devices and the first
343 CDROM device every second ad infinitum.
347 Display the statistics for the first four devices in the system twice, with
348 a one second display interval.
350 .Dl iostat -t da -t cd -w 1
352 Display statistics for all CDROM and Direct Access devices every second
355 .Dl iostat -t da,scsi,pass -t cd,scsi,pass
357 Display statistics once for all SCSI passthrough devices that provide access
358 to either Direct Access or CDROM devices.
360 .Dl iostat -h -n 8 -w 1
362 Display up to 8 devices with the most I/O every second ad infinitum.
364 .Dl iostat -dh -t da -w 1
366 Omit the TTY and CPU displays, show devices in order of performance and
367 show only Direct Access devices every second ad infinitum.
371 Display total statistics every three seconds ad infinitum.
373 .Dl iostat -odICTw 2 -c 9
375 Display total statistics using the old-style output format 9 times, with
376 a two second interval between each measurement/display.
379 flag generally disables the TTY and CPU displays, but since the
383 flags are given, the TTY and CPU displays will be displayed.
393 The sections starting with ``Interpreting system activity'' in
394 .%T "Installing and Operating 4.3BSD" .
401 .An Kenneth Merry Aq Mt ken@FreeBSD.org