Running out of memory

Kris Kennaway kris at obsecurity.org
Thu May 5 12:55:58 PDT 2005


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. 

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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20050505/05d77ef6/attachment.bin


More information about the freebsd-questions mailing list