2003-03-22 09:44:56 +00:00
|
|
|
.\" Copyright (c) 2003 Giorgos Keramidas
|
|
|
|
.\" 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.
|
|
|
|
.\"
|
|
|
|
.\" 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.
|
|
|
|
.\"
|
|
|
|
.\" $FreeBSD$
|
|
|
|
.\"
|
2006-05-20 19:17:47 +00:00
|
|
|
.Dd May 20, 2006
|
2003-03-22 09:44:56 +00:00
|
|
|
.Dt GSTAT 8
|
|
|
|
.Os
|
|
|
|
.Sh NAME
|
|
|
|
.Nm gstat
|
2003-05-31 18:19:50 +00:00
|
|
|
.Nd print statistics about GEOM disks
|
2003-03-22 09:44:56 +00:00
|
|
|
.Sh SYNOPSIS
|
|
|
|
.Nm
|
2004-10-10 16:13:11 +00:00
|
|
|
.Op Fl acd
|
2006-05-20 19:17:47 +00:00
|
|
|
.Op Fl f Ar filter
|
2003-03-22 09:44:56 +00:00
|
|
|
.Op Fl I Ar interval
|
|
|
|
.Sh DESCRIPTION
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
utility can be used to monitor I/O transactions of
|
|
|
|
.Xr geom 4
|
|
|
|
devices.
|
|
|
|
.Pp
|
|
|
|
The options are as follows:
|
|
|
|
.Bl -tag -width indent
|
2004-10-10 16:13:11 +00:00
|
|
|
.It Fl a
|
|
|
|
Only display providers that are at least 0.1% busy.
|
2008-10-07 10:25:27 +00:00
|
|
|
.It Fl b
|
|
|
|
Batch mode. Collect numbers, print and exit.
|
2003-03-22 09:44:56 +00:00
|
|
|
.It Fl c
|
|
|
|
Enable display of
|
|
|
|
.Xr geom 4
|
|
|
|
consumers too.
|
|
|
|
The default is to show statistics only for
|
|
|
|
.Xr geom 4
|
|
|
|
producers.
|
2004-02-15 09:34:08 +00:00
|
|
|
.It Fl d
|
2004-06-04 19:23:12 +00:00
|
|
|
Enable display of statistics for delete
|
|
|
|
.Pq Dv BIO_DELETE
|
|
|
|
operations.
|
2006-05-20 19:17:47 +00:00
|
|
|
.It Fl f Ar filter
|
|
|
|
A regular expression that can be used to only show statistics for some
|
|
|
|
devices.
|
2006-09-29 16:51:29 +00:00
|
|
|
Only devices with the names matching
|
2006-05-20 19:17:47 +00:00
|
|
|
.Ar filter
|
|
|
|
will be displayed.
|
|
|
|
The format of the regular expression is described in
|
|
|
|
.Xr re_format 7 .
|
2003-03-22 09:44:56 +00:00
|
|
|
.It Fl I Ar interval
|
|
|
|
Refresh the
|
|
|
|
.Nm
|
|
|
|
display every
|
|
|
|
.Ar interval
|
|
|
|
microseconds.
|
2003-05-31 18:19:50 +00:00
|
|
|
Adding a suffix of
|
|
|
|
.Cm s , ms ,
|
2003-03-22 09:44:56 +00:00
|
|
|
or
|
|
|
|
.Cm us
|
2003-05-31 18:19:50 +00:00
|
|
|
(the default) indicates that the update interval is specified in
|
|
|
|
seconds, milliseconds, or microseconds, respectively.
|
2003-03-22 09:44:56 +00:00
|
|
|
.El
|
2005-01-17 07:44:44 +00:00
|
|
|
.Sh EXIT STATUS
|
2003-03-22 09:44:56 +00:00
|
|
|
.Ex -std
|
|
|
|
.Sh SEE ALSO
|
2005-05-27 00:21:12 +00:00
|
|
|
.Xr systat 1 ,
|
|
|
|
.Xr geom 4 ,
|
|
|
|
.Xr iostat 8 ,
|
|
|
|
.Xr vmstat 8
|
2003-03-22 09:44:56 +00:00
|
|
|
.Sh HISTORY
|
|
|
|
A
|
|
|
|
.Nm
|
|
|
|
utility appeared in
|
|
|
|
.Fx 5.0 .
|
|
|
|
.Sh BUGS
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
utility only works interactively.
|
|
|
|
It should probably detect when it is run non-interactively and produce
|
|
|
|
simple
|
|
|
|
.Tn ASCII
|
|
|
|
text output.
|
|
|
|
Otherwise, this utility should probably be folded into
|
|
|
|
.Xr systat 1
|
|
|
|
which only works interactively and is the obvious utility to run for
|
|
|
|
various other forms of system statistics.
|