From owner-freebsd-questions@FreeBSD.ORG Thu May 5 19:55:58 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3356E16A4CE for ; Thu, 5 May 2005 19:55:58 +0000 (GMT) Received: from obsecurity.dyndns.org (CPE0050040655c8-CM00111ae02aac.cpe.net.cable.rogers.com [69.194.102.111]) by mx1.FreeBSD.org (Postfix) with ESMTP id E8E3D43D80 for ; Thu, 5 May 2005 19:55:57 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 03D415152F; Thu, 5 May 2005 12:55:56 -0700 (PDT) Date: Thu, 5 May 2005 12:55:56 -0700 From: Kris Kennaway To: Jacob S Message-ID: <20050505195556.GB85210@xor.obsecurity.org> References: <20050505095927.26da64e9@jacob.6texans.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="GRPZ8SYKNexpdSJ7" Content-Disposition: inline In-Reply-To: <20050505095927.26da64e9@jacob.6texans.net> User-Agent: Mutt/1.4.2.1i cc: freebsd-questions Subject: Re: Running out of memory X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 May 2005 19:55:58 -0000 --GRPZ8SYKNexpdSJ7 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, May 05, 2005 at 09:59:27AM -0500, Jacob S wrote: > I've got a server that keeps running out of memory and crashing. It has > 1GB of swap and 1GB of ram. I originally made the swap the same size as > the ram, as my previous experience with *nix machines was that when swap > is double the size of ram, the computer is almost totally unuseable for > at least 30 minutes whenever the computer needs to clean out swap.=20 FreeBSD doesn't ever "clean out swap", so I have no idea what you mean by this. > Also, I made the mistake of partitioning all the space on the hard > drive, with only 1GB set aside for swap. How big of a performance hit > would it be to use a swap file instead of a swap partition? There is a performance hit, but you have to remember that if your machine is swapping heavily *at all* it means you're overloading it and performance will be in the toilet. Kris --GRPZ8SYKNexpdSJ7 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (FreeBSD) iD8DBQFCenpMWry0BWjoQKURAnR6AKCRvqCiiBB6KJMmye5UeR5wOVFQ2wCfUJhP fcXtS4Rj0rxkEuRAVJXe5ko= =dM77 -----END PGP SIGNATURE----- --GRPZ8SYKNexpdSJ7--