From owner-freebsd-current@FreeBSD.ORG Tue Apr 17 09:29:32 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 C738D16A404; Tue, 17 Apr 2007 09:29:32 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from cyrus.watson.org (cyrus.watson.org [209.31.154.42]) by mx1.freebsd.org (Postfix) with ESMTP id 89B6113C458; Tue, 17 Apr 2007 09:29:32 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from fledge.watson.org (fledge.watson.org [209.31.154.41]) by cyrus.watson.org (Postfix) with ESMTP id B5BC3479F5; Tue, 17 Apr 2007 05:29:31 -0400 (EDT) Date: Tue, 17 Apr 2007 10:29:31 +0100 (BST) From: Robert Watson X-X-Sender: robert@fledge.watson.org To: Maxim Sobolev In-Reply-To: <46241257.9050609@FreeBSD.org> Message-ID: <20070417102509.T84174@fledge.watson.org> References: <918096.41896.qm@web63712.mail.re1.yahoo.com> <46241257.9050609@FreeBSD.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: Thomas Sparrevohn , freebsd-current@FreeBSD.org, pjd@FreeBSD.org, Joerg t 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 09:29:32 -0000 On Mon, 16 Apr 2007, Maxim Sobolev wrote: > Joerg t wrote: >>> There is something weird - Just ran same test again to see whether it was >>> a fluke - it still take 1h12 - however I saw the oppersite of Joerg. The >>> "systat -vm" Freemem was permently on 2,2GB - this on a 4GB system that >>> normally shows a 1,2GB - or less after a buildworld. >> >>> hmm. Pawel are there tests that can help? >> >> also how can we determine the real memory consumption by zfs,arc and his >> vfs cache share ? >> >> how can we precisely instrument zfs ? > > 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