From owner-freebsd-current@FreeBSD.ORG Thu Jul 8 20:05:42 2010 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 A79AE106564A for ; Thu, 8 Jul 2010 20:05:42 +0000 (UTC) (envelope-from peterjeremy@acm.org) Received: from mail36.syd.optusnet.com.au (mail36.syd.optusnet.com.au [211.29.133.76]) by mx1.freebsd.org (Postfix) with ESMTP id 3495A8FC12 for ; Thu, 8 Jul 2010 20:05:41 +0000 (UTC) Received: from server.vk2pj.dyndns.org (c211-30-160-13.belrs4.nsw.optusnet.com.au [211.30.160.13]) by mail36.syd.optusnet.com.au (8.13.1/8.13.1) with ESMTP id o68K5d62021395 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 9 Jul 2010 06:05:40 +1000 X-Bogosity: Ham, spamicity=0.000000 Received: from server.vk2pj.dyndns.org (localhost.vk2pj.dyndns.org [127.0.0.1]) by server.vk2pj.dyndns.org (8.14.4/8.14.4) with ESMTP id o68K4lSC033910; Fri, 9 Jul 2010 06:04:48 +1000 (EST) (envelope-from peter@server.vk2pj.dyndns.org) Received: (from peter@localhost) by server.vk2pj.dyndns.org (8.14.4/8.14.4/Submit) id o68K4lGt033909; Fri, 9 Jul 2010 06:04:47 +1000 (EST) (envelope-from peter) Date: Fri, 9 Jul 2010 06:04:47 +1000 From: Peter Jeremy To: Martin Matuska Message-ID: <20100708200446.GA33822@server.vk2pj.dyndns.org> References: <4C31C71C.2010606@FreeBSD.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="u3/rZRmxL6MmkK24" Content-Disposition: inline In-Reply-To: <4C31C71C.2010606@FreeBSD.org> X-PGP-Key: http://members.optusnet.com.au/peterjeremy/pubkey.asc User-Agent: Mutt/1.5.20 (2009-06-14) Cc: freebsd-current@FreeBSD.org Subject: Re: [CFT] ZFS v15 patch (version 3) 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: Thu, 08 Jul 2010 20:05:42 -0000 --u3/rZRmxL6MmkK24 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2010-Jul-05 13:50:52 +0200, Martin Matuska wrote: >As ZFS v15 is already being used in the Solaris 10 enterprise world, we >can consider it well-tested. So we know if the ZFS in Solaris 10 includes any fixes that aren't publicly available? >Direct link to the patch: >http://people.freebsd.org/~mm/patches/zfs/v15/head-v15-v3.patch > >The patch applies cleanly against head and stable/8. In order to apply it to a two-week-old stable/8, I needed to: # mkdir cddl/contrib/opensolaris/lib/pyzfs # mkdir cddl/contrib/opensolaris/lib/pyzfs/common # mkdir cddl/contrib/opensolaris/cmd/pyzfs Other than verifying that it applies (with the above change), compiles and runs, I haven't attempted any stress tests yet. Looking at the patchset, the most critical issue (IMHO) that doesn't appear to have been addressed is the interaction between ZFS ARC and the VM cache used by UFS/NFS: arc_memory_throttle() is still making decisions solely on the amount of "free" memory, without considering "inactive" or "cache". I am running a slight variant of a patch by Artem Belevich (see http://pastebin.com/ZCkzkWcs) but he acknowledges that patch is incomplete (and I've managed to wedge one of my systems a couple of times whilst doing zfs send/recv). Without patching arc_memory_throttle(), a system behaves especially poorly if it uses ZFS with any of mmap(2), UFS or NFS client - in my case, ports/mail/mairix was almost guaranteed to wedge the system. This is the problem that the following hack is intended to work around: perl -e '$x =3D "x" x 1000000;' --=20 Peter Jeremy --u3/rZRmxL6MmkK24 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.15 (FreeBSD) iEYEARECAAYFAkw2L14ACgkQ/opHv/APuIfyEwCeMjTRbKEwLIUW9rI4X5JGyal2 BQYAmQH09CPzkKgF+1hv/JBHCAdYqZU1 =0PaB -----END PGP SIGNATURE----- --u3/rZRmxL6MmkK24--