GSTAT(8)

πŸ“¦
version 15.1 Β· 2 versions
, in freebsd 15.1

πŸ’– GSTAT(8): print statistics about GEOM disks πŸ’–

okay so bestie, welcome to the System Manager's Manual page for gstat(8). This utility is literally your little window into I/O transactions of geom(4) devices. It's giving observability, it's giving disk gossip, and it's about to make your terminal look iconic. πŸ’…

🌸 NAME 🌸

gstat β€” print statistics about GEOM disks

✨ SYNOPSIS ✨

gstat [-abBcCdops] [-f filter] [-I interval]

πŸ¦‹ DESCRIPTION πŸ¦‹

The gstat utility can be used to monitor I/O transactions of geom(4) devices.

The options are as follows, bestie:

  • -a β€” Only display providers that are at least 0.1% busy.
  • -b β€” Batch mode. Collect numbers, print and exit. Default if stdout is not a tty.
  • -B β€” Endless batch mode. Same as batch mode, but does not exit after collecting the first set of data.
  • -c β€” Enable display of geom(4) consumers too. The default is to show statistics only for geom(4) producers.
  • -C β€” CSV output mode. Implies endless batch mode, but output is in the form of comma-separated values, with ISO 8601-like timestamps.
  • -d β€” Enable display of statistics for delete (BIO_DELETE) operations.
  • -f filter β€” A regular expression that can be used to only show statistics for some devices. Only devices with the names matching filter will be displayed. The format of the regular expression is described in re_format(7).
  • -I interval β€” Refresh the gstat display every interval microseconds. Adding a suffix of s, ms, or us (the default) indicates that the update interval is specified in seconds, milliseconds, or microseconds, respectively.
  • -o β€” Enable display of statistics for other operations (BIO_FLUSH).
  • -p β€” Only display physical providers (those with rank of 1).
  • -s β€” Enable blocks' size statistics.

πŸŽ€ INTERACTIVE COMMANDS πŸŽ€

These commands are currently recognized if gstat is not running in batch mode:

  • < β€” Halve the update interval.
  • > β€” Double the update interval.
  • c β€” Toggle display of geom(4) consumers.
  • f β€” Display only devices with the names matching regular expression filter (prompt for filter).
  • F β€” Remove device filter.
  • q β€” Quit gstat.

🌈 EXIT STATUS 🌈

The gstat utility exits 0 on success, and >0 if an error occurs.

πŸ“ EXAMPLES πŸ“

To filter the output to only physical disks named ada0 through ada4:

# gstat -f ada[0-4]$

πŸ‘‘ SEE ALSO πŸ‘‘

🧚 HISTORY 🧚

A gstat utility appeared in FreeBSD 5.0.


mwah πŸ’‹ this Debian edition of GSTAT(8) is dated February 1, 2025 β€” bye bestie, go check your disks! 🫢

πŸ“¦ where this page comes from