nfsdist(8)
π nfsdist(8) π
System Manager's Manual β¨ okay so this is the page for nfsdist, a tool that tells you how long NFS file operations take π§
β¨ NAME β¨
nfsdist is the tool, and it's here to summarize NFS operation latency π
It runs on Linux and uses eBPF/bcc π₯
β¨ SYNOPSIS β¨
nfsdist [-h] [-T] [-m] [-p PID] [interval] [count]
π DESCRIPTION π
okay so bestie, nfsdist measures how much time gets eaten up by the common NFS file operations: reads, writes, opens, and getattrs π¦ It shows all of that as a power-of-2 histogram, and it keeps the histogram in an in-kernel eBPF map so it doesn't wreck your performance π
It works by tracing the nfs_file_operations interface functions, so if those functions ever change, this tool will need an update too π
β οΈ Only the root user can run this, because it uses BPF. Not me trying to sneak in as a regular user π
πΈ REQUIREMENTS πΈ
You need CONFIG_BPF and bcc π
π«Ά OPTIONS π«Ά
-hβ pulls up the usage message π-Tβ skips the timestamps on the interval output β-mβ shows the output in milliseconds instead of microseconds π-p PIDβ only traces the process with this PID, so it's giving focus π
π EXAMPLES π
Trace NFS operation time, and print a summary when you hit Ctrl-C:
# nfsdist
Trace PID 181 only:
# nfsdist -p 181
Print 1 second summaries, 10 times:
# nfsdist 1 10
1 second summaries, printed in milliseconds:
# nfsdist -m 1
π¦ FIELDS π¦
msecsβ the range of milliseconds this bucket covers πΈusecsβ the range of microseconds this bucket covers πΈcountβ how many operations landed in that time range πdistributionβ an ASCII picture of the distribution, drawn from the count column π
π OVERHEAD π
nfsdist adds low-overhead instrumentation to these NFS operations, and that includes reads and writes coming 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 tool's overhead can start to show up π₯Ί Measure and quantify before you use it, bestie π§
π§ SOURCE π§
This comes from bcc π
https://github.com/iovisor/bcc
Also check the bcc distribution for a companion _examples.txt file. It has example usage, output, and commentary for this tool π
π OS π
Linux π§
π STABILITY π
Unstable, since it's still in development π§
π AUTHOR π
Samuel Nair π«Ά
β¨ SEE ALSO β¨
nfsslower(8) is the one to check out next π₯
That's the whole page, babe! π Pulled from the USER COMMANDS section, dated 2017-09-08, and it's giving nfsdist(8) all the way πβ¨
π¦ 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