From owner-freebsd-fs@FreeBSD.ORG Sun Aug 3 20:59:24 2008 Return-Path: Delivered-To: freebsd-fs@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 878021065672; Sun, 3 Aug 2008 20:59:24 +0000 (UTC) (envelope-from hartzell@alerce.com) Received: from merlin.alerce.com (merlin.alerce.com [64.62.142.94]) by mx1.freebsd.org (Postfix) with ESMTP id 70E828FC08; Sun, 3 Aug 2008 20:59:24 +0000 (UTC) (envelope-from hartzell@alerce.com) Received: from merlin.alerce.com (localhost [127.0.0.1]) by merlin.alerce.com (Postfix) with ESMTP id BEFDA33C62; Sun, 3 Aug 2008 13:59:43 -0700 (PDT) Received: from merlin.alerce.com (localhost [127.0.0.1]) by merlin.alerce.com (Postfix) with ESMTP id 3E33F33C5B; Sun, 3 Aug 2008 13:59:43 -0700 (PDT) From: George Hartzell MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18582.7211.285531.190516@almost.alerce.com> Date: Sun, 3 Aug 2008 13:59:23 -0700 To: Pawel Jakub Dawidek In-Reply-To: <20080727125413.GG1345@garage.freebsd.pl> References: <20080727125413.GG1345@garage.freebsd.pl> X-Mailer: VM 7.19 under Emacs 22.1.50.1 X-Virus-Scanned: ClamAV using ClamSMTP Cc: freebsd-fs@FreeBSD.org, freebsd-current@FreeBSD.org Subject: Re: ZFS patches. X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: hartzell@alerce.com List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 Aug 2008 20:59:24 -0000 Pawel Jakub Dawidek writes: > Hi. > > http://people.freebsd.org/~pjd/patches/zfs_20080727.patch.bz2 > > The patch above contains the most recent ZFS version that could be found > in OpenSolaris as of today. Apart for large amount of new functionality, > I belive there are many stability (and also performance) improvements > compared to the version from the base system. > > Check out OpenSolaris website to find out the differences between base > system version and patch version. > > Please test, test, test. If I get enough positive feedback, I may be > able to squeeze it into 7.1-RELEASE, but this might be hard. > [...] Thanks Pawel! I have a version of -CURRENT from 7-29-08 running on an AMD 3800+ with 2GB of RAM and two Seagate ST3300622AS disks. This machine was previously running zfs filesystems using -STABLE. It uses a root on zfs configuration based on http://yds.coolrat.org/zfsboot.shtml I tested for stablilty by firing up a bunch of xterms on my desktop workstation, ssh'ing into the system and running a bunch of stuff in parallel. The list of stuff settled down to be: two while(1) loops that did "dd if=/dev/random of=FILENAME bs=1M count=1000" (w/ distinct filenames) then removed the file; rsyncing a large directory of mp3's from another local machine; make -j 4 buildworld; and several windows with top, systat -vmstat 1, etc.... With the -STABLE zfs I ended up with the following settings to achieve stability: vm.kmem_size="512M" vm.kmem_size_max="512M" vfs.zfs.arc_max="192M" I started off with no tuning, added the kmem_size{,_max} settings, then added the arc_max setting and tuned it down until it didn't wedge. With the experimental code on -CURRENT I needed the following settings: vm.kmem_size="512M" vm.kmem_size_max="512M" vfs.zfs.arc_max="128M" I don't know if I just got lucky with the larger arc_max under -STABLE or if something's changed. Otherwise the new code seems to be behaving nicely. g.