Date: Tue, 11 Apr 2006 16:24:57 -0400 From: Kris Kennaway <kris@obsecurity.org> To: Daniel O'Connor <doconnor@gsoft.com.au> Cc: Michael Schuh <michael.schuh@gmail.com>, freebsd-stable@freebsd.org, Kris Kennaway <kris@obsecurity.org> Subject: Re: Maximum Swapsize Message-ID: <20060411202457.GA89949@xor.obsecurity.org> In-Reply-To: <200604111048.09905.doconnor@gsoft.com.au> References: <1dbad3150604100913hff9fc4dsb125ea541675f992@mail.gmail.com> <20060410161713.GA48094@xor.obsecurity.org> <200604111048.09905.doconnor@gsoft.com.au>
next in thread | previous in thread | raw e-mail | index | archive | help
--8t9RHnE3ZwKMSgU+ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Apr 11, 2006 at 10:48:08AM +0930, Daniel O'Connor wrote: > On Tuesday 11 April 2006 01:47, Kris Kennaway wrote: > > On Mon, Apr 10, 2006 at 06:13:07PM +0200, Michael Schuh wrote: > > > Hello @all, > > > > > > last weekend i have setted up an new Machine with > > > 6.1-Beta4. By Installation i have made an Swappartition > > > with the size of 4GB after install in runtime in top > > > it sseems to me that the maximum swap-size is > > > limitied to 2GB or better to INT_MAX ? > > > > It's limited to 16GB on i386 (or maybe 16GB per swap device, I > > forget). You need a patch if you want to use this much, to avoid > > deadlocks - but nothing limits it out of the box. >=20 > Of course if you actually use this much swap your machine will be incompa= rably=20 > slow.. If you are actually trying to use working set > physical RAM then yes. That's not the only case though. I use 32GB of swap as backing for md disks for package builds, since they are ephemeral and I don't care about the data persisting across reboots. It's a huge optimization to write to a md and never have the backing pages written out to disk, and less of a huge optimization if they are sometimes written out due to memory pressure, but still a net win. 32GB is needed since the swap backing store tends to fill up over time (unless you periodically destroy your md and recreate), since md doesn't throw away pages when files are removed. tmpfs will be the perfect solution once it's mpsafe. Kris --8t9RHnE3ZwKMSgU+ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (FreeBSD) iD8DBQFEPBCYWry0BWjoQKURAjIzAKDs4tUbEStx79wgsHto4c/A2KUINwCfcS53 q2Nog1YLBPPRmRFb8qhdAsE= =loan -----END PGP SIGNATURE----- --8t9RHnE3ZwKMSgU+--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060411202457.GA89949>