From owner-freebsd-fs@FreeBSD.ORG Sun Sep 12 21:14:16 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 04CE51065672; Sun, 12 Sep 2010 21:14:16 +0000 (UTC) (envelope-from appdebgr@gmail.com) Received: from mail-qw0-f54.google.com (mail-qw0-f54.google.com [209.85.216.54]) by mx1.freebsd.org (Postfix) with ESMTP id 9B9618FC08; Sun, 12 Sep 2010 21:14:15 +0000 (UTC) Received: by qwg5 with SMTP id 5so3261211qwg.13 for ; Sun, 12 Sep 2010 14:14:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=AQtfkqmLBIW5K4Sujr2NIytqQO5Yvugc84aTcDj8q2s=; b=xGOGG8+F0vDJ0/Z99itwRtTky5/hcIDEm/JNL6DLzb/3Frn9A1wjbdqptpv1IURU21 5Dy9xfdZkAMjDCCjK1vC3JXFN5vVzRVhkItl83D0b6KX/MWceRdJdDn2+DyTUkkJ20Ly fM5PKf42GUoe76tDWmc/QGbjay/tAKZSOqEF0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=DA8bLbIYcr/m1FJiAjKTpNF1pySnWOIbR/c12hGRtCeuA+SBkbYCp80D55L1bG4PsY JyXVZAdw5XwxJ0lwNx2K548GsfWJUz9p75XdWaM3/W81kZi4x2rHbGuleTBMX0zgH1r+ 5XMnblEteGgSF6KmJcmI5tnggYdLMYMHKaEN4= MIME-Version: 1.0 Received: by 10.224.66.163 with SMTP id n35mr809494qai.8.1284326054640; Sun, 12 Sep 2010 14:14:14 -0700 (PDT) Received: by 10.229.20.10 with HTTP; Sun, 12 Sep 2010 14:14:14 -0700 (PDT) In-Reply-To: <4C8B2A56.8080809@DataIX.net> References: <20100910073912.GC2007@garage.freebsd.pl> <4C8B2A56.8080809@DataIX.net> Date: Mon, 13 Sep 2010 00:14:14 +0300 Message-ID: From: App Deb To: jhell Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-fs@freebsd.org, Pawel Jakub Dawidek 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: Sun, 12 Sep 2010 21:14:16 -0000 I just tried your settings (setting primary and secondary cache to none). (also tried it with checksum=off and volblocksize=4k, all together) It somewhat helped. In the beginning I though it would deadlock. The system was inaccessible for ~10 minutes, but after that it managed to allocate the required swap, and the system resumed. I measured the speed that it allocated swap and it was only around ~0.4MB/s max. With the native freebsd-swap partition the speed using my "selfmade memory filling program" it almost reaches native disk speeds (~80MB/s). I still see a problem here. Thanks. On Sat, Sep 11, 2010 at 10:05 AM, jhell wrote: > -----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----- >