From owner-freebsd-current@FreeBSD.ORG Mon Feb 5 07:08:01 2007 Return-Path: X-Original-To: current@freebsd.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8AC4016A401 for ; Mon, 5 Feb 2007 07:08:00 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from turion.vk2pj.dyndns.org (c220-239-3-125.belrs4.nsw.optusnet.com.au [220.239.3.125]) by mx1.freebsd.org (Postfix) with ESMTP id 19C1913C481 for ; Mon, 5 Feb 2007 07:07:57 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from turion.vk2pj.dyndns.org (localhost.vk2pj.dyndns.org [127.0.0.1]) by turion.vk2pj.dyndns.org (8.13.8/8.13.8) with ESMTP id l1577ur4000970; Mon, 5 Feb 2007 18:07:56 +1100 (EST) (envelope-from peter@turion.vk2pj.dyndns.org) Received: (from peter@localhost) by turion.vk2pj.dyndns.org (8.13.8/8.13.8/Submit) id l1577tge000969; Mon, 5 Feb 2007 18:07:55 +1100 (EST) (envelope-from peter) Date: Mon, 5 Feb 2007 18:07:55 +1100 From: Peter Jeremy To: Aloha Guy Message-ID: <20070205070755.GA818@turion.vk2pj.dyndns.org> References: <20070204232439.2952.qmail@web53602.mail.yahoo.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="PEIAKu/WMn1b1Hv9" Content-Disposition: inline In-Reply-To: <20070204232439.2952.qmail@web53602.mail.yahoo.com> X-PGP-Key: http://members.optusnet.com.au/peterjeremy/pubkey.asc User-Agent: Mutt/1.5.13 (2006-08-11) Cc: questions@freebsd.org, current@freebsd.org Subject: Re: swap file vs swap partition X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Feb 2007 07:08:01 -0000 --PEIAKu/WMn1b1Hv9 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Please wrap your lines and don't top-post. On Sun, 2007-Feb-04 15:24:39 -0800, Aloha Guy wrote: What I actually >meant was, I know in the old days, if you had 128MB, you want a 256MB >swap but with 2GB RAM, isn't 4GB going to be overkill for a swap or >are you saying that a 2GB swap will work? I'm still lost on the >ratio since I thought the 2x was only if you had like small amounts >of RAM. 2:1 was a very old rule of thumb. A better approach is to consider your workload: Your working set needs to fit in RAM and the total virtual size needs to fit into RAM+swap. If you tend to leave lots of large processes lying around not doing anything, you might be able to usefully use much more swap than if you religiously kill processes that you aren't using - particularly if you don't have massive amounts of RAM. My desktop at work typically runs with swap utilisation about twice RAM (but it only has ~160MB RAM). Keep in mind that you can use multiple swap partitions so it can be useful to have an active swap on each disk. (The VM system stripes across available swaps). --=20 Peter Jeremy --PEIAKu/WMn1b1Hv9 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (FreeBSD) iD8DBQFFxtfL/opHv/APuIcRAjouAKCktxzjlKVzrRIGw2ts2vScGtRT8wCfRtY0 p0GhFoAy8LBmnfHFo38kSv8= =9RXL -----END PGP SIGNATURE----- --PEIAKu/WMn1b1Hv9--