On Sat, Jul 05, 2008 at 03:03:34PM -0500, Mike Gerdts wrote: > > You can access the kstats directly to get the counter values.
First off, let me say that: kstat++ That's too cool. > $ kstat -p ::vopstats_zfs:{nread,read_bytes,nwrite,write_bytes} > unix:0:vopstats_zfs:nread 418787 > unix:0:vopstats_zfs:read_bytes 612076305 > unix:0:vopstats_zfs:nwrite 163544 > unix:0:vopstats_zfs:write_bytes 255725992 # kstat -p ::vopstats_zfs:{nread,read_bytes,nwrite,write_bytes} # uhm, but: kstat -p ::vopstats_zfs [snip] unix:0:vopstats_zfs:nwrite 24201307 unix:0:vopstats_zfs:read_bytes 1557032944566 unix:0:vopstats_zfs:readdir_bytes 1292670000 unix:0:vopstats_zfs:snaptime 3281423.01228961 unix:0:vopstats_zfs:write_bytes 222641182203 what gives? This is: SunOS wiggum.4amlunch.net 5.11 snv_81 i86pc i386 i86pc -brian _______________________________________________ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss