From owner-freebsd-current@FreeBSD.ORG Tue Apr 17 11:43:19 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 18AC016A400 for ; Tue, 17 Apr 2007 11:43:19 +0000 (UTC) (envelope-from garyj@jennejohn.org) Received: from mail08d.verio.de (mail08d.verio.de [213.198.107.30]) by mx1.freebsd.org (Postfix) with SMTP id 5E87313C483 for ; Tue, 17 Apr 2007 11:43:18 +0000 (UTC) (envelope-from garyj@jennejohn.org) Received: from mx53.stngva01.us.mxservers.net (204.202.242.79) by mail08d.verio.de (RS ver 1.0.95vs) with SMTP id 0-05680195 for ; Tue, 17 Apr 2007 13:43:17 +0200 (CEST) Received: from mmm808.verio.de [213.198.55.120] (EHLO mmm808.verio.de) by mx53.stngva01.us.mxservers.net (mxl_mta-1.3.8-10p4) with ESMTP id b9db4264.22756.339.mx53.stngva01.us.mxservers.net; Tue, 17 Apr 2007 08:29:15 -0400 (EDT) Received: (qmail 56825 invoked from network); 17 Apr 2007 11:43:14 -0000 Received: from unknown (HELO peedub.jennejohn.org) (89.59.18.30) by with SMTP; 17 Apr 2007 11:43:14 -0000 Received: from jennejohn.org (localhost [127.0.0.1]) by peedub.jennejohn.org (8.14.1/8.14.1) with ESMTP id l3HBhDZB008693; Tue, 17 Apr 2007 13:43:13 +0200 (CEST) (envelope-from garyj@jennejohn.org) Message-Id: <200704171143.l3HBhDZB008693@peedub.jennejohn.org> X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.0.4 To: Robert Watson In-Reply-To: Message from Robert Watson of "Tue, 17 Apr 2007 10:29:31 BST." <20070417102509.T84174@fledge.watson.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 17 Apr 2007 13:43:13 +0200 From: Gary Jennejohn X-Spam: [F=0.5061035047; heur=0.500(-19800); stat=0.496; spamtraq-heur=0.510(2007022501)] X-MAIL-FROM: X-SOURCE-IP: [213.198.55.120] X-SF-Loop: 1 Cc: Maxim Sobolev , 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 11:43:19 -0000 Robert Watson writes: > 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 name > s > consist solely of a number (i.e., "16", which is the 16-byte bucket). > Interestingly enough, I see less memory pressure since switching to ZFS. But I'm not using RAIDZ. Previously ``make buildworld'' would use much more memory, probably for buffer caching. It looks like ZFS doesn't use nearly as much buffer cache as UFS (which may not be a good thing). --- Gary Jennejohn / garyjATjennejohnDOTorg gjATfreebsdDOTorg garyjATdenxDOTde