nfsiostat(8)

πŸ’… nfsiostat β€” the manual page, but make it slay

okay so bestie, you're looking at nfsiostat, a page from the System Manager's Manual. It's giving "iostat but for NFS" and honestly? iconic. Let's get into it πŸ’–


✨ NAME ✨

nfsiostat β€” emulate iostat for NFS mount points using /proc/self/mountstats


🌸 SYNOPSIS 🌸

nfsiostat [[<interval>] [<count>]] [<options>][<mount_point>]

πŸ¦‹ DESCRIPTION πŸ¦‹

The nfsiostat command shows you NFS client statistics, per mount. That's the whole vibe. 🫢

  • <interval> β€” this is how many seconds you want between each report, fr fr. The first report is special though: it holds stats from the time each file system got mounted. Every report after that? Just the stats collected during the interval since the previous report. So it's like, a fresh lil slice each time. ✨
  • <count> β€” if you pass <count>, that value decides how many reports you get, spaced out at <interval> seconds apart. And if you give an interval but no <count>? Then it just keeps generating reports continuously forever, bestie. No cap. 😭
  • <options> β€” defined below πŸ‘‡ (they're the whole moment)
  • <mount_point> β€” name one or more <mount point>s and you'll only see stats for those. Name none? Then every NFS mount point on the client gets listed. You get the whole collection. πŸŽ€

🧚 what each column actually means (iykyk)

  • op/s β€” the number of operations per second.
  • rpc bklog β€” the length of the backlog queue.
  • kB/s (MB/s) β€” the number of kB (or MB) written/read per second.
  • kB/op (MB/op) β€” the number of kB (or MB) written/read per each operation.
  • retrans β€” the number of retransmissions.
  • avg RTT (ms) β€” the duration from the time the client's kernel sends the RPC request until the time it receives the reply. That's the round trip, babe. ✈️
  • avg exe (ms) β€” the duration from the time the NFS client does the RPC request to its kernel until the RPC request is completed. Heads up: this includes the RTT time from above. So it's RTT plus extra. πŸ‘‘
  • avg queue (ms) β€” the duration from the time the NFS client created the RPC request task to the time the request is transmitted. The lil waiting room era. πŸ’…
  • errors β€” the number of operations that completed with an error status (status < 0). Important tea: this count is only available on kernels with RPC iostats version 1.1 or above. So if you don't see it, it's not you, it's your kernel. πŸ₯²
also real quick: if you use an interval as an argument to nfsiostat, then the difference from the previous interval gets displayed. If you don't? The results are from the time the share was mounted. Big difference, bestie, don't get caught slippin'. ⭐

πŸ”₯ OPTIONS πŸ”₯

  • -a or --attr β€” displays statistics related to the attribute cache ✨
  • -d or --dir β€” displays statistics related to directory operations πŸ“
  • -h or --help β€” shows help message and exit 🫢
  • -l LIST or --list=LIST β€” only print stats for the first LIST mount points
  • -m or --megabytes β€” display throughput in megabytes per second πŸ’…
  • -p or --page β€” displays statistics related to the page cache πŸ“„
  • -s or --sort β€” sort NFS mount points by ops/second πŸ”₯
  • --version β€” show program's version number and exit πŸŽ€

πŸ“ FILES πŸ“

/proc/self/mountstats


🌈 SEE ALSO 🌈

iostat(8), mountstats(8), nfsstat(8)


πŸ‘‘ AUTHOR πŸ‘‘

Chuck Lever <chuck.lever@oracle.com>


and that's the whole page, bestie!! written by Chuck Lever, dated 15 Apr 2010, and it's the nfsiostat(8) page from the System Manager's Manual. slay, go check your mountstats, ily πŸ’–πŸ¦‹βœ¨

πŸ“¦ where this page comes from