Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Jun 2012 12:14:38 +0200
From:      Ivan Voras <ivoras@freebsd.org>
To:        freebsd-fs@freebsd.org
Subject:   Re: zfs and swap working?
Message-ID:  <jr4ges$5uf$1@dough.gmane.org>
In-Reply-To: <4FD214FB.3080507@gmail.com>
References:  <4FD214FB.3080507@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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--




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?jr4ges$5uf$1>