Hello eric,

Tuesday, April 24, 2007, 1:29:32 AM, you wrote:

ek> On Apr 20, 2007, at 7:54 AM, Robert Milkowski wrote:

>> Hello eric,
>>
>> Friday, April 20, 2007, 4:01:46 PM, you wrote:
>>
>> ek> On Apr 18, 2007, at 9:33 PM, Robert Milkowski wrote:
>>
>>>> Hello Robert,
>>>>
>>>> Thursday, April 19, 2007, 1:57:38 AM, you wrote:
>>>>
>>>> RM> Hello nfs-discuss,
>>>>
>>>> RM>   Does anyone have a dtrace script (or any other means) to
>>>> track which
>>>> RM>   files are open/read/write (ops and bytes) by nfsd? To make
>>>> things
>>>> RM>   little bit harder lets assume that local storage in on zfs,  
>>>> nfsd
>>>> RM>   server using nfsv3 and system is S10U3.
>>>>
>>>> RM>   The script would distinguish between cache read and disk read.
>>>>
>>>> RM>   So something like:
>>>>
>>>> RM>   ./nfsd_file.d
>>>>
>>>> RM>   CLIENT_IP   OPERATION   BYTES   TYPE       FILE
>>>> RM>   X.X.X.X       READ3     32768   logical    /nfs/d1000/fileA
>>>>
>>>> RM>   ...
>>>>
>>>>
>>>>
>>>> RM>   and something like:
>>>>
>>>> RM>   ./nfsd_file_summ.d 100s
>>>>
>>>> RM>   CLIENT_IP   OPERATION   OPS    BYTES   TYPE       FILE
>>>> RM>   X.X.X.X       READ3     230     5MB    logical    /nfs/d1000/
>>>> fileA
>>>> RM>   X.X.X.X       READ3      15     1MB    physical   /nfs/d1000/
>>>> fileA
>>>>
>>>> RM>   ...
>>>>
>>>> RM>
>>>> RM>
>>>> RM>
>>>>
>>>>
>>>> Looks like vopstat and rfileio from DTrace toolkit is what I'm  
>>>> looking
>>>> for (with some modifications)
>>>>
>>
>> ek> very cool, would you mind posting your dscript when you get it  
>> working?
>>
>> ek> eric
>>
>> Those scripts are from DTraceToolkit!
>> I've just make some simple modifications like parameterized frequency,
>> total summary, ...

ek> Ah yes, its the little modifications i was particularly interested  
ek> in. :)

I'll post it later - due to other problems I haven't been on this for a
moment...

ek> Have you tried mixing the fsinfo probes with the dscript i wrote  
ek> awhile back to retrieve the IPv4/IPv6 address (http://blogs.sun.com/ 
ek> erickustarz/entry/dscript_to_retrieve_active_nfs)?

I've been using your script and I was thinking about exactly the same
thing.


-- 
Best regards,
 Robert                            mailto:[EMAIL PROTECTED]
                                       http://milek.blogspot.com

_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to