hi Matthew,

> I am looking at using dtrace to collect the avg, min, max time it
> takes to perform an NFS operation in NFSv4. Since I am on s10u3 I do
> not have the dtrace nfs4 provider. Any hints as to how to get this
> for the following NFSv4 OPS? On the server side there seems to be a
> rfs4_op_ function that does the server side, but I do not see
> anything on the client side.
> 
> PUTFH SAVEFH GETFH

NFSv4 ops cannot be sent over-the-wire as separate calls, but are 
instead bundled together into a single COMPOUND NFSv4 procedure call.

e.g. a VOP_OPEN call might result in as many as 10 NFSv4 ops being sent 
together in a single COMPOUND call.

It's possible, I suppose, for a single op to be sent in a COMPOUND, but 
our client is unlikely to do that, so it's not going to be easy doing 
what you want to do.

The client ops are defined in nfs4_vnops.c:

http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/uts/common/fs/nfs/nfs4_vnops.c

why do you need to collect this info? and have you looked at the fsstat 
tool?

best regards,
calum.


Reply via email to