Re: Some comments on ZFS

From: Joerg t <tjoerg_at_yahoo.com>
Date: Tue, 17 Apr 2007 13:13:23 -0700 (PDT)
>> The "vmstat -m" will give you precise breakdown of kernel memory usage.

> You'll also want to use "vmstat -z".  "-m" captures memory allocated by 
> kernel malloc(9), which is used for variable-sized objects, or objects that 
> are irregularly allocated.  "-z" captures memory allocated by the kernel zone 
> allocator, used for regularly sized and frequently allocated objects.  Small 
> allocations in malloc(9) are actually allocated via fixed size memory buckets 
> in the zone allocator, so if looking at "-m" as well, ignore zones who's names 
> consist solely of a number (i.e., "16", which is the 16-byte bucket).

> Robert N M Watson
> Computer Laboratory
> University of Cambridge

In the same P4 HT / 1GB box :

# zpool create tank
# zfs set atime=off tank
# zfs create tank/src
# zfs create tank/obj
# zfs set mountpoint=/usr/src tank/src
# zfs set mountpoint=/usr/obj tank/obj
# vmstat -m | grep solaris

solaris   581  2526K       -    13465  16,32,64,128,256,512,1024,2048,4096

# vmstat -z

arc_buf_hdr_t:            128,        0,       56,       64,      121,        0
arc_buf_t:                 20,        0,       54,      284,      157,        0
zil_lwb_cache:            176,        0,        0,        0,        0,        0
zfs_znode_cache:          236,        0,        3,       45,       13,        0

# cd /mnt; tar -cf - . | (cd /usr/src; tar -xvf -)

# vmstat -m | grep solaris

solaris 71293 68045K       -  3896726  16,32,64,128,256,512,1024,2048,4096

# vmstat -z

arc_buf_hdr_t:            128,        0,     5813,     4927,   117549,        0
arc_buf_t:                 20,        0,     5273,     4867,   117746,        0
zil_lwb_cache:            176,        0,        1,      109,      206,        0
zfs_znode_cache:          236,        0,    16616,     3896,    42226,        0


# cd /usr/src; make buildworld

# vmstat -m | grep solaris

solaris 117656 66398K    - 104447388 16,32,64,128,256,512,1024,2048,4096


# vmstat -z

arc_buf_hdr_t:            128,        0,     5172,     6018,   247834,        0
arc_buf_t:                 20,        0,     2051,     8089,   281300,        0
zil_lwb_cache:            176,        0,        2,      174,      686,        0
zfs_znode_cache:          236,        0,    33809,     1023,    87030,        0


thanks.









__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
Received on Tue Apr 17 2007 - 18:13:24 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:08 UTC