From owner-freebsd-current@FreeBSD.ORG Wed Jan 9 05:46:00 2008 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2BA7D16A419; Wed, 9 Jan 2008 05:46:00 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.freebsd.org (Postfix) with ESMTP id BC6A813C45A; Wed, 9 Jan 2008 05:45:59 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.14.2/8.14.2) id m095jvVZ021560; Tue, 8 Jan 2008 23:45:57 -0600 (CST) (envelope-from dan) Date: Tue, 8 Jan 2008 23:45:57 -0600 From: Dan Nelson To: Ivan Voras Message-ID: <20080109054557.GB55800@dan.emsphone.com> References: <200801081758.m08HwlOg076161@lurza.secnetix.de> <861w8sp44p.fsf@ds4.des.no> <9bbcef730801081516g50775926ndb43b0a8a308dafc@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <9bbcef730801081516g50775926ndb43b0a8a308dafc@mail.gmail.com> X-OS: FreeBSD 7.0-PRERELEASE User-Agent: Mutt/1.5.17 (2007-11-01) Cc: Dag-Erling Smorgrav , freebsd-current@freebsd.org, pjd@freebsd.org Subject: Re: When will ZFS become stable? 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: Wed, 09 Jan 2008 05:46:00 -0000 In the last episode (Jan 09), Ivan Voras said: > On 08/01/2008, Dag-Erling Smorgrav wrote: > > Actually, it fails to mention the most important bit: > > vfs.zfs.arc_max, which allows you to restrict the amount of memory > > used by ZFS to something comfortably smaller than vm.kmem_size. > > Pawel, is it recommended? > > If it is, I'll add it to the page. With the vm_kern.c.2.patch, it doesn't seem to be an issue, at least for me. "c" always stays far away from "c_max": kstat.zfs.misc.arcstats.p: 218885440 kstat.zfs.misc.arcstats.c: 342346436 kstat.zfs.misc.arcstats.c_min: 20971520 kstat.zfs.misc.arcstats.c_max: 503316480 kstat.zfs.misc.arcstats.size: 342342144 vm.kmem_size: 671088640 hw.physmem: 1064771584 vm.kmem_map_panics_avoided: 171 The last sysctl was added by me to track how often the patch saved my system from a panic :) I suppose lowering arc_max would reduce the number of times the routine was called, though. -- Dan Nelson dnelson@allantgroup.com