Running out of memory

From: Jacob S (stormspotter_at_6Texans.net)
Date: 05/05/05

  • Next message: John Oxley: "TCP Header Rewrite"
    Date: Thu, 5 May 2005 09:59:27 -0500
    To: freebsd-questions <freebsd-questions@freebsd.org>
    
    

    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.

    Has anyone else seen this problem, or is it safe for me to add another
    GB of swap?

    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? Is there an
    easy (and safe!) way to resize partitions so that I could add in a
    second swap partition?

    TIA,
    Jacob
    _______________________________________________
    freebsd-questions@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-questions
    To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"


  • Next message: John Oxley: "TCP Header Rewrite"

    Relevant Pages

    • Re: Is my old RedHat computer doomed?
      ... Particularly if there are pages swapped out on the swap ... "Suspend" suspends to RAM - i.e., it leaves the contents of RAM as they ... to the swap partition and then shuts down. ...
      (uk.comp.os.linux)
    • Re: Newbie Question About Swap Partition
      ... My swap partition is set to approximately double the RAM ... Think of swap as 'emergency memory' which the system can ...
      (comp.os.linux.setup)
    • Re: excessive swap-in time
      ... Trying to do it all with RAM is just inefficient. ... I find that does not work well when the swapping is caused by excessive I/O ... Or you could have 5 TB of swap space. ...
      (comp.os.linux.development.system)
    • Re: Swap partition size (future proofing)
      ... > the HDD or using mkswap to create a swap file in an existing partition. ... > Suggested swap partition sizes from the archives range from the same size as ... > the RAM to twice the size of the RAM. ... you start actually using the swap space. ...
      (Fedora)
    • Re: Newbie Question About Swap Partition
      ... My swap partition is set to approximately double the RAM ... since it's faster than using the hard disk. ...
      (comp.os.linux.setup)