18b358393SAlexander Ziaee.\" 28b358393SAlexander Ziaee.\" SPDX-License-Identifier: BSD-2-Clause 38b358393SAlexander Ziaee.\" 4ceecf6a7SGiorgos Keramidas.\" Copyright (c) 2003 Giorgos Keramidas 5ceecf6a7SGiorgos Keramidas.\" All rights reserved. 6ceecf6a7SGiorgos Keramidas.\" 7ceecf6a7SGiorgos Keramidas.\" Redistribution and use in source and binary forms, with or without 8ceecf6a7SGiorgos Keramidas.\" modification, are permitted provided that the following conditions 9ceecf6a7SGiorgos Keramidas.\" are met: 10ceecf6a7SGiorgos Keramidas.\" 1. Redistributions of source code must retain the above copyright 11ceecf6a7SGiorgos Keramidas.\" notice, this list of conditions and the following disclaimer. 12ceecf6a7SGiorgos Keramidas.\" 2. Redistributions in binary form must reproduce the above copyright 13ceecf6a7SGiorgos Keramidas.\" notice, this list of conditions and the following disclaimer in the 14ceecf6a7SGiorgos Keramidas.\" documentation and/or other materials provided with the distribution. 15ceecf6a7SGiorgos Keramidas.\" 16ceecf6a7SGiorgos Keramidas.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 17ceecf6a7SGiorgos Keramidas.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 18ceecf6a7SGiorgos Keramidas.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 19ceecf6a7SGiorgos Keramidas.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 20ceecf6a7SGiorgos Keramidas.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 21ceecf6a7SGiorgos Keramidas.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 22ceecf6a7SGiorgos Keramidas.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23ceecf6a7SGiorgos Keramidas.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24ceecf6a7SGiorgos Keramidas.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25ceecf6a7SGiorgos Keramidas.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26ceecf6a7SGiorgos Keramidas.\" SUCH DAMAGE. 27ceecf6a7SGiorgos Keramidas.\" 288b358393SAlexander Ziaee.Dd February 1, 2025 29ceecf6a7SGiorgos Keramidas.Dt GSTAT 8 30ceecf6a7SGiorgos Keramidas.Os 31ceecf6a7SGiorgos Keramidas.Sh NAME 32ceecf6a7SGiorgos Keramidas.Nm gstat 33e6f5d394SRuslan Ermilov.Nd print statistics about GEOM disks 34ceecf6a7SGiorgos Keramidas.Sh SYNOPSIS 35ceecf6a7SGiorgos Keramidas.Nm 368b358393SAlexander Ziaee.Op Fl abBcCdops 37711385c9SSimon L. B. Nielsen.Op Fl f Ar filter 38ceecf6a7SGiorgos Keramidas.Op Fl I Ar interval 39ceecf6a7SGiorgos Keramidas.Sh DESCRIPTION 40ceecf6a7SGiorgos KeramidasThe 41ceecf6a7SGiorgos Keramidas.Nm 42ceecf6a7SGiorgos Keramidasutility can be used to monitor I/O transactions of 43ceecf6a7SGiorgos Keramidas.Xr geom 4 44ceecf6a7SGiorgos Keramidasdevices. 45ceecf6a7SGiorgos Keramidas.Pp 46ceecf6a7SGiorgos KeramidasThe options are as follows: 47ceecf6a7SGiorgos Keramidas.Bl -tag -width indent 48be75dba7SLukas Ertl.It Fl a 49be75dba7SLukas ErtlOnly display providers that are at least 0.1% busy. 50a0312e48SUlf Lilleengen.It Fl b 5162bc2068SMaxim KonovalovBatch mode. 5262bc2068SMaxim KonovalovCollect numbers, print and exit. 5362bc2068SMaxim KonovalovDefault if stdout is not a tty. 54712a6ae6SMarcelo Araujo.It Fl B 55712a6ae6SMarcelo AraujoEndless batch mode. 56712a6ae6SMarcelo AraujoSame as batch mode, but does not exit after collecting 57712a6ae6SMarcelo Araujothe first set of data. 58ceecf6a7SGiorgos Keramidas.It Fl c 59ceecf6a7SGiorgos KeramidasEnable display of 60ceecf6a7SGiorgos Keramidas.Xr geom 4 61ceecf6a7SGiorgos Keramidasconsumers too. 62ceecf6a7SGiorgos KeramidasThe default is to show statistics only for 63ceecf6a7SGiorgos Keramidas.Xr geom 4 64ceecf6a7SGiorgos Keramidasproducers. 650b9079bfSMarcelo Araujo.It Fl C 660b9079bfSMarcelo AraujoCSV output mode. 670b9079bfSMarcelo AraujoImplies endless batch mode, but output is in the form of comma-separated 680b9079bfSMarcelo Araujovalues, with ISO 8601-like timestamps. 69fbbe961cSPoul-Henning Kamp.It Fl d 70b18b186eSRuslan ErmilovEnable display of statistics for delete 71b18b186eSRuslan Ermilov.Pq Dv BIO_DELETE 72b18b186eSRuslan Ermilovoperations. 73711385c9SSimon L. B. Nielsen.It Fl f Ar filter 74711385c9SSimon L. B. NielsenA regular expression that can be used to only show statistics for some 75711385c9SSimon L. B. Nielsendevices. 76ae67ba29SRuslan ErmilovOnly devices with the names matching 77711385c9SSimon L. B. Nielsen.Ar filter 78711385c9SSimon L. B. Nielsenwill be displayed. 79711385c9SSimon L. B. NielsenThe format of the regular expression is described in 80711385c9SSimon L. B. Nielsen.Xr re_format 7 . 81ceecf6a7SGiorgos Keramidas.It Fl I Ar interval 82ceecf6a7SGiorgos KeramidasRefresh the 83ceecf6a7SGiorgos Keramidas.Nm 84ceecf6a7SGiorgos Keramidasdisplay every 85ceecf6a7SGiorgos Keramidas.Ar interval 86ceecf6a7SGiorgos Keramidasmicroseconds. 87e6f5d394SRuslan ErmilovAdding a suffix of 88e6f5d394SRuslan Ermilov.Cm s , ms , 89ceecf6a7SGiorgos Keramidasor 90ceecf6a7SGiorgos Keramidas.Cm us 91e6f5d394SRuslan Ermilov(the default) indicates that the update interval is specified in 92e6f5d394SRuslan Ermilovseconds, milliseconds, or microseconds, respectively. 938b358393SAlexander Ziaee.It Fl o 948b358393SAlexander ZiaeeEnable display of statistics for other operations 958b358393SAlexander Ziaee.Pq Dv BIO_FLUSH . 96f7317857SXin LI.It Fl p 97f7317857SXin LIOnly display physical providers (those with rank of 1). 988b358393SAlexander Ziaee.It Fl s 998b358393SAlexander ZiaeeEnable blocks' size statistics. 100ceecf6a7SGiorgos Keramidas.El 101cfaa2958SFernando Apesteguía.Sh INTERACTIVE COMMANDS 102cfaa2958SFernando ApesteguíaThese commands are currently recognized if 103cfaa2958SFernando Apesteguía.Nm 104cfaa2958SFernando Apesteguíais not running in batch mode: 105cfaa2958SFernando Apesteguía.Bl -tag -width indent 106cfaa2958SFernando Apesteguía.It Ic < 107cfaa2958SFernando ApesteguíaHalve the update interval. 108cfaa2958SFernando Apesteguía.It Ic > 109cfaa2958SFernando ApesteguíaDouble the update interval. 110cfaa2958SFernando Apesteguía.It Ic c 111cfaa2958SFernando ApesteguíaToggle display of 112cfaa2958SFernando Apesteguía.Xr geom 4 113cfaa2958SFernando Apesteguíaconsumers. 114cfaa2958SFernando Apesteguía.It Ic f 115cfaa2958SFernando ApesteguíaDisplay only devices with the names matching regular expression filter 116cfaa2958SFernando Apesteguía(prompt for filter). 117cfaa2958SFernando Apesteguía.It Ic F 118cfaa2958SFernando ApesteguíaRemove device filter. 119cfaa2958SFernando Apesteguía.It Ic q 120cfaa2958SFernando ApesteguíaQuit 121cfaa2958SFernando Apesteguía.Nm . 122cfaa2958SFernando Apesteguía.El 123a866e170SRuslan Ermilov.Sh EXIT STATUS 124ceecf6a7SGiorgos Keramidas.Ex -std 12556520505SBrad Davis.Sh EXAMPLES 12656520505SBrad DavisTo filter the output to only physical disks named ada0 through ada4: 127*0430faacSBrad Davis.Dl # gstat -f ada[0-4]$ 128ceecf6a7SGiorgos Keramidas.Sh SEE ALSO 12924c5a5ebSGiorgos Keramidas.Xr systat 1 , 13024c5a5ebSGiorgos Keramidas.Xr geom 4 , 13124c5a5ebSGiorgos Keramidas.Xr iostat 8 , 13224c5a5ebSGiorgos Keramidas.Xr vmstat 8 133ceecf6a7SGiorgos Keramidas.Sh HISTORY 134ceecf6a7SGiorgos KeramidasA 135ceecf6a7SGiorgos Keramidas.Nm 136ceecf6a7SGiorgos Keramidasutility appeared in 137ceecf6a7SGiorgos Keramidas.Fx 5.0 . 138