CTLSTAT(8)
π ctlstat(8) π
okay so this is ctlstat(8), and it lives in the System Manager's Manual β very β¨system manager coreβ¨ of it. bestie, it's the CAM Target Layer statistics utility, and it's here to give you the numbers you crave. π«Ά
π NAME π
ctlstat β CAM Target Layer statistics utility
π SYNOPSIS π
ctlstat [-t] [-c count] [-C] [-d] [-D] [-j] [-P] [-l lun] [-n numdevs]
[-p port] [-w wait]
β¨ DESCRIPTION β¨
ctlstat gives you statistics information for the CAM Target Layer. slay.
The first display β except when you're in dump or JSON mode β shows average statistics since system startup. Every display after that shows average statistics during the measurement interval. periodt. π
The options are as follows, bestie:
π₯ OPTIONS π₯
-tβ Total mode. This displays separate columns with the total read and write output, and a combined total column that also includes non I/O operations. iconic behavior, honestly.-ccountβ Display statistics this many times. like, a little stats snack pack. π-Cβ Disable CPU statistics display. no CPU noise, just vibes.-dβ Display DMA operation time (latency) instead of overall I/O time (latency). it's giving latency-specific.-Dβ Text dump mode. Dump statistics every 30 seconds in a text format suitable for parsing. No statistics are computed in this mode, only raw numbers are displayed. raw numbers only, no glow-up. π-hβ Suppress display of the header. bye, header. π-jβ JSON dump mode. Dump statistics every 30 seconds in JavaScript Object Notation (JSON) format. No statistics are computed in this mode, only raw numbers are displayed. JSON girlies stay winning. π¦-Pβ Prometheus dump mode. Dump statistics in a format suitable for ingestion into Prometheus. When invoked with this option,ctlstatdumps once, regardless of the-toption. This option is especially useful when invoked byinetd(8). See the comments in/etc/inetd.conffor an example configuration. Prometheus moment. π-llunβ Request statistics for the specified LUN. give me that exact LUN, bestie.-nnumdevsβ Display statistics for this many devices. a whole little device lineup. πΈ-pportβ Request statistics for the specified port. port-specific, no cap.-wwaitβ Wait this many seconds in between displays. If this option is not specified,ctlstatdefaults to a 1 second interval. so if you don't say anything, it's literally 1 second. π
π EXAMPLES π
ctlstat -t
Display total statistics for the system with a one second interval.
ctlstat -d -l 5 -C
Display average DMA time for LUN 5 and omit CPU utilization.
ctlstat -n 7 -w 10
Display statistics for the first 7 LUNs, and display average statistics every 10 seconds.
π¦ SEE ALSO π¦
cam(3)cam(4)ctl(4)xpt(4)camcontrol(8)ctladm(8)ctld(8)iostat(8)- Prometheus project:
https://prometheus.io/. - Prometheus exposition formats:
https://prometheus.io/docs/instrumenting/exposition_formats/.
π AUTHORS π
Ken Merry <ken@FreeBSD.org>Will Andrews <will@FreeBSD.org>Alexander Motin <mav@FreeBSD.org>
xoxo, your Debian bestie β this page is dated April 22, 2021, and it's CTLSTAT(8). bye bestie π
π
π¦ where this page comes from
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- Copyright (c) 2010 Silicon Graphics International Corp
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms