From owner-freebsd-fs@FreeBSD.ORG Sat Sep 11 07:06:03 2010 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 A5025106564A; Sat, 11 Sep 2010 07:06:03 +0000 (UTC) (envelope-from jhellenthal@gmail.com) Received: from mail-iw0-f182.google.com (mail-iw0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id 51CB38FC15; Sat, 11 Sep 2010 07:06:03 +0000 (UTC) Received: by iwn34 with SMTP id 34so3414307iwn.13 for ; Sat, 11 Sep 2010 00:06:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :x-enigmail-version:content-type:content-transfer-encoding; bh=6LvB8Uitvu4+6uDl895s5Fb7JnHRgSphYFxHiWR7l/o=; b=QqfpVpvTeqyHzCc7brbbou2yQUIoTrqrhsX6/1W4pqWuXgV7S+A9fp0HjDrA5M1Zcd qwkmZID+bKIlPuU0Mdi0/0kB/cJg/NzRM9A7T8ksf0qCcnpXx1G2h0/LXGEvQejhjrU2 aX4wRuPfCtz2F6CoXBTK0+jE5837uiGw5WvtY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; b=UO5C+xZa+dCOb16sIQKZ7c/c6tR2aUQNoMsDxo/1jpIxqvNIz81Fyj8Hz5FN8QGxCL 8T9xKqjy3pgb3oUk99/z1xMDnnNH0b2mVb/YemXmUu85kbsjrFOBwyQ8vuBLSRfFJB2c Jn503iUggb6o59x+Up1DR/UZMkgZfcND/KK7s= Received: by 10.231.30.76 with SMTP id t12mr1987312ibc.161.1284188762765; Sat, 11 Sep 2010 00:06:02 -0700 (PDT) Received: from centel.dataix.local (adsl-99-181-137-20.dsl.klmzmi.sbcglobal.net [99.181.137.20]) by mx.google.com with ESMTPS id i6sm3237477iba.20.2010.09.11.00.05.59 (version=SSLv3 cipher=RC4-MD5); Sat, 11 Sep 2010 00:06:00 -0700 (PDT) Sender: "J. Hellenthal" Message-ID: <4C8B2A56.8080809@DataIX.net> Date: Sat, 11 Sep 2010 03:05:58 -0400 From: jhell User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.9.2.9) Gecko/20100908 Lightning/1.0b1 Thunderbird MIME-Version: 1.0 To: Pawel Jakub Dawidek References: <20100910073912.GC2007@garage.freebsd.pl> In-Reply-To: <20100910073912.GC2007@garage.freebsd.pl> X-Enigmail-Version: 1.1.2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-fs@freebsd.org Subject: Re: Swap on ZFS Volume still panics? X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Sep 2010 07:06:03 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 09/10/2010 03:39, Pawel Jakub Dawidek wrote: > On Wed, Sep 08, 2010 at 07:19:40PM +0300, App Deb wrote: >> Reading the wiki guides they mention the official way to add swap volumes on >> ZFS (set org.freebsd:swap=on etc..), >> >> So I thought that it should work now, But I just got a panic in 8.1-RELEASE >> after a heavy memory situation that touched swap for the first time. > > Swap on ZVOL is still not recommended. Where did you find information > that it now recommended? I can't find anything about swap on > http://wiki.freebsd.org/ZFS and on > http://wiki.freebsd.org/ZFSQuickStartGuide there is a note that it is > not recommended. Let me know where it is advised and I'll remove it or > add a note (if the documentation is mine). > >> It is a hassle to add gmirror volumes for swap on full zfs systems, is there >> any workaround for this, or any news when a fix is coming or if it is >> coming? > > I've no plans to fix it, maybe with ZFSv28 it will be easier to fix, but > this is really low priority. If you use full ZFS system the recommended > layout is described here: > > http://blogs.freebsdish.org/pjd/2010/08/06/from-sysinstall-to-zfs-only-configuration/ > >> If the current code procudes guaranteed panics with zfs swap, I think that >> every mention of swap on zfs should be removed from the semi-official wiki >> guides. > > BTW. If this issue will be worked on in the future, it will be useful to > actually see your panic, backtrace and other debug info. To be honest, I > didn't expect it to panic, rather deadlock. Maybe panic is from deadlock > resolver? Hard to say without any debug info. > For reference I have been using swap on ZFS for a while. I recieve no panics when doing so and have the following properties set. exports/swap refreservation 2G local exports/swap primarycache none local exports/swap secondarycache none local exports/swap org.freebsd:swap on local As someone already mentioned, it might help to also change volblocksize property to 4k but I have never had to do that as changing the primary and secondary caches were enough to keep it from panic here. I would be interested to hear if this helped anyone else. Regards, - -- jhell,v -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEcBAEBAgAGBQJMiypWAAoJEJBXh4mJ2FR+OeYH/0jxC6aJlOHVKxL8UCeA+94s V3scx8jDH3ZiqoCno4FLgkzW41E1NUGlvZA4arLe76Fv2/QeU53ZyZD160WcRYax fhOyUQeHPJ2QecSnsmBJS2aJSvl9abdNYMyEhA1YxoApvBRcm7FEvAt3qY8Dj5uQ jJPN4zOxM6CGq6FUWEbAmmtpIKSi/TLNZqvpxN1GcJeyfyFJroswiEisWYq2rkEA MqXEe13DqVdjS0yysyMHsGNqfgpByDRQJ4M/nnGMPHyUlGdItFJR2B3htzVdeb88 69TnEw5rwiztNm/629jyBaDdynjwortP3Jw37Mij6SE/kHS/+kZ6dfCb7eZHPmA= =PAEM -----END PGP SIGNATURE-----