19b50d902SRodney W. Grimes.\" Copyright (c) 1989, 1990, 1993 29b50d902SRodney W. Grimes.\" The Regents of the University of California. All rights reserved. 39b50d902SRodney W. Grimes.\" 49b50d902SRodney W. Grimes.\" Redistribution and use in source and binary forms, with or without 59b50d902SRodney W. Grimes.\" modification, are permitted provided that the following conditions 69b50d902SRodney W. Grimes.\" are met: 79b50d902SRodney W. Grimes.\" 1. Redistributions of source code must retain the above copyright 89b50d902SRodney W. Grimes.\" notice, this list of conditions and the following disclaimer. 99b50d902SRodney W. Grimes.\" 2. Redistributions in binary form must reproduce the above copyright 109b50d902SRodney W. Grimes.\" notice, this list of conditions and the following disclaimer in the 119b50d902SRodney W. Grimes.\" documentation and/or other materials provided with the distribution. 12fbbd9655SWarner Losh.\" 3. Neither the name of the University nor the names of its contributors 139b50d902SRodney W. Grimes.\" may be used to endorse or promote products derived from this software 149b50d902SRodney W. Grimes.\" without specific prior written permission. 159b50d902SRodney W. Grimes.\" 169b50d902SRodney W. Grimes.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 179b50d902SRodney W. Grimes.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 189b50d902SRodney W. Grimes.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 199b50d902SRodney W. Grimes.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 209b50d902SRodney W. Grimes.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 219b50d902SRodney W. Grimes.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 229b50d902SRodney W. Grimes.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 239b50d902SRodney W. Grimes.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 249b50d902SRodney W. Grimes.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 259b50d902SRodney W. Grimes.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 269b50d902SRodney W. Grimes.\" SUCH DAMAGE. 279b50d902SRodney W. Grimes.\" 28*f79b200bSLexi Winter.Dd December 28, 2023 299b50d902SRodney W. Grimes.Dt NFSSTAT 1 3062500372SRuslan Ermilov.Os 319b50d902SRodney W. Grimes.Sh NAME 329b50d902SRodney W. Grimes.Nm nfsstat 339b50d902SRodney W. Grimes.Nd display 349b50d902SRodney W. Grimes.Tn NFS 359b50d902SRodney W. Grimesstatistics 369b50d902SRodney W. Grimes.Sh SYNOPSIS 3793e0d62dSJohn-Mark Gurney.Nm 382145d321SEmmanuel Vadot.Op Fl -libxo 3930ce26caSLexi Winter.Op Fl cdEemqszW 409b50d902SRodney W. Grimes.Op Fl w Ar wait 419b50d902SRodney W. Grimes.Sh DESCRIPTION 4293e0d62dSJohn-Mark GurneyThe 4393e0d62dSJohn-Mark Gurney.Nm 4493e0d62dSJohn-Mark Gurneycommand displays statistics kept about 459b50d902SRodney W. Grimes.Tn NFS 469b50d902SRodney W. Grimesclient and server activity. 47af3ed447SRick MacklemFor the NFSv4 server, the statistics are for operations within the Compound 48af3ed447SRick MacklemRPCs and not the count of RPCs. 49af3ed447SRick MacklemIf you wish to compare RPC counts between NFSv3 and NFSv4, you must use 50af3ed447SRick Macklemstatistics in the client(s). 519b50d902SRodney W. Grimes.Pp 529b50d902SRodney W. GrimesThe options are as follows: 53979754a1SMateusz Piotrowski.Bl -tag -width "-w wait" 54eb12e836SDavid E. O'Brien.It Fl c 55906d8141SRuslan ErmilovOnly display client side statistics. 5650f3f9f9SRick Macklem.It Fl d 577c655326SEdward Tomasz NapieralaDisplay statistics for the NFS server that are similar to those 5850f3f9f9SRick Macklemdisplayed by 5950f3f9f9SRick Macklem.Xr iostat 8 . 6050f3f9f9SRick MacklemThis includes kilobytes per transfer, transfers per second, and megabytes per 6150f3f9f9SRick Macklemsecond for read, write, and all operations. 6250f3f9f9SRick MacklemIt also includes the current queue depth, the busy percentage, and latency 6350f3f9f9SRick Macklemfor all operations. 6450f3f9f9SRick MacklemIf the 6550f3f9f9SRick Macklem.Fl W 6650f3f9f9SRick Macklemflag is added, commits per second, commit latency, read latency, and write 6750f3f9f9SRick Macklemlatency are also added to the display. 6850f3f9f9SRick MacklemThe busy percentage shown can exceed 100 at times. 6950f3f9f9SRick MacklemThis is because of the way busy percentages are calculated. 7050f3f9f9SRick MacklemThe busy time is calculated by adding the elapsed time between the 7150f3f9f9SRick Macklemlast time an operation started or finished, 7250f3f9f9SRick Macklemand the current time. 7350f3f9f9SRick MacklemIf there is only one operation outstanding, the "busy time" time 7450f3f9f9SRick Macklemwill get updated with the total time of that operation. 7550f3f9f9SRick MacklemThat means that the difference in the busy time between the two 7650f3f9f9SRick Macklemmeasurement intervals (often 1 second) 7750f3f9f9SRick Macklemwill increase by more than the measurement interval. 78f90f8f00SRick Macklem.It Fl e 79722e2552SEdward Tomasz NapieralaReport the extra statistics collected by the NFS client and 80f90f8f00SRick Macklemserver for NFSv4. 81332b7722SRick Macklem.It Fl E 82332b7722SRick MacklemSimilar to 83332b7722SRick Macklem.Fl e 84e68a8935SRick Macklemexcept that the statistics include NFSv4.1 and NFSv4.2 and the numbers aren't 85e68a8935SRick Macklemclipped at one billion. 86332b7722SRick MacklemOnly one of 87332b7722SRick Macklem.Fl e 88332b7722SRick Macklemor 89332b7722SRick Macklem.Fl E 90332b7722SRick Macklemcan be specified. 919b50d902SRodney W. Grimes.It Fl M 9280a1b8c5SRick MacklemDeprecated and ignored. 93a3ef3692SRick Macklem.It Fl m 947c655326SEdward Tomasz NapieralaReport the mount options for all NFS client mounts. 95a3ef3692SRick MacklemThis option overrides all others and 96a3ef3692SRick Macklem.Nm 97a3ef3692SRick Macklemwill exit after completing the report. 989b50d902SRodney W. Grimes.It Fl N 9980a1b8c5SRick MacklemDeprecated and ignored. 100eb12e836SDavid E. O'Brien.It Fl s 101906d8141SRuslan ErmilovOnly display server side statistics. 1024893ef0bSMatthew Dillon.It Fl W 1036a3e8b0aSRuslan ErmilovUse wide format with interval short summary. 1046a3e8b0aSRuslan ErmilovThis option is especially 105906d8141SRuslan Ermilovuseful when combined with 10650f3f9f9SRick Macklem.Fl c , 10750f3f9f9SRick Macklem.Fl d , 108906d8141SRuslan Ermilovor 109906d8141SRuslan Ermilov.Fl s 110906d8141SRuslan Ermilovand a time delay. 111979754a1SMateusz Piotrowski.It Fl w Ar wait 1129b50d902SRodney W. GrimesDisplay a shorter summary of 1139b50d902SRodney W. Grimes.Tn NFS 1149b50d902SRodney W. Grimesactivity for both the client and server at 1159b50d902SRodney W. Grimes.Ar wait 1169b50d902SRodney W. Grimessecond intervals. 117813947b7SJohn Baldwin.It Fl z 118813947b7SJohn BaldwinReset statistics after displaying them. 1192145d321SEmmanuel Vadot.It Fl q 120*f79b200bSLexi WinterDo not print headers. 1212145d321SEmmanuel Vadot.It Fl -libxo 1222145d321SEmmanuel VadotGenerate output via 1232145d321SEmmanuel Vadot.Xr libxo 3 1242145d321SEmmanuel Vadotin a selection of different human and machine readable formats. 1252145d321SEmmanuel VadotSee 1262145d321SEmmanuel Vadot.Xr xo_parse_args 3 1272145d321SEmmanuel Vadotfor details on command line arguments. 1289b50d902SRodney W. Grimes.El 1299b50d902SRodney W. Grimes.Sh SEE ALSO 1309b50d902SRodney W. Grimes.Xr fstat 1 , 1319b50d902SRodney W. Grimes.Xr netstat 1 , 1329b50d902SRodney W. Grimes.Xr ps 1 , 1339b50d902SRodney W. Grimes.Xr systat 1 , 13407e532e7SGarrett Wollman.Xr sysctl 3 , 1359b50d902SRodney W. Grimes.Xr iostat 8 , 136bcdaa850SRick Macklem.Xr nfsdumpstate 8 , 1379b50d902SRodney W. Grimes.Xr pstat 8 , 138270d3d75SMike Pritchard.Xr vmstat 8 1399b50d902SRodney W. Grimes.Sh HISTORY 1409b50d902SRodney W. GrimesThe 14193e0d62dSJohn-Mark Gurney.Nm 14293e0d62dSJohn-Mark Gurneycommand appeared in 1439b50d902SRodney W. Grimes.Bx 4.4 . 144