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
[-- Attachment #1 --] On 08/06/2012 17:06, Volodymyr Kostyrko wrote: > Hi all. > > 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). [-- Attachment #2 --] -----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-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?jr4ges$5uf$1>
