hi Leon,

That does indeed look odd. The kstat is incremented *before* we send the 
request, so it's hard to see how you can see it in a snoop, and not in 
the nfsstat output.

What version of Solaris is the client running?

A dtrace script would indeed do it, too, of course. An FBT trace on e.g.

        fbt::nfs3readdirplus:entry

        fbt::nfs3readdir:entry

will catch the two types of READDIR.

If neither probe fires, that would indicate an error before the call is 
even made, but then you wouldn't be seeing it in a snoop.

It would be interesting to know whether dtrace shows activity when 
nfsstat doesn't.

fsstat(1M) is the other useful tool in this area, generally, but it 
won't differentiate between the 2 NFSv3 procedures, and will only show 
"rddir", as it operates at a much higher level (the vnode ops interface).

However, a simple "fsstat -F" would show you all rddir ops, split out by 
NFS version, and that might be useful, as an extra data point, so please 
try that too.

cheers,
c.

> It may be a FA Question... I am running a program that is doing a lot of 
> readdir operations on an NFS-mounted directory. When I am running
> [b]snoop NFS-client NFS-server rpc nfs[/b], I see a lot of
>        cl -> srv      NFS C READDIRPLUS3 
>      srv -> cl        NFS R READDIRPLUS3 
>        cl -> srv      NFS C ACCESS3 
>      srv -> cl        NFS R ACCESS3 
>        cl -> srv      NFS C GETATTR3 
>      srv -> cl        NFS R GETATTR3 
> but when I am running
> [b]nfsstat -c[/b], I am getting 0% READDIRPLUS operations :
> null        getattr     setattr     lookup      access      readlink
> 0 0%        634 34%     0 0%        3 0%        598 32%     0 0%
> read        write       create      mkdir       symlink     mknod
> 0 0%        0 0%        0 0%        0 0%        0 0%        0 0%
> remove      rmdir       rename      link        readdir     readdirplus
> 0 0%        0 0%        0 0%        0 0%        0 0%        0 0%
> fsstat      fsinfo      pathconf    commit
> 0 0%        0 0%        0 0%        0 0%
> 
> What am I doing wrong? Or there is a problem with nfsstat ?
> Is there a better way to see the percentage of NFS operations (dtrace script, 
> for example) ?
> 
> TIA,
> [i]-- leon[/i]
>  
>  
> This message posted from opensolaris.org
> _______________________________________________
> nfs-discuss mailing list
> nfs-discuss at opensolaris.org


-- 

Calum Mackay

Sun Microsystems Ltd.                    tel:         +44 1252 420749
Minley Road, Blackwater                  mobile:      +44 7711 115747
Camberley, GU17 9QG. ENGLAND             email:  calum.mackay at sun.com

Reply via email to