Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 5 May 2005 12:55:56 -0700
From:      Kris Kennaway <kris@obsecurity.org>
To:        Jacob S <stormspotter@6Texans.net>
Cc:        freebsd-questions <freebsd-questions@freebsd.org>
Subject:   Re: Running out of memory
Message-ID:  <20050505195556.GB85210@xor.obsecurity.org>
In-Reply-To: <20050505095927.26da64e9@jacob.6texans.net>
References:  <20050505095927.26da64e9@jacob.6texans.net>

next in thread | previous in thread | raw e-mail | index | archive | help

--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050505195556.GB85210>