1998-09-15 08:16:45 +00:00
|
|
|
.\"
|
|
|
|
.\" Copyright (c) 1997 Kenneth D. Merry.
|
|
|
|
.\" All rights reserved.
|
|
|
|
.\"
|
|
|
|
.\" Redistribution and use in source and binary forms, with or without
|
|
|
|
.\" modification, are permitted provided that the following conditions
|
|
|
|
.\" are met:
|
|
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer.
|
|
|
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer in the
|
|
|
|
.\" documentation and/or other materials provided with the distribution.
|
|
|
|
.\" 3. The name of the author may not be used to endorse or promote products
|
|
|
|
.\" derived from this software without specific prior written permission.
|
|
|
|
.\"
|
|
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
|
|
|
|
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
|
|
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
|
|
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
|
|
|
|
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
|
|
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
|
|
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
|
|
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
|
|
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
|
|
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
|
|
.\" SUCH DAMAGE.
|
|
|
|
.\"
|
2000-01-24 22:08:19 +00:00
|
|
|
.\" $FreeBSD$
|
|
|
|
.\"
|
1994-05-26 05:23:31 +00:00
|
|
|
.\" Copyright (c) 1985, 1991, 1993
|
|
|
|
.\" The Regents of the University of California. All rights reserved.
|
|
|
|
.\"
|
|
|
|
.\" Redistribution and use in source and binary forms, with or without
|
|
|
|
.\" modification, are permitted provided that the following conditions
|
|
|
|
.\" are met:
|
|
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer.
|
|
|
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer in the
|
|
|
|
.\" documentation and/or other materials provided with the distribution.
|
|
|
|
.\" 4. Neither the name of the University nor the names of its contributors
|
|
|
|
.\" may be used to endorse or promote products derived from this software
|
|
|
|
.\" without specific prior written permission.
|
|
|
|
.\"
|
|
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
|
|
|
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
|
|
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
|
|
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
|
|
|
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
|
|
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
|
|
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
|
|
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
|
|
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
|
|
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
|
|
.\" SUCH DAMAGE.
|
|
|
|
.\"
|
|
|
|
.\" @(#)iostat.8 8.1 (Berkeley) 6/6/93
|
|
|
|
.\"
|
2012-12-15 18:21:09 +00:00
|
|
|
.Dd December 15, 2012
|
1994-05-26 05:23:31 +00:00
|
|
|
.Dt IOSTAT 8
|
2001-07-10 15:12:08 +00:00
|
|
|
.Os
|
1994-05-26 05:23:31 +00:00
|
|
|
.Sh NAME
|
|
|
|
.Nm iostat
|
|
|
|
.Nd report
|
|
|
|
.Tn I/O
|
|
|
|
statistics
|
|
|
|
.Sh SYNOPSIS
|
2000-11-20 20:10:44 +00:00
|
|
|
.Nm
|
2006-09-29 17:57:04 +00:00
|
|
|
.Op Fl CdhIKoTxz?\&
|
1994-05-26 05:23:31 +00:00
|
|
|
.Op Fl c Ar count
|
|
|
|
.Op Fl M Ar core
|
1998-09-15 08:16:45 +00:00
|
|
|
.Op Fl n Ar devs
|
1994-05-26 05:23:31 +00:00
|
|
|
.Op Fl N Ar system
|
2001-02-01 16:44:04 +00:00
|
|
|
.Oo
|
|
|
|
.Fl t
|
|
|
|
.Sm off
|
|
|
|
.Ar type , if , pass
|
|
|
|
.Sm on
|
|
|
|
.Oc
|
1994-05-26 05:23:31 +00:00
|
|
|
.Op Fl w Ar wait
|
|
|
|
.Op Ar drives
|
|
|
|
.Sh DESCRIPTION
|
2002-07-14 14:47:15 +00:00
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
utility displays kernel
|
1994-05-26 05:23:31 +00:00
|
|
|
.Tn I/O
|
2001-08-04 18:30:54 +00:00
|
|
|
statistics on terminal, device and cpu operations.
|
|
|
|
The first statistics that are printed are averaged over the system uptime.
|
|
|
|
To get information about the current activity, a suitable wait time should
|
|
|
|
be specified, so that the subsequent sets of printed statistics will be
|
|
|
|
averaged over that time.
|
|
|
|
.Pp
|
1994-05-26 05:23:31 +00:00
|
|
|
The options are as follows:
|
|
|
|
.Bl -tag -width flag
|
|
|
|
.It Fl c
|
|
|
|
Repeat the display
|
|
|
|
.Ar count
|
2001-08-04 18:30:54 +00:00
|
|
|
times.
|
2010-08-07 11:13:50 +00:00
|
|
|
If no repeat
|
|
|
|
.Ar count
|
2010-11-24 00:05:19 +00:00
|
|
|
is specified, the default depends on whether
|
|
|
|
.Fl w
|
|
|
|
is specified.
|
|
|
|
With
|
|
|
|
.Fl w
|
|
|
|
the default repeat count is infinity, otherwise it is 1.
|
1998-09-15 08:16:45 +00:00
|
|
|
.It Fl C
|
2001-08-04 18:30:54 +00:00
|
|
|
Display CPU statistics.
|
|
|
|
This is on by default, unless
|
1998-09-15 08:16:45 +00:00
|
|
|
.Fl d
|
2010-11-24 00:05:19 +00:00
|
|
|
or
|
|
|
|
.Fl x
|
1998-09-15 08:16:45 +00:00
|
|
|
is specified.
|
|
|
|
.It Fl d
|
2001-08-04 18:30:54 +00:00
|
|
|
Display only device statistics.
|
|
|
|
If this flag is turned on, only device statistics will be displayed, unless
|
1998-09-15 08:16:45 +00:00
|
|
|
.Fl C
|
|
|
|
or
|
|
|
|
.Fl T
|
2002-12-27 12:15:40 +00:00
|
|
|
is also specified to enable the display of CPU or TTY statistics.
|
1998-09-15 08:16:45 +00:00
|
|
|
.It Fl h
|
2001-08-07 13:59:48 +00:00
|
|
|
Put
|
|
|
|
.Nm
|
|
|
|
in
|
1998-09-15 08:16:45 +00:00
|
|
|
.Sq top
|
2001-08-04 18:30:54 +00:00
|
|
|
mode.
|
2001-08-07 13:59:48 +00:00
|
|
|
In this mode,
|
|
|
|
.Nm
|
|
|
|
will show devices in order from highest to lowest bytes
|
2001-08-04 18:30:54 +00:00
|
|
|
per measurement cycle.
|
1998-09-15 08:16:45 +00:00
|
|
|
.It Fl I
|
2002-12-27 12:15:40 +00:00
|
|
|
Display total statistics for a given time period, rather than average
|
1998-09-15 08:16:45 +00:00
|
|
|
statistics for each second during that time period.
|
1998-09-16 23:14:47 +00:00
|
|
|
.It Fl K
|
2002-12-12 15:38:07 +00:00
|
|
|
In the blocks transferred display (-o), display block count in kilobytes rather
|
1998-09-16 23:14:47 +00:00
|
|
|
then the device native block size.
|
1994-05-26 05:23:31 +00:00
|
|
|
.It Fl M
|
|
|
|
Extract values associated with the name list from the specified core
|
|
|
|
instead of the default
|
|
|
|
.Dq Pa /dev/kmem .
|
1998-09-15 08:16:45 +00:00
|
|
|
.It Fl n
|
|
|
|
Display up to
|
|
|
|
.Ar devs
|
|
|
|
number of devices.
|
2002-07-14 14:47:15 +00:00
|
|
|
The
|
2000-11-20 20:10:44 +00:00
|
|
|
.Nm
|
2005-02-13 22:25:33 +00:00
|
|
|
utility will display fewer devices if there are not
|
1998-09-15 08:16:45 +00:00
|
|
|
.Ar devs
|
|
|
|
devices present.
|
1994-05-26 05:23:31 +00:00
|
|
|
.It Fl N
|
|
|
|
Extract the name list from the specified system instead of the default
|
2002-05-09 11:47:42 +00:00
|
|
|
.Dq Pa /boot/kernel/kernel .
|
1998-09-15 08:16:45 +00:00
|
|
|
.It Fl o
|
|
|
|
Display old-style
|
2000-11-20 20:10:44 +00:00
|
|
|
.Nm
|
2001-08-04 18:30:54 +00:00
|
|
|
device statistics.
|
2002-12-27 12:15:40 +00:00
|
|
|
Sectors per second, transfers per second, and milliseconds per seek are
|
2001-08-04 18:30:54 +00:00
|
|
|
displayed.
|
|
|
|
If
|
1998-09-15 08:16:45 +00:00
|
|
|
.Fl I
|
|
|
|
is specified, total blocks/sectors, total transfers, and
|
2002-12-27 12:15:40 +00:00
|
|
|
milliseconds per seek are displayed.
|
1998-09-15 08:16:45 +00:00
|
|
|
.It Fl t
|
2001-08-04 18:30:54 +00:00
|
|
|
Specify which types of devices to display.
|
|
|
|
There are three different categories of devices:
|
2000-12-27 15:30:30 +00:00
|
|
|
.Pp
|
1998-09-15 08:16:45 +00:00
|
|
|
.Bl -tag -width indent -compact
|
|
|
|
.It device type:
|
2000-12-27 15:30:30 +00:00
|
|
|
.Bl -tag -width 9n -compact
|
2001-07-15 08:06:20 +00:00
|
|
|
.It da
|
1998-09-15 08:16:45 +00:00
|
|
|
Direct Access devices
|
|
|
|
.It sa
|
|
|
|
Sequential Access devices
|
|
|
|
.It printer
|
|
|
|
Printers
|
|
|
|
.It proc
|
|
|
|
Processor devices
|
|
|
|
.It worm
|
|
|
|
Write Once Read Multiple devices
|
|
|
|
.It cd
|
|
|
|
CD devices
|
|
|
|
.It scanner
|
|
|
|
Scanner devices
|
|
|
|
.It optical
|
|
|
|
Optical Memory devices
|
|
|
|
.It changer
|
|
|
|
Medium Changer devices
|
|
|
|
.It comm
|
|
|
|
Communication devices
|
|
|
|
.It array
|
|
|
|
Storage Array devices
|
|
|
|
.It enclosure
|
|
|
|
Enclosure Services devices
|
|
|
|
.It floppy
|
|
|
|
Floppy devices
|
|
|
|
.El
|
|
|
|
.Pp
|
|
|
|
.It interface:
|
2000-12-27 15:30:30 +00:00
|
|
|
.Bl -tag -width 9n -compact
|
1998-09-15 08:16:45 +00:00
|
|
|
.It IDE
|
|
|
|
Integrated Drive Electronics devices
|
|
|
|
.It SCSI
|
|
|
|
Small Computer System Interface devices
|
|
|
|
.It other
|
|
|
|
Any other device interface
|
|
|
|
.El
|
|
|
|
.Pp
|
|
|
|
.It passthrough:
|
2000-12-27 15:30:30 +00:00
|
|
|
.Bl -tag -width 9n -compact
|
1998-09-15 08:16:45 +00:00
|
|
|
.It pass
|
|
|
|
Passthrough devices
|
|
|
|
.El
|
|
|
|
.El
|
|
|
|
.Pp
|
|
|
|
The user must specify at least one device type, and may specify at most
|
2001-08-04 18:30:54 +00:00
|
|
|
one device type from each category.
|
|
|
|
Multiple device types in a single device type statement must be separated by
|
|
|
|
commas.
|
1998-09-15 08:16:45 +00:00
|
|
|
.Pp
|
|
|
|
Any number of
|
|
|
|
.Fl t
|
2001-08-04 18:30:54 +00:00
|
|
|
arguments may be specified on the command line.
|
|
|
|
All
|
1998-09-15 08:16:45 +00:00
|
|
|
.Fl t
|
|
|
|
arguments are ORed together to form a matching expression against which
|
2001-08-04 18:30:54 +00:00
|
|
|
all devices in the system are compared.
|
|
|
|
Any device that fully matches any
|
1998-09-15 08:16:45 +00:00
|
|
|
.Fl t
|
2001-07-15 08:06:20 +00:00
|
|
|
argument will be included in the
|
2000-11-20 20:10:44 +00:00
|
|
|
.Nm
|
1998-09-15 08:16:45 +00:00
|
|
|
output, up to the number of devices that can be displayed in
|
|
|
|
80 columns, or the maximum number of devices specified by the user.
|
|
|
|
.It Fl T
|
2001-08-04 18:30:54 +00:00
|
|
|
Display TTY statistics.
|
|
|
|
This is on by default, unless
|
1998-09-15 08:16:45 +00:00
|
|
|
.Fl d
|
2010-11-24 00:05:19 +00:00
|
|
|
or
|
|
|
|
.Fl x
|
1998-09-15 08:16:45 +00:00
|
|
|
is specified.
|
1994-05-26 05:23:31 +00:00
|
|
|
.It Fl w
|
|
|
|
Pause
|
|
|
|
.Ar wait
|
|
|
|
seconds between each display.
|
2010-08-07 11:13:50 +00:00
|
|
|
If no
|
|
|
|
.Ar wait
|
|
|
|
interval is specified, the default is 1 second.
|
2010-08-07 11:48:31 +00:00
|
|
|
.Pp
|
2010-05-21 17:10:52 +00:00
|
|
|
The
|
|
|
|
.Nm
|
2010-05-24 16:42:53 +00:00
|
|
|
command will accept and honor a non-integer number of seconds.
|
|
|
|
Note that the interval only has millisecond granularity.
|
2010-08-07 11:48:31 +00:00
|
|
|
Finer values will be truncated.
|
|
|
|
E.g.,
|
|
|
|
.Dq Li -w1.0001
|
|
|
|
is the same as
|
|
|
|
.Dq Li -w1.000 .
|
2010-08-07 11:32:17 +00:00
|
|
|
The interval will also suffer from modifications to
|
|
|
|
.Va kern.hz
|
|
|
|
so your mileage may vary.
|
2006-04-16 22:23:39 +00:00
|
|
|
.It Fl x
|
|
|
|
Show extended disk statistics.
|
|
|
|
Each disk is displayed on a line of its own with all available statistics.
|
2010-11-24 00:05:19 +00:00
|
|
|
If this flag is turned on, only disk statistics will be displayed, unless
|
|
|
|
.Fl C
|
|
|
|
or
|
|
|
|
.Fl T
|
|
|
|
is also specified to enable the display of CPU or TTY statistics.
|
2006-04-16 22:23:39 +00:00
|
|
|
.It Fl z
|
|
|
|
If
|
|
|
|
.Fl x
|
|
|
|
is specified, omit lines for devices with no activity.
|
2000-12-27 15:30:30 +00:00
|
|
|
.It Fl ?\&
|
2000-01-24 22:08:19 +00:00
|
|
|
Display a usage statement and exit.
|
1994-05-26 05:23:31 +00:00
|
|
|
.El
|
|
|
|
.Pp
|
2002-07-14 14:47:15 +00:00
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
utility displays its information in the following format:
|
1994-05-26 05:23:31 +00:00
|
|
|
.Bl -tag -width flag
|
|
|
|
.It tty
|
|
|
|
.Bl -tag -width indent -compact
|
|
|
|
.It tin
|
|
|
|
characters read from terminals
|
|
|
|
.It tout
|
|
|
|
characters written to terminals
|
|
|
|
.El
|
1998-09-15 08:16:45 +00:00
|
|
|
.It devices
|
2001-08-04 18:30:54 +00:00
|
|
|
Device operations.
|
|
|
|
The header of the field is the device name and unit number.
|
2002-07-14 14:47:15 +00:00
|
|
|
The
|
2000-11-20 20:10:44 +00:00
|
|
|
.Nm
|
2002-07-14 14:47:15 +00:00
|
|
|
utility
|
1998-09-15 08:16:45 +00:00
|
|
|
will display as many devices as will fit in a standard 80 column screen, or
|
2001-08-04 18:30:54 +00:00
|
|
|
the maximum number of devices in the system, whichever is smaller.
|
|
|
|
If
|
1998-09-15 08:16:45 +00:00
|
|
|
.Fl n
|
2001-08-07 13:59:48 +00:00
|
|
|
is specified on the command line,
|
|
|
|
.Nm
|
|
|
|
will display the smaller of the
|
1998-09-15 08:16:45 +00:00
|
|
|
requested number of devices, and the maximum number of devices in the system.
|
1994-05-26 05:23:31 +00:00
|
|
|
To force
|
2000-11-20 20:10:44 +00:00
|
|
|
.Nm
|
1994-05-26 05:23:31 +00:00
|
|
|
to display specific drives, their names may be supplied on the command
|
|
|
|
line.
|
2002-07-14 14:47:15 +00:00
|
|
|
The
|
2000-11-20 20:10:44 +00:00
|
|
|
.Nm
|
2002-07-14 14:47:15 +00:00
|
|
|
utility
|
1998-09-15 08:16:45 +00:00
|
|
|
will not display more devices than will fit in an 80 column screen, unless
|
|
|
|
the
|
|
|
|
.Fl n
|
|
|
|
argument is given on the command line to specify a maximum number of
|
2001-08-04 18:30:54 +00:00
|
|
|
devices to display.
|
|
|
|
If fewer devices are specified on the command line than will fit in an 80
|
2001-08-07 13:59:48 +00:00
|
|
|
column screen,
|
|
|
|
.Nm
|
|
|
|
will show only the specified devices.
|
1998-09-15 08:16:45 +00:00
|
|
|
.Pp
|
|
|
|
The standard
|
2000-11-20 20:10:44 +00:00
|
|
|
.Nm
|
1998-09-15 08:16:45 +00:00
|
|
|
device display shows the following statistics:
|
|
|
|
.Pp
|
|
|
|
.Bl -tag -width indent -compact
|
|
|
|
.It KB/t
|
|
|
|
kilobytes per transfer
|
|
|
|
.It tps
|
|
|
|
transfers per second
|
|
|
|
.It MB/s
|
|
|
|
megabytes per second
|
|
|
|
.El
|
|
|
|
.Pp
|
|
|
|
The standard
|
2000-11-20 20:10:44 +00:00
|
|
|
.Nm
|
1998-09-15 08:16:45 +00:00
|
|
|
device display, with the
|
|
|
|
.Fl I
|
|
|
|
flag specified, shows the following statistics:
|
|
|
|
.Pp
|
|
|
|
.Bl -tag -width indent -compact
|
|
|
|
.It KB/t
|
|
|
|
kilobytes per transfer
|
|
|
|
.It xfrs
|
|
|
|
total number of transfers
|
|
|
|
.It MB
|
|
|
|
total number of megabytes transferred
|
|
|
|
.El
|
|
|
|
.Pp
|
2006-04-16 22:23:39 +00:00
|
|
|
The extended
|
|
|
|
.Nm
|
|
|
|
device display, with the
|
|
|
|
.Fl x
|
|
|
|
flag specified, shows the following statistics:
|
|
|
|
.Pp
|
|
|
|
.Bl -tag -width indent -compact
|
|
|
|
.It r/s
|
|
|
|
read operations per second
|
|
|
|
.It w/s
|
|
|
|
write operations per second
|
|
|
|
.It kr/s
|
|
|
|
kilobytes read per second
|
|
|
|
.It kw/s
|
|
|
|
kilobytes write per second
|
2010-11-17 15:12:10 +00:00
|
|
|
.It qlen
|
2006-04-16 22:23:39 +00:00
|
|
|
transactions queue length
|
|
|
|
.It svc_t
|
|
|
|
average duration of transactions, in milliseconds
|
|
|
|
.It %b
|
|
|
|
% of time the device had one or more outstanding transactions
|
|
|
|
.El
|
|
|
|
.Pp
|
2012-12-15 18:21:09 +00:00
|
|
|
The extended
|
|
|
|
.Nm
|
|
|
|
device display, with the
|
|
|
|
.Fl x
|
|
|
|
and
|
|
|
|
.Fl I
|
|
|
|
flags specified, shows the following statistics:
|
|
|
|
.Pp
|
|
|
|
.Bl -tag -width indent -compact
|
|
|
|
.It r/i
|
|
|
|
read operations per time period
|
|
|
|
.It w/i
|
|
|
|
write operations per time period
|
|
|
|
.It kr/i
|
|
|
|
kilobytes read per time period
|
|
|
|
.It kw/i
|
|
|
|
kilobytes write per time period
|
|
|
|
.It qlen
|
|
|
|
transactions queue length
|
|
|
|
.It tsvc_t/i
|
|
|
|
total duration of transactions per time period, in seconds
|
|
|
|
.It sb/i
|
|
|
|
total time the device had one or more outstanding transactions per
|
|
|
|
time period, in seconds
|
|
|
|
.El
|
|
|
|
.Pp
|
1998-09-15 08:16:45 +00:00
|
|
|
The old-style
|
2000-11-20 20:10:44 +00:00
|
|
|
.Nm
|
1998-09-15 08:16:45 +00:00
|
|
|
display (using
|
|
|
|
.Fl o )
|
|
|
|
shows the following statistics:
|
1994-05-26 05:23:31 +00:00
|
|
|
.Pp
|
|
|
|
.Bl -tag -width indent -compact
|
|
|
|
.It sps
|
|
|
|
sectors transferred per second
|
|
|
|
.It tps
|
|
|
|
transfers per second
|
|
|
|
.It msps
|
1998-09-15 08:16:45 +00:00
|
|
|
average milliseconds per transaction
|
|
|
|
.El
|
|
|
|
.Pp
|
|
|
|
The old-style
|
2000-11-20 20:10:44 +00:00
|
|
|
.Nm
|
1998-09-15 08:16:45 +00:00
|
|
|
display, with the
|
|
|
|
.Fl I
|
|
|
|
flag specified, shows the following statistics:
|
|
|
|
.Pp
|
|
|
|
.Bl -tag -width indent -compact
|
|
|
|
.It blk
|
|
|
|
total blocks/sectors transferred
|
|
|
|
.It xfr
|
|
|
|
total transfers
|
|
|
|
.It msps
|
|
|
|
average milliseconds per transaction
|
1994-05-26 05:23:31 +00:00
|
|
|
.El
|
|
|
|
.It cpu
|
|
|
|
.Bl -tag -width indent -compact
|
|
|
|
.It \&us
|
|
|
|
% of cpu time in user mode
|
|
|
|
.It \&ni
|
|
|
|
% of cpu time in user mode running niced processes
|
|
|
|
.It \&sy
|
|
|
|
% of cpu time in system mode
|
1994-11-10 13:39:01 +00:00
|
|
|
.It \&in
|
|
|
|
% of cpu time in interrupt mode
|
1994-05-26 05:23:31 +00:00
|
|
|
.It \&id
|
|
|
|
% of cpu time in idle mode
|
|
|
|
.El
|
|
|
|
.El
|
|
|
|
.Sh FILES
|
2002-05-09 11:47:42 +00:00
|
|
|
.Bl -tag -width /boot/kernel/kernel -compact
|
|
|
|
.It Pa /boot/kernel/kernel
|
2000-01-24 22:08:19 +00:00
|
|
|
Default kernel namelist.
|
1994-05-26 05:23:31 +00:00
|
|
|
.It Pa /dev/kmem
|
2000-01-24 22:08:19 +00:00
|
|
|
Default memory file.
|
1994-05-26 05:23:31 +00:00
|
|
|
.El
|
1998-09-15 08:16:45 +00:00
|
|
|
.Sh EXAMPLES
|
|
|
|
.Dl iostat -w 1 da0 da1 cd0
|
|
|
|
.Pp
|
2001-07-15 08:06:20 +00:00
|
|
|
Display statistics for the first two Direct Access devices and the first
|
1998-09-15 08:16:45 +00:00
|
|
|
CDROM device every second ad infinitum.
|
|
|
|
.Pp
|
|
|
|
.Dl iostat -c 2
|
|
|
|
.Pp
|
|
|
|
Display the statistics for the first four devices in the system twice, with
|
|
|
|
a one second display interval.
|
|
|
|
.Pp
|
|
|
|
.Dl iostat -t da -t cd -w 1
|
|
|
|
.Pp
|
|
|
|
Display statistics for all CDROM and Direct Access devices every second
|
|
|
|
ad infinitum.
|
|
|
|
.Pp
|
|
|
|
.Dl iostat -t da,scsi,pass -t cd,scsi,pass
|
|
|
|
.Pp
|
2001-07-15 08:06:20 +00:00
|
|
|
Display statistics once for all SCSI passthrough devices that provide access
|
1998-09-15 08:16:45 +00:00
|
|
|
to either Direct Access or CDROM devices.
|
|
|
|
.Pp
|
|
|
|
.Dl iostat -h -n 8 -w 1
|
|
|
|
.Pp
|
2000-01-23 20:19:34 +00:00
|
|
|
Display up to 8 devices with the most I/O every second ad infinitum.
|
1998-09-15 08:16:45 +00:00
|
|
|
.Pp
|
|
|
|
.Dl iostat -dh -t da -w 1
|
|
|
|
.Pp
|
|
|
|
Omit the TTY and CPU displays, show devices in order of performance and
|
|
|
|
show only Direct Access devices every second ad infinitum.
|
|
|
|
.Pp
|
|
|
|
.Dl iostat -Iw 3
|
|
|
|
.Pp
|
|
|
|
Display total statistics every three seconds ad infinitum.
|
|
|
|
.Pp
|
|
|
|
.Dl iostat -odICTw 2 -c 9
|
|
|
|
.Pp
|
|
|
|
Display total statistics using the old-style output format 9 times, with
|
2001-08-04 18:30:54 +00:00
|
|
|
a two second interval between each measurement/display.
|
|
|
|
The
|
1998-09-15 08:16:45 +00:00
|
|
|
.Fl d
|
|
|
|
flag generally disables the TTY and CPU displays, but since the
|
|
|
|
.Fl T
|
|
|
|
and
|
|
|
|
.Fl C
|
|
|
|
flags are given, the TTY and CPU displays will be displayed.
|
1994-05-26 05:23:31 +00:00
|
|
|
.Sh SEE ALSO
|
|
|
|
.Xr fstat 1 ,
|
|
|
|
.Xr netstat 1 ,
|
|
|
|
.Xr nfsstat 1 ,
|
1996-01-20 07:29:11 +00:00
|
|
|
.Xr ps 1 ,
|
1994-05-26 05:23:31 +00:00
|
|
|
.Xr systat 1 ,
|
2006-04-16 22:23:39 +00:00
|
|
|
.Xr devstat 3 ,
|
2005-05-26 17:54:16 +00:00
|
|
|
.Xr gstat 8 ,
|
1996-01-20 07:29:11 +00:00
|
|
|
.Xr pstat 8 ,
|
|
|
|
.Xr vmstat 8
|
1994-05-26 05:23:31 +00:00
|
|
|
.Pp
|
|
|
|
The sections starting with ``Interpreting system activity'' in
|
|
|
|
.%T "Installing and Operating 4.3BSD" .
|
1998-09-15 08:16:45 +00:00
|
|
|
.Sh HISTORY
|
|
|
|
This version of
|
2000-11-20 20:10:44 +00:00
|
|
|
.Nm
|
1998-09-15 08:16:45 +00:00
|
|
|
first appeared in
|
|
|
|
.Fx 3.0 .
|
2005-01-18 20:02:45 +00:00
|
|
|
.Sh AUTHORS
|
2014-06-20 09:57:27 +00:00
|
|
|
.An Kenneth Merry Aq Mt ken@FreeBSD.org
|
1998-09-15 08:16:45 +00:00
|
|
|
.Sh BUGS
|
2001-08-04 18:30:54 +00:00
|
|
|
The use of
|
|
|
|
.Nm
|
|
|
|
as a debugging tool for crash dumps is probably limited because there is
|
|
|
|
currently no way to get statistics that only cover the time immediately before
|
|
|
|
the crash.
|