1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-10-18 02:19:39 +00:00
freebsd/usr.sbin/gstat
Michael Zhilin d81b0f5e43 usr.sbin/gstat: add microsecond precision for disk latency
This patch makes gstat to show latency in microseconds if actual latency
is less than 1ms. It affects only "ms/r" and "ms/w" columns.

Before patch:
 L(q)  ops/s    r/s   kBps   ms/r    w/s   kBps   ms/w   %busy Name
    0    922      0      0    0.0    922  35809    0.0    2.8| nda0
    0    928      2     34    0.1    926  35809    0.0    3.1| nda1

After patch:
 L(q)  ops/s    r/s   kBps   ms/r    w/s   kBps   ms/w   %busy Name
    0    496      1     31  0.156    495  16020  0.040    1.5| nda0
    0    492      0      0  0.000    492  16020  0.042    1.5| nda1

Reviewed by:	imp
Sponsored by:	Postgres Professional
Differential Revision:	https://reviews.freebsd.org/D41999

(cherry picked from commit d471b4f71d)
2024-08-11 22:31:13 +03:00
..
gstat.8 Remove $FreeBSD$: two-line nroff pattern 2023-08-23 11:43:31 -06:00
gstat.c usr.sbin/gstat: add microsecond precision for disk latency 2024-08-11 22:31:13 +03:00
Makefile Remove $FreeBSD$: one-line sh pattern 2023-08-23 11:43:30 -06:00
Makefile.depend Remove $FreeBSD$: one-line sh pattern 2023-08-23 11:43:30 -06:00