freebsd-dev/usr.bin/systat
Warner Losh 22054f8891 Report I/O stats from the CAM_IOSCHED_DYNAMIC extension
Report, on a periodic basis, the I/O latencies the CAM I/O scheduler
computes. These times are only for the hardware portion of the I/O as
measured from the time the operation is scheduled with the SIM using
xpt_action() until the SIM reports it has completed with xpt_dine(). Any
time the I/O operation spends in a software queue is no included.

The P50 (median), P90, P99 and P99.9 statistics about the latency of
each of the read, write and trim operations that completed during the
polling interval are reported. If there are fewer than 2, 10, 100 or
1000 operations during the polling interval, no statistic is reported
and a single dash '-' is displayed.

The read, write and trim commands (either on the command line or at run
time) toggle display of these operations. The color command toggles
color (it defaults to on, like gstat). When color is enabled, unknown
statistics are reported in blue, high latency for a statistics is
reported in red, medium in magenta and low in green (as with gstat). The
med= and hi= commands can set these latency thresholds.

Limitations: The entire sysctl space for all the devices is walked for
each polling period. This should be optimized to remember the OIDs and
only do such polling with the xpt generation changes. There is also no
way to filter devices displayed. This command only works on physical
devies that are connected to SCSI, ATA or NVME sims as those are the
only ones that are instrumented in the CAM I/O scheduler (the
CAM_IOSCHED_DYNAMIC option must be in the kernel, and the dynamic
scheduler can't be disabled).

MFC After:		1 month
Relnotes:		yes
Sponsored by:		Netflix
Reviewed by:		pauamma_gundo.com, chs
Differential Revision:	https://reviews.freebsd.org/D34259
2022-02-28 10:44:47 -07:00
..
cmds.c
cmdtab.c Report I/O stats from the CAM_IOSCHED_DYNAMIC extension 2022-02-28 10:44:47 -07:00
convtbl.c
convtbl.h
devs.c systat: mostly clean up warns 2021-11-01 23:11:16 +00:00
devs.h systat: Handle SIGWINCH to properly window resizing and adjust 2021-04-21 20:31:58 +02:00
extern.h Report I/O stats from the CAM_IOSCHED_DYNAMIC extension 2022-02-28 10:44:47 -07:00
fetch.c Introduce sysputpage() to display large page size with human readable format. 2020-05-15 17:37:08 +00:00
icmp6.c
icmp.c
ifcmds.c Handle device removal and removal+add cases to fix infinity rate. 2020-07-11 13:56:36 +00:00
ifstat.c systat: mostly clean up warns 2021-11-01 23:11:16 +00:00
iolat.c Report I/O stats from the CAM_IOSCHED_DYNAMIC extension 2022-02-28 10:44:47 -07:00
iostat.c systat/iostat: Use bools for numbers and kbpt 2022-02-07 14:51:45 -07:00
ip6.c Add stat counter for ipv6 atomic fragments 2019-04-19 17:06:43 +00:00
ip.c
keyboard.c
main.c Report I/O stats from the CAM_IOSCHED_DYNAMIC extension 2022-02-28 10:44:47 -07:00
Makefile Report I/O stats from the CAM_IOSCHED_DYNAMIC extension 2022-02-28 10:44:47 -07:00
Makefile.depend
mode.c
mode.h
netcmds.c
netstat.c systat: clean up code assuming network classes 2021-11-09 09:35:16 -06:00
pigs.c systat: Avoid incorrect reallocation in pigs.c 2021-04-21 20:09:21 +02:00
proc.c systat: mostly clean up warns 2021-11-01 23:11:16 +00:00
sctp.c
swap.c Augment systat(1) -swap to display large swap space processes 2021-10-26 15:50:29 +03:00
sysput.c systat: Eliminate write-only unit variable 2022-02-07 14:51:45 -07:00
systat.1 Report I/O stats from the CAM_IOSCHED_DYNAMIC extension 2022-02-28 10:44:47 -07:00
systat.h Augment systat(1) -swap to display large swap space processes 2021-10-26 15:50:29 +03:00
tcp.c
vmstat.c systat: Display seconds in vmstat mode 2022-01-29 20:41:19 +11:00
zarc.c Clean up copyright messages. 2021-05-10 23:14:35 -07:00