On Sat, Jul 5, 2008 at 9:48 PM, Brian Hechinger <[EMAIL PROTECTED]> wrote:
> On Sat, Jul 05, 2008 at 03:03:34PM -0500, Mike Gerdts wrote:
>> $ 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

This was on a virtual machine with a 12 GB zpool (one virtual disk)
that had been up for a few days (but suspended most of the time).  My
guess is that most of the activity my zpool was seeing was from the
swap device.

> # kstat -p ::vopstats_zfs:{nread,read_bytes,nwrite,write_bytes}
> #
>
> uhm, but:
>
> kstat -p ::vopstats_zfs
> [snip]
> unix:0:vopstats_zfs:nwrite      24201307

24 million write operations.

> unix:0:vopstats_zfs:read_bytes  1557032944566

$ perl -e 'print (1557032944566 >> 30)'
1450

Looks like you've read about 1.4 TB since boot.

> unix:0:vopstats_zfs:readdir_bytes       1292670000

1.2 GB of readdir activity.  Lots of files?  Is someone doing find or
du through the area with lots of files?

> unix:0:vopstats_zfs:snaptime    3281423.01228961
> unix:0:vopstats_zfs:write_bytes 222641182203

$ perl -e 'print (222641182203 >> 30)'
207

207 MB of writes.

$ perl -e 'print 222641182203 / 24201307'
9199.55199952631

Average write size was a bit over 9 KB.

>
> what gives? This is:
>
> SunOS wiggum.4amlunch.net 5.11 snv_81 i86pc i386 i86pc

Do the numbers seem unreasonable for the size of the pool, the uptime
of the system, etc.?  Remember my comments earlier about how you can
now see the reads (and readdirs) that came from cache and didn't do
physical I/O.

-- 
Mike Gerdts
http://mgerdts.blogspot.com/
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to