From owner-freebsd-stable@FreeBSD.ORG Tue Apr 11 20:25:01 2006 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5A09716A401 for ; Tue, 11 Apr 2006 20:25:01 +0000 (UTC) (envelope-from kris@obsecurity.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3CF2243D72 for ; Tue, 11 Apr 2006 20:24:58 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (elvis.mu.org [192.203.228.196]) by elvis.mu.org (Postfix) with ESMTP id 234B91A4DFE; Tue, 11 Apr 2006 13:24:58 -0700 (PDT) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 6BF2751558; Tue, 11 Apr 2006 16:24:57 -0400 (EDT) Date: Tue, 11 Apr 2006 16:24:57 -0400 From: Kris Kennaway To: Daniel O'Connor Message-ID: <20060411202457.GA89949@xor.obsecurity.org> References: <1dbad3150604100913hff9fc4dsb125ea541675f992@mail.gmail.com> <20060410161713.GA48094@xor.obsecurity.org> <200604111048.09905.doconnor@gsoft.com.au> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="8t9RHnE3ZwKMSgU+" Content-Disposition: inline In-Reply-To: <200604111048.09905.doconnor@gsoft.com.au> User-Agent: Mutt/1.4.2.1i Cc: Michael Schuh , freebsd-stable@freebsd.org, Kris Kennaway Subject: Re: Maximum Swapsize X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Apr 2006 20:25:01 -0000 --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+--