xfsdist(8)
β¨ xfsdist(8) β¨
System Manager's Manual, but make it cute π
π NAME π
xfsdist - Summarize XFS operation latency. Uses Linux eBPF/bcc. π¦
π§ SYNOPSIS π§
xfsdist [-h] [-T] [-m] [-p PID] [interval] [count]
πΈ DESCRIPTION πΈ
okay so this tool measures how long common XFS file operations take π bestie, we're talking reads, writes, opens, and syncs. It shows the results as a power-of-2 histogram π and it stores that histogram in an in-kernel eBPF map, which keeps things efficient β¨
Heads up: this works by tracing the xfs_file_operations interface functions, so it's going to need updating if those functions ever change π
β οΈ Since this uses BPF, only the root user can run this tool. Sorry, not sorry π
π REQUIREMENTS π
You'll need CONFIG_BPF and bcc. No cap, nothing else π
π OPTIONS π
-hβ Pulls up the usage message π-Tβ Skips the timestamps on interval output π°οΈ-mβ Shows the output in milliseconds instead of microseconds π-p PIDβ Only traces this PID, main character energy π
π¦ EXAMPLES π¦
Trace XFS operation time, then get a summary when you hit Ctrl-C π«:
# xfsdist
Trace PID 181 only π―:
# xfsdist -p 181
Print 1 second summaries, 10 times π₯:
# xfsdist 1 10
1 second summaries, printed in milliseconds π:
# xfsdist -m 1
π FIELDS π
msecsβ The range of milliseconds for this bucket β±οΈusecsβ The range of microseconds for this bucket β‘countβ How many operations landed in this time range π’distributionβ An ASCII picture of the distribution, based on the count column π¨
π OVERHEAD π
ngl, this adds low-overhead instrumentation to these XFS operations, and that includes reads and writes served from the file system cache π₯Ί Those reads and writes can be super frequent depending on the workload (like 1M/sec), and at that point the overhead of this tool can start to show up π¬ Measure and quantify before use so you're not caught off guard π«Ά
π· SOURCE π·
This comes from bcc π
https://github.com/iovisor/bcc
Also check out the bcc distribution for a companion _examples.txt file, which has example usage, output, and commentary for this tool π
π OS π
Linux π§
π§ͺ STABILITY π§ͺ
Unstable, still in development π§
π©βπ» AUTHOR π©βπ»
Brendan Gregg π
π SEE ALSO π
xfssnoop(8)β¨
Bestie, that's the whole page π Source is bcc, the manual lives under USER COMMANDS, and it was dated 2016-02-12, so go be iconic with your XFS latency data π¦β¨
π¦ where this page comes from
- alpine 3.24: bcc-doc 0.36.1-r1 Β· Apache-2.0
- nixpkgs unstable: bcc 0.37.0
- opensuse-leap 16.0: bcc-tools 0.35.0-160000.2.2 Β· Apache-2.0
- opensuse-leap 16.0: bcc-tools 0.35.0-160000.2.2 Β· Apache-2.0
- opensuse-leap 16.0: bcc-tools 0.35.0-160000.2.2 Β· Apache-2.0
- opensuse-leap 16.0: bcc-tools 0.35.0-160000.2.2 Β· Apache-2.0
- π girlified by anthropic/claude-haiku-5.5 on : a language model's rewrite of the original, under its terms