From owner-freebsd-fs@FreeBSD.ORG Mon Jun 11 10:15:09 2012 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 E9DBE106564A for ; Mon, 11 Jun 2012 10:15:09 +0000 (UTC) (envelope-from freebsd-fs@m.gmane.org) Received: from plane.gmane.org (plane.gmane.org [80.91.229.3]) by mx1.freebsd.org (Postfix) with ESMTP id 96BEA8FC16 for ; Mon, 11 Jun 2012 10:15:09 +0000 (UTC) Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Se1eK-00054P-2H for freebsd-fs@freebsd.org; Mon, 11 Jun 2012 12:15:04 +0200 Received: from lara.cc.fer.hr ([161.53.72.113]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 11 Jun 2012 12:15:04 +0200 Received: from ivoras by lara.cc.fer.hr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 11 Jun 2012 12:15:04 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-fs@freebsd.org From: Ivan Voras Date: Mon, 11 Jun 2012 12:14:38 +0200 Lines: 47 Message-ID: References: <4FD214FB.3080507@gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig5A93F991CDD5FF9F03D9EF9F" X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: lara.cc.fer.hr User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:10.0) Gecko/20120213 Thunderbird/10.0 In-Reply-To: <4FD214FB.3080507@gmail.com> X-Enigmail-Version: 1.3.5 Subject: Re: zfs and swap working? 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: Mon, 11 Jun 2012 10:15:10 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig5A93F991CDD5FF9F03D9EF9F Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 08/06/2012 17:06, Volodymyr Kostyrko wrote: > Hi all. >=20 > Didn't I miss anything? Someone has fixed swap to zfs vdevs? > This is just after surviving one night trying to rebuild lang/pypy > without enough memory. Everything works fine, swap data is also > compressed and cached on cache device. It has always worked for light, non-demanding loads. As you've also described in your post, ZFS may need to do a lot of operations between when it gets data and when it writes data to the drives (you mention compression and caching, but there's also RAID, checksumming, etc) and all these operations require ZFS to allocate memory. If memory is really scarce, you can get the situation where the system tries to free memory by swapping, only to have the swapper require more memory to perform the operation. Or at least this used to be the case. Quick Googling show that Solaris has documented that swapping to ZVOLs should work - I wonder how they get around these types of problems. It looks like they can also dump to ZVOls (http://docs.oracle.com/cd/E19963-01/html/821-1448/ggrln.html). --------------enig5A93F991CDD5FF9F03D9EF9F Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk/VxRwACgkQ/QjVBj3/HSxJvACdF/3jWb8sLjWY/UfC+BC23hqe +nkAn2eoJ3jS8C9B/HwdKxtETSFTwxy6 =hAyZ -----END PGP SIGNATURE----- --------------enig5A93F991CDD5FF9F03D9EF9F--