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.\" 2807e532e7SGarrett Wollman.\" From: @(#)nfsstat.1 8.1 (Berkeley) 6/6/93 29c3aac50fSPeter Wemm.\" $FreeBSD$ 309b50d902SRodney W. Grimes.\" 31*80a1b8c5SRick Macklem.Dd December 31, 2019 329b50d902SRodney W. Grimes.Dt NFSSTAT 1 3362500372SRuslan Ermilov.Os 349b50d902SRodney W. Grimes.Sh NAME 359b50d902SRodney W. Grimes.Nm nfsstat 369b50d902SRodney W. Grimes.Nd display 379b50d902SRodney W. Grimes.Tn NFS 389b50d902SRodney W. Grimesstatistics 399b50d902SRodney W. Grimes.Sh SYNOPSIS 4093e0d62dSJohn-Mark Gurney.Nm 412145d321SEmmanuel Vadot.Op Fl -libxo 42332b7722SRick Macklem.Op Fl cdEemszW 439b50d902SRodney W. Grimes.Op Fl w Ar wait 449b50d902SRodney W. Grimes.Sh DESCRIPTION 4593e0d62dSJohn-Mark GurneyThe 4693e0d62dSJohn-Mark Gurney.Nm 4793e0d62dSJohn-Mark Gurneycommand displays statistics kept about 489b50d902SRodney W. Grimes.Tn NFS 499b50d902SRodney W. Grimesclient and server activity. 50af3ed447SRick MacklemFor the NFSv4 server, the statistics are for operations within the Compound 51af3ed447SRick MacklemRPCs and not the count of RPCs. 52af3ed447SRick MacklemIf you wish to compare RPC counts between NFSv3 and NFSv4, you must use 53af3ed447SRick Macklemstatistics in the client(s). 549b50d902SRodney W. Grimes.Pp 559b50d902SRodney W. GrimesThe options are as follows: 56906d8141SRuslan Ermilov.Bl -tag -width indent 57eb12e836SDavid E. O'Brien.It Fl c 58906d8141SRuslan ErmilovOnly display client side statistics. 5950f3f9f9SRick Macklem.It Fl d 607c655326SEdward Tomasz NapieralaDisplay statistics for the NFS server that are similar to those 6150f3f9f9SRick Macklemdisplayed by 6250f3f9f9SRick Macklem.Xr iostat 8 . 6350f3f9f9SRick MacklemThis includes kilobytes per transfer, transfers per second, and megabytes per 6450f3f9f9SRick Macklemsecond for read, write, and all operations. 6550f3f9f9SRick MacklemIt also includes the current queue depth, the busy percentage, and latency 6650f3f9f9SRick Macklemfor all operations. 6750f3f9f9SRick MacklemIf the 6850f3f9f9SRick Macklem.Fl W 6950f3f9f9SRick Macklemflag is added, commits per second, commit latency, read latency, and write 7050f3f9f9SRick Macklemlatency are also added to the display. 7150f3f9f9SRick MacklemThe busy percentage shown can exceed 100 at times. 7250f3f9f9SRick MacklemThis is because of the way busy percentages are calculated. 7350f3f9f9SRick MacklemThe busy time is calculated by adding the elapsed time between the 7450f3f9f9SRick Macklemlast time an operation started or finished, 7550f3f9f9SRick Macklemand the current time. 7650f3f9f9SRick MacklemIf there is only one operation outstanding, the "busy time" time 7750f3f9f9SRick Macklemwill get updated with the total time of that operation. 7850f3f9f9SRick MacklemThat means that the difference in the busy time between the two 7950f3f9f9SRick Macklemmeasurement intervals (often 1 second) 8050f3f9f9SRick Macklemwill increase by more than the measurement interval. 81f90f8f00SRick Macklem.It Fl e 82722e2552SEdward Tomasz NapieralaReport the extra statistics collected by the NFS client and 83f90f8f00SRick Macklemserver for NFSv4. 84332b7722SRick Macklem.It Fl E 85332b7722SRick MacklemSimilar to 86332b7722SRick Macklem.Fl e 87e68a8935SRick Macklemexcept that the statistics include NFSv4.1 and NFSv4.2 and the numbers aren't 88e68a8935SRick Macklemclipped at one billion. 89332b7722SRick MacklemOnly one of 90332b7722SRick Macklem.Fl e 91332b7722SRick Macklemor 92332b7722SRick Macklem.Fl E 93332b7722SRick Macklemcan be specified. 949b50d902SRodney W. Grimes.It Fl M 95*80a1b8c5SRick MacklemDeprecated and ignored. 96a3ef3692SRick Macklem.It Fl m 977c655326SEdward Tomasz NapieralaReport the mount options for all NFS client mounts. 98a3ef3692SRick MacklemThis option overrides all others and 99a3ef3692SRick Macklem.Nm 100a3ef3692SRick Macklemwill exit after completing the report. 1019b50d902SRodney W. Grimes.It Fl N 102*80a1b8c5SRick MacklemDeprecated and ignored. 103eb12e836SDavid E. O'Brien.It Fl s 104906d8141SRuslan ErmilovOnly display server side statistics. 1054893ef0bSMatthew Dillon.It Fl W 1066a3e8b0aSRuslan ErmilovUse wide format with interval short summary. 1076a3e8b0aSRuslan ErmilovThis option is especially 108906d8141SRuslan Ermilovuseful when combined with 10950f3f9f9SRick Macklem.Fl c , 11050f3f9f9SRick Macklem.Fl d , 111906d8141SRuslan Ermilovor 112906d8141SRuslan Ermilov.Fl s 113906d8141SRuslan Ermilovand a time delay. 1149b50d902SRodney W. Grimes.It Fl w 1159b50d902SRodney W. GrimesDisplay a shorter summary of 1169b50d902SRodney W. Grimes.Tn NFS 1179b50d902SRodney W. Grimesactivity for both the client and server at 1189b50d902SRodney W. Grimes.Ar wait 1199b50d902SRodney W. Grimessecond intervals. 120813947b7SJohn Baldwin.It Fl z 121813947b7SJohn BaldwinReset statistics after displaying them. 1222145d321SEmmanuel Vadot.It Fl q 1232145d321SEmmanuel VadotDo not print header 1242145d321SEmmanuel Vadot.It Fl -libxo 1252145d321SEmmanuel VadotGenerate output via 1262145d321SEmmanuel Vadot.Xr libxo 3 1272145d321SEmmanuel Vadotin a selection of different human and machine readable formats. 1282145d321SEmmanuel VadotSee 1292145d321SEmmanuel Vadot.Xr xo_parse_args 3 1302145d321SEmmanuel Vadotfor details on command line arguments. 1319b50d902SRodney W. Grimes.El 1329b50d902SRodney W. Grimes.Sh SEE ALSO 1339b50d902SRodney W. Grimes.Xr fstat 1 , 1349b50d902SRodney W. Grimes.Xr netstat 1 , 1359b50d902SRodney W. Grimes.Xr ps 1 , 1369b50d902SRodney W. Grimes.Xr systat 1 , 13707e532e7SGarrett Wollman.Xr sysctl 3 , 1389b50d902SRodney W. Grimes.Xr iostat 8 , 139bcdaa850SRick Macklem.Xr nfsdumpstate 8 , 1409b50d902SRodney W. Grimes.Xr pstat 8 , 141270d3d75SMike Pritchard.Xr vmstat 8 1429b50d902SRodney W. Grimes.Sh HISTORY 1439b50d902SRodney W. GrimesThe 14493e0d62dSJohn-Mark Gurney.Nm 14593e0d62dSJohn-Mark Gurneycommand appeared in 1469b50d902SRodney W. Grimes.Bx 4.4 . 147