mountstats(8)
π mountstats β the manual, but make it make sense π
okay so bestie, you know how your NFS mounts are just... there? living their lives? doing RPCs?? this page is literally the mountstats(8) manual from the System Manager's Manual and i'm about to make it delicious. π¦
β¨ NAME β¨
mountstats β displays various NFS client per-mount statistics π
πΈ SYNOPSIS πΈ
mountstats [-h|--help] [-v|--version] [-f|--file infile] [-S|--since
sincefile] [ [-n|--nfs] | [-r|--rpc] | [-R|--raw] | [-x|--xprt] ]
[mountpoint]...
mountstats iostat [-h|--help] [-v|--version] [-f|--file infile]
[-S|--since sincefile] [interval] [count] [mountpoint]...
mountstats nfsstat [-h|--help] [-v|--version] [-f|--file infile]
[-S|--since sincefile] [-3] [-4] [mountpoint]...
π DESCRIPTION π
The mountstats command displays various NFS client statistics for each given mountpoint. π
And if you don't hand it a mountpoint at all? No stress. It'll show stats for all the NFS mountpoints on the client. every single one. it's giving overachiever. πβ¨
π§ Sub-commands
Valid mountstats(8) subcommands are, bestie:
mountstatsβ Displays a combination of per-op RPC statistics, NFS event counts, and NFS byte counts. This is the default sub-command that gets executed if you don't give a sub-command. the main character, honestly. πiostatβ Displays iostat-like statistics. β¨nfsstatβ Displays nfsstat-like statistics. β¨
π OPTIONS π
π Options valid for all sub-commands
-h,--helpβ show the help message and exit π«Ά-v,--versionβ show program's version number and exit π-finfile,--fileinfile β Read stats from infile instead of/proc/self/mountstats. infile must be in the same format as/proc/self/mountstats. This may be used with the-S|--sinceoptions to display the delta between two different points in time. This may not be used with the interval or count options of theiostatsub-command. π«-Ssincefile,--sincesincefile β Show difference between current stats and those in sincefile. sincefile must be in the same format as/proc/self/mountstats. This may be used with the-f|--fileoptions to display the delta between two different points in time. This may not be used with the interval or count options of theiostatsub-command. π«
π₯ Options specific to the mountstats sub-command
-n,--nfsβ Display only the NFS statistics π-r,--rpcβ Display only the RPC statistics π-R,--rawβ Display only the raw statistics. This is intended for use with the-f|--fileand-S|--sinceoptions. π«Ά-x,--xprtβ Display only the transport statistics π
β Options specific to the iostat sub-command
- interval β Specifies the amount of time in seconds between each report. The first report contains statistics for the time since each file system was mounted. Each subsequent report contains statistics collected during the interval since the previous report. This may not be used with the
-f|--fileor-S|--sinceoptions. π« - count β Determines the number of reports generated at interval seconds apart. If the interval parameter is specified without the count parameter, the command generates reports continuously. This may not be used with the
-f|--fileor-S|--sinceoptions. π«
heads up bestie: interval and count are lowkey incompatible with-f|--fileand-S|--since. like they literally cannot coexist. pick a lane. π
π Options specific to the nfsstat sub-command
-3β Show only NFS version 3 statistics. The default is to show both version 3 and version 4 statistics. π-4β Show only NFS version 4 statistics. The default is to show both version 3 and version 4 statistics. π
π¦ FILES π¦
/proc/self/mountstats
π SEE ALSO π
iostat(8), nfsiostat(8), nfsstat(8) β go read those too, iykyk πβ¨
πΈ AUTHOR πΈ
Chuck Lever <chuck.lever@oracle.com> β the icon who wrote this. respect. π
and that's the whole page bestie!! no cap, every single flag and caveat is right there. π
this was the mountstats(8) page from the System Manager's Manual, dated 12 Dec 2014 β yes, 2014, it's vintage, it's iconic, we stan a classic. π«Άβ¨π
π¦ where this page comes from
- arch rolling: nfs-utils 3.1.1-1 Β· GPL-2.0-or-later
- fedora 43: nfs-stats-utils 1:2.8.7-6.fc43 Β· LicenseRef-Callaway-MIT AND GPL-2.0-only AND GPL-2.0-or-later AND LicenseRef-Callaway-BSD
- fedora 43: nfs-utils 1:2.8.7-6.fc43 Β· LicenseRef-Callaway-MIT AND GPL-2.0-only AND GPL-2.0-or-later AND LicenseRef-Callaway-BSD
- fedora 44: nfs-python-utils 1:2.8.7-0.fc44 Β· GPL-2.0-only AND GPL-2.0-or-later AND BSD-3-Clause AND BSD-2-Clause AND (HPND-export-US-modify AND HPND-sell-variant) AND (GPL-2.0-only WITH Linux-syscall-note OR BSD-3-Clause)
- fedora 44: nfs-python-utils 1:2.8.7-7.fc44 Β· GPL-2.0-only AND GPL-2.0-or-later AND BSD-3-Clause AND BSD-2-Clause AND (HPND-export-US-modify AND HPND-sell-variant) AND (GPL-2.0-only WITH Linux-syscall-note OR BSD-3-Clause)
- nixos 26.05: nfs-utils 2.9.1
- nixpkgs unstable: nfs-utils 3.1.1
- ubuntu resolute: nfs-common 1:2.8.5-1ubuntu1
- ubuntu stonking: nfs-common 1:2.9.1-1ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms