Bug 22034

Summary: [request] nfsstat(1) lacks useful features found in Solaris7
Product: Base System Reporter: stevedav <stevedav>
Component: binAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed Not Accepted    
Severity: Affects Only Me CC: gonzo
Priority: Normal    
Version: 4.1.1-RELEASE   
Hardware: Any   
OS: Any   

Description stevedav 2000-10-17 01:30:01 UTC
nfsstat on FreeBSD lacks the following useful options/features,
taken directly from the Solaris 7 man page:

     -m        Display statistics for each NFS mounted file  sys-
               tem.  This  includes  the server name and address,
               mount flags, current read  and  write  sizes,  the
               retransmission  count,  and  the  timers  used for
               dynamic retransmission. The  srtt  value  contains
               the  smoothed  round trip time, the dev value con-
               tains the estimated deviation, and the  cur  value
               is the current backed-off retransmission value.

Here are what the stats look like (this is sweet):
/m/t from ro:/
 Flags:   vers=2,proto=udp,sec=sys,hard,intr,dynamic,rsize=1024,wsize=1024,retrans=5
 Lookups:     srtt=1 (2ms), dev=1 (5ms), cur=0 (0ms)
 Reads:     srtt=7 (17ms), dev=3 (15ms), cur=2 (40ms)

/m/k from kahuna:/
 Flags:   vers=3,proto=tcp,sec=sys,hard,intr,link,symlink,acl,rsize=32768,wsize=32768,retrans=5


And:
     -z        Zero (reinitialize) statistics. This option is for
               use  by  the  super user only, and can be combined
               with any of the above options to  zero  particular
               sets of statistics after printing them.

The -z option helps diagnose NSF performance problems.
The only way to zero the nfs stats right now is to reboot.



It gets even better:

     -r        Display RPC information.

This is a minor improvement; it reduces the total info
to RPC data only.

Fix: 

Add options/feature(s) to the code.
How-To-Repeat: 1. Compare the FreeBSD and Solaris man pages for nfsstat.
2. Try to debug an NFS performance problem with FreeBSD, 
   then use Solaris.
Comment 1 Kris Kennaway freebsd_committer freebsd_triage 2003-07-13 10:40:16 UTC
State Changed
From-To: open->suspended

Suspended awaiting patch
Comment 2 Eitan Adler freebsd_committer freebsd_triage 2018-05-20 23:52:42 UTC
For bugs matching the following conditions:
- Status == In Progress
- Assignee == "bugs@FreeBSD.org"
- Last Modified Year <= 2017

Do
- Set Status to "Open"
Comment 3 Oleksandr Tymoshenko freebsd_committer freebsd_triage 2019-01-29 04:39:20 UTC
Closing this feature request as "Reject" since nobody picked it up to work on. Feel free to reopen if there are any plans to add it to the current version.