Q. Is there an easy way to get NFS stats with DTrace?

Posted by : Dr. Root | 21 November, 2006 | Published in

I love simplicity and in this instance, the answer is yes.

There's a DTrace NFSv3 statistics generator by Prefecth Tecchnologies, that does exactly that. It's a Perl script that will provide you with information similar to this:
$ nfsclientstats.pl
process read write readdir getattr setattr lookup access create remove rename mkdir rmdir
mkdir 0 0 0 380 0 190 0 0 0 0 190 0
mv 0 0 0 189 0 1890 2079 0 0 189 0 0
orca 3328 194 0 5496 6 6882 8246 12 0 0 0 0
rm 0 0 760 950 0 2850 5320 0 190 0 0 190
touch 0 0 0 378 189 1512 1323 189 0 0 0 0
[Source: Prefetch Technologies]
» Download nfsclientstats.pl

DTrace resources also available from Prefecth Technologies, include:

(0) Comments

Copyright 2005-2010, ask|dr.root, brought to you by Avnet Technology Solutions