{
    "mode": "man",
    "parameter": "mountstats",
    "section": "8",
    "url": "https://www.chedong.com/phpMan.php/man/mountstats/8/json",
    "generated": "2026-06-14T04:15:56Z",
    "synopsis": "mountstats  [-h|--help] [-v|--version] [-f|--file infile] [-S|--since sincefile] [ [-n|--nfs]\n| [-r|--rpc] | [-R|--raw] | [-x|--xprt] ] [mountpoint]...\nmountstats iostat [-h|--help] [-v|--version] [-f|--file infile] [-S|--since  sincefile]  [in‐\nterval] [count] [mountpoint]...\nmountstats  nfsstat [-h|--help] [-v|--version] [-f|--file infile] [-S|--since sincefile] [-3]\n[-4] [mountpoint]...",
    "sections": {
        "NAME": {
            "content": "mountstats - Displays various NFS client per-mount statistics\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "mountstats  [-h|--help] [-v|--version] [-f|--file infile] [-S|--since sincefile] [ [-n|--nfs]\n| [-r|--rpc] | [-R|--raw] | [-x|--xprt] ] [mountpoint]...\n\nmountstats iostat [-h|--help] [-v|--version] [-f|--file infile] [-S|--since  sincefile]  [in‐\nterval] [count] [mountpoint]...\n\nmountstats  nfsstat [-h|--help] [-v|--version] [-f|--file infile] [-S|--since sincefile] [-3]\n[-4] [mountpoint]...\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "The mountstats command displays various NFS client statisitics for each given mountpoint.\n\nIf no mountpoint is given, statistics will be  displayed  for  all  NFS  mountpoints  on  the\nclient.\n",
            "subsections": [
                {
                    "name": "Sub-commands",
                    "content": "Valid mountstats(8) subcommands are:\n"
                },
                {
                    "name": "mountstats",
                    "content": "Display a combination of per-op RPC statistics, NFS event counts, and NFS byte counts.\nThis is the default sub-command that will be executed if no sub-command is given.\n\niostat Display iostat-like statistics.\n"
                },
                {
                    "name": "nfsstat",
                    "content": "Display nfsstat-like statistics.\n"
                }
            ]
        },
        "OPTIONS": {
            "content": "",
            "subsections": [
                {
                    "name": "Options valid for all sub-commands",
                    "content": ""
                },
                {
                    "name": "-h, --help",
                    "content": "show the help message and exit\n",
                    "flag": "-h",
                    "long": "--help"
                },
                {
                    "name": "-v, --version",
                    "content": "show program's version number and exit\n",
                    "flag": "-v",
                    "long": "--version"
                },
                {
                    "name": "-f --file",
                    "content": "Read stats from infile instead of /proc/self/mountstats.  infile must be in  the  same\nformat as /proc/self/mountstats.  This may be used with the -S|--since options to dis‐\nplay the delta between two different points in time.  This may not be  used  with  the\ninterval or count options of the iostat sub-command.\n",
                    "flag": "-f",
                    "long": "--file"
                },
                {
                    "name": "-S --since",
                    "content": "Show  difference  between  current stats and those in sincefile.  sincefile must be in\nthe same format as /proc/self/mountstats.  This may be used with the -f|--file options\nto  display the delta between two different points in time.  This may not be used with\nthe interval or count options of the iostat sub-command.\n",
                    "flag": "-S",
                    "long": "--since"
                },
                {
                    "name": "Options specific to the mountstats sub-command",
                    "content": ""
                },
                {
                    "name": "-n, --nfs",
                    "content": "",
                    "flag": "-n",
                    "long": "--nfs"
                },
                {
                    "name": "-r, --rpc",
                    "content": "Display only the RPC statistics\n",
                    "flag": "-r",
                    "long": "--rpc"
                },
                {
                    "name": "-R, --raw",
                    "content": "Display only the raw statistics.  This is intended for  use  with  the  -f|--file  and\n-S|--since options.\n",
                    "flag": "-R",
                    "long": "--raw"
                },
                {
                    "name": "-x, --xprt",
                    "content": "Display only the transport statistics\n",
                    "flag": "-x",
                    "long": "--xprt"
                },
                {
                    "name": "Options specific to the iostat sub-command",
                    "content": "interval\nSpecifies  the  amount  of time in seconds between each report.  The first report con‐\ntains statistics for the time since each file system was mounted.  Each subsequent re‐\nport  contains  statistics  collected  during  the interval since the previous report.\nThis may not be used with the -f|--file or -S|--since options.\n\ncount  Determines the number of reports generated at interval seconds apart.  If the interval\nparameter is specified without the count parameter, the command generates reports con‐\ntinuously.  This may not be used with the -f|--file or -S|--since options.\n"
                },
                {
                    "name": "Options specific to the nfsstat sub-command",
                    "content": ""
                },
                {
                    "name": "-3",
                    "content": "4 statistics.\n",
                    "flag": "-3"
                },
                {
                    "name": "-4",
                    "content": "4 statistics.\n",
                    "flag": "-4"
                }
            ]
        },
        "FILES": {
            "content": "",
            "subsections": [
                {
                    "name": "/proc/self/mountstats",
                    "content": ""
                }
            ]
        },
        "SEE ALSO": {
            "content": "iostat(8), nfsiostat(8), nfsstat(8)\n",
            "subsections": []
        },
        "AUTHOR": {
            "content": "Chuck Lever <chuck.lever@oracle.com>\n\n\n\n12 Dec 2014                               mountstats(8)",
            "subsections": []
        }
    },
    "summary": "mountstats - Displays various NFS client per-mount statistics",
    "flags": [
        {
            "flag": "-h",
            "long": "--help",
            "arg": null,
            "description": "show the help message and exit"
        },
        {
            "flag": "-v",
            "long": "--version",
            "arg": null,
            "description": "show program's version number and exit"
        },
        {
            "flag": "-f",
            "long": "--file",
            "arg": null,
            "description": "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|--since options to dis‐ play the delta between two different points in time. This may not be used with the interval or count options of the iostat sub-command."
        },
        {
            "flag": "-S",
            "long": "--since",
            "arg": null,
            "description": "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|--file options to display the delta between two different points in time. This may not be used with the interval or count options of the iostat sub-command."
        },
        {
            "flag": "-n",
            "long": "--nfs",
            "arg": null,
            "description": ""
        },
        {
            "flag": "-r",
            "long": "--rpc",
            "arg": null,
            "description": "Display only the RPC statistics"
        },
        {
            "flag": "-R",
            "long": "--raw",
            "arg": null,
            "description": "Display only the raw statistics. This is intended for use with the -f|--file and -S|--since options."
        },
        {
            "flag": "-x",
            "long": "--xprt",
            "arg": null,
            "description": "Display only the transport statistics"
        },
        {
            "flag": "-3",
            "long": null,
            "arg": null,
            "description": "4 statistics."
        },
        {
            "flag": "-4",
            "long": null,
            "arg": null,
            "description": "4 statistics."
        }
    ],
    "examples": [],
    "see_also": [
        {
            "name": "iostat",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/iostat/8/json"
        },
        {
            "name": "nfsiostat",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/nfsiostat/8/json"
        },
        {
            "name": "nfsstat",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/nfsstat/8/json"
        }
    ]
}