Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Oct 2000 17:20:25 -0700 (PDT)
From:      stevedav@pacbell.net
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   bin/22034: nfsstat lacks useful features found in Solaris7
Message-ID:  <20001017002025.51B1C37B66D@hub.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         22034
>Category:       bin
>Synopsis:       nfsstat lacks useful features found in Solaris7
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          wish
>Submitter-Id:   current-users
>Arrival-Date:   Mon Oct 16 17:30:01 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Steve Davidson
>Release:        FreeBSD 4.1.1-RELEASE
>Organization:
>Environment:
FreeBSD 4.1.1-RELEASE
>Description:
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.
>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.
>Fix:
Add options/feature(s) to the code.

>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20001017002025.51B1C37B66D>