display kernel statistics
kstat utility displays statistics
collected by the kernel. By default, all available data is displayed. If at
least one argument is given, the display is restricted to data that matches
at least one of the arguments.
The options are as follows:
- Show statistics at intervals of wait seconds.
The components of arguments are as follows:
- The name of the device providing the statistical data. Pattern matching with fnmatch(3) is supported.
- An unsigned integer number. Currently, all statistics use an instance number of 0.
- A string identifying the kind of data to be shown. Pattern matching with fnmatch(3) is supported.
- An unsigned integer number, used for example if a network device has multiple rings.
If an empty string is given for any of the components, all values of the respective property are accepted.
A complete list of four-component arguments supported on the
current machine can be displayed by calling
without any argument.
- pseudo-device providing kernel statistics
kstat utility exits 0 on
success, and >0 if an error occurs.
Show receive queue statistics for all interfaces and transmit queue statistics for all em(4) interfaces:
$ kstat rxq em*::txq:
kstat utility first appeared in
David Gwynne <email@example.com>