xref: /freebsd/usr.bin/nfsstat/nfsstat.1 (revision 332b7722bca59760e89a9a39afa41c14ebd32dcc)
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.
129b50d902SRodney W. Grimes.\" 4. 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*332b7722SRick Macklem.Dd Nov 23, 2016
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
41*332b7722SRick Macklem.Op Fl cdEemszW
429b50d902SRodney W. Grimes.Op Fl M Ar core
439b50d902SRodney W. Grimes.Op Fl N Ar system
449b50d902SRodney W. Grimes.Op Fl w Ar wait
459b50d902SRodney W. Grimes.Sh DESCRIPTION
4693e0d62dSJohn-Mark GurneyThe
4793e0d62dSJohn-Mark Gurney.Nm
4893e0d62dSJohn-Mark Gurneycommand displays statistics kept about
499b50d902SRodney W. Grimes.Tn NFS
509b50d902SRodney W. Grimesclient and server activity.
51af3ed447SRick MacklemFor the NFSv4 server, the statistics are for operations within the Compound
52af3ed447SRick MacklemRPCs and not the count of RPCs.
53af3ed447SRick MacklemIf you wish to compare RPC counts between NFSv3 and NFSv4, you must use
54af3ed447SRick Macklemstatistics in the client(s).
559b50d902SRodney W. Grimes.Pp
569b50d902SRodney W. GrimesThe options are as follows:
57906d8141SRuslan Ermilov.Bl -tag -width indent
58eb12e836SDavid E. O'Brien.It Fl c
59906d8141SRuslan ErmilovOnly display client side statistics.
6050f3f9f9SRick Macklem.It Fl d
6150f3f9f9SRick MacklemDisplay statistics for the new NFS server that are similar to those
6250f3f9f9SRick Macklemdisplayed by
6350f3f9f9SRick Macklem.Xr iostat 8 .
6450f3f9f9SRick MacklemThis includes kilobytes per transfer, transfers per second, and megabytes per
6550f3f9f9SRick Macklemsecond for read, write, and all operations.
6650f3f9f9SRick MacklemIt also includes the current queue depth, the busy percentage, and latency
6750f3f9f9SRick Macklemfor all operations.
6850f3f9f9SRick MacklemIf the
6950f3f9f9SRick Macklem.Fl W
7050f3f9f9SRick Macklemflag is added, commits per second, commit latency, read latency, and write
7150f3f9f9SRick Macklemlatency are also added to the display.
7250f3f9f9SRick MacklemThe busy percentage shown can exceed 100 at times.
7350f3f9f9SRick MacklemThis is because of the way busy percentages are calculated.
7450f3f9f9SRick MacklemThe busy time is calculated by adding the elapsed time between the
7550f3f9f9SRick Macklemlast time an operation started or finished,
7650f3f9f9SRick Macklemand the current time.
7750f3f9f9SRick MacklemIf there is only one operation outstanding, the "busy time" time
7850f3f9f9SRick Macklemwill get updated with the total time of that operation.
7950f3f9f9SRick MacklemThat means that the difference in the busy time between the two
8050f3f9f9SRick Macklemmeasurement intervals (often 1 second)
8150f3f9f9SRick Macklemwill increase by more than the measurement interval.
82f90f8f00SRick Macklem.It Fl e
83722e2552SEdward Tomasz NapieralaReport the extra statistics collected by the NFS client and
84f90f8f00SRick Macklemserver for NFSv4.
85*332b7722SRick Macklem.It Fl E
86*332b7722SRick MacklemSimilar to
87*332b7722SRick Macklem.Fl e
88*332b7722SRick Macklemexcept that the statistics include NFSv4.1 and the numbers aren't clipped
89*332b7722SRick Macklemat one billion.
90*332b7722SRick MacklemOnly one of
91*332b7722SRick Macklem.Fl e
92*332b7722SRick Macklemor
93*332b7722SRick Macklem.Fl E
94*332b7722SRick Macklemcan be specified.
959b50d902SRodney W. Grimes.It Fl M
969b50d902SRodney W. GrimesExtract values associated with the name list from the specified core
979b50d902SRodney W. Grimesinstead of the default
989b50d902SRodney W. Grimes.Pa /dev/kmem .
99a3ef3692SRick Macklem.It Fl m
100a3ef3692SRick MacklemReport the mount options for all new NFS client mounts.
101a3ef3692SRick MacklemThis option overrides all others and
102a3ef3692SRick Macklem.Nm
103a3ef3692SRick Macklemwill exit after completing the report.
104a3ef3692SRick MacklemThis option is only supported by the new NFS client.
1059b50d902SRodney W. Grimes.It Fl N
1069b50d902SRodney W. GrimesExtract the name list from the specified system instead of the default
1071063e126SJosef Karthauser.Pa /boot/kernel/kernel .
108eb12e836SDavid E. O'Brien.It Fl s
109906d8141SRuslan ErmilovOnly display server side statistics.
1104893ef0bSMatthew Dillon.It Fl W
1116a3e8b0aSRuslan ErmilovUse wide format with interval short summary.
1126a3e8b0aSRuslan ErmilovThis option is especially
113906d8141SRuslan Ermilovuseful when combined with
11450f3f9f9SRick Macklem.Fl c ,
11550f3f9f9SRick Macklem.Fl d ,
116906d8141SRuslan Ermilovor
117906d8141SRuslan Ermilov.Fl s
118906d8141SRuslan Ermilovand a time delay.
1199b50d902SRodney W. Grimes.It Fl w
1209b50d902SRodney W. GrimesDisplay a shorter summary of
1219b50d902SRodney W. Grimes.Tn NFS
1229b50d902SRodney W. Grimesactivity for both the client and server at
1239b50d902SRodney W. Grimes.Ar wait
1249b50d902SRodney W. Grimessecond intervals.
125813947b7SJohn Baldwin.It Fl z
126813947b7SJohn BaldwinReset statistics after displaying them.
1279b50d902SRodney W. Grimes.El
1289b50d902SRodney W. Grimes.Sh FILES
129906d8141SRuslan Ermilov.Bl -tag -width ".Pa /boot/kernel/kernel" -compact
1301063e126SJosef Karthauser.It Pa /boot/kernel/kernel
1319b50d902SRodney W. Grimesdefault kernel namelist
1329b50d902SRodney W. Grimes.It Pa /dev/kmem
1339b50d902SRodney W. Grimesdefault memory file
1349b50d902SRodney W. Grimes.El
1359b50d902SRodney W. Grimes.Sh SEE ALSO
1369b50d902SRodney W. Grimes.Xr fstat 1 ,
1379b50d902SRodney W. Grimes.Xr netstat 1 ,
1389b50d902SRodney W. Grimes.Xr ps 1 ,
1399b50d902SRodney W. Grimes.Xr systat 1 ,
14007e532e7SGarrett Wollman.Xr sysctl 3 ,
1419b50d902SRodney W. Grimes.Xr iostat 8 ,
142bcdaa850SRick Macklem.Xr nfsdumpstate 8 ,
1439b50d902SRodney W. Grimes.Xr pstat 8 ,
144270d3d75SMike Pritchard.Xr vmstat 8
1459b50d902SRodney W. Grimes.Sh HISTORY
1469b50d902SRodney W. GrimesThe
14793e0d62dSJohn-Mark Gurney.Nm
14893e0d62dSJohn-Mark Gurneycommand appeared in
1499b50d902SRodney W. Grimes.Bx 4.4 .
150