From owner-freebsd-current@FreeBSD.ORG Tue Apr 17 20:13:24 2007 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9AAE316A41B for ; Tue, 17 Apr 2007 20:13:24 +0000 (UTC) (envelope-from tjoerg@yahoo.com) Received: from n6.bullet.re3.yahoo.com (n6.bullet.re3.yahoo.com [68.142.237.91]) by mx1.freebsd.org (Postfix) with SMTP id 462B113C483 for ; Tue, 17 Apr 2007 20:13:24 +0000 (UTC) (envelope-from tjoerg@yahoo.com) Received: from [68.142.230.29] by n6.bullet.re3.yahoo.com with NNFMP; 17 Apr 2007 20:13:23 -0000 Received: from [66.196.101.131] by t2.bullet.re2.yahoo.com with NNFMP; 17 Apr 2007 20:13:23 -0000 Received: from [127.0.0.1] by rrr2.mail.re1.yahoo.com with NNFMP; 17 Apr 2007 20:13:23 -0000 Received: (qmail 766 invoked by uid 60001); 17 Apr 2007 20:13:23 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:Cc:MIME-Version:Content-Type:Message-ID; b=0gzs2eSHrY/PlBKuXi0JB9QK8n6Q2h0OU60YXQl9xOUCiKRXJR+ugq2jTXQBJ9Yp4JEf57arzPlCsR0M1xFCWSPSTQ7u60Ff6BbqSdi9A5dHZ8ig0yp/GtOVLaCJ0URaTYXX56ETeSdZ2Vn5qISiSrJVEVElLJ68FnIF4+3pyLY=; X-YMail-OSG: 8HPXL9cVM1ligxWKFSOgI5AnqH8YyHaPJX0ewKeXWhCQc1DyrKJ5OIavNShaEcwaarQRbLbpbqqJFXpjaHZV8fPJHLddECZQFFecz4s2kaLQYLDWtQyaywGcG84Sfh2t Received: from [201.58.251.2] by web63708.mail.re1.yahoo.com via HTTP; Tue, 17 Apr 2007 13:13:23 PDT X-Mailer: YahooMailRC/478 YahooMailWebService/0.7.41.10 Date: Tue, 17 Apr 2007 13:13:23 -0700 (PDT) From: Joerg t To: Robert Watson , Maxim Sobolev MIME-Version: 1.0 Content-Type: text/plain; charset=ascii Message-ID: <370896.724.qm@web63708.mail.re1.yahoo.com> Message-ID: <627853.32405.bm@rrr2.mail.re1.yahoo.com> X-Yahoo-Newman-Id: 627853.32405.bm@rrr2.mail.re1.yahoo.com X-Yahoo-Newman-Property: ymail-3 Cc: Thomas Sparrevohn , freebsd-current@FreeBSD.org, pjd@FreeBSD.org Subject: Re: Some comments on ZFS X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Apr 2007 20:13:24 -0000 >> 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