Results 1 to 3 of 3

Thread: SWAP Memory Location

  1. #1
    Member
    Join Date
    Feb 2006
    Posts
    29

    Default SWAP Memory Location

    Hi,

    I see in the cPanel Installation guide, that my SWAP memory should be set at twice the GB the server has, so that would be 16*2 is 32GB. Currently it's set to 4.

    Where is the SWAP memory location so I can expand that just a bit?

    Thanks a lot!

  2. #2
    Member
    Join Date
    Mar 2008
    Posts
    264

    Default Re: SWAP Memory Location

    Yes and no. That rule goes back years from today where servers did not have so much RAM as today. If you server has 1 GB ram, yes the rule would almost apply but if your servers had 16 GB RAM its ridiculous to set 32 GB swap.

    You do not want a server swapping ever, and one thing is if the server is reading and writing 2 GB to a drive, another one is 32 GB. If you set up 32 of swap and your servers starts to swapping you will kill the servers drives. It will be so slow that you will crash processes.

    Any server that is swapping is already slow, if you want to expand swap I guess you are swapping already. A hard drive should be used as substitute for RAM, its just to slow, and swap is only there for a temporary swaps and in case of emergency, it should be a something for daily use.
    PingHosters - Expert hosting community for hosters - Soporte en Espaņol para cPanel y WHM

  3. #3
    Member
    Join Date
    Feb 2006
    Posts
    29

    Default Re: SWAP Memory Location

    So, let me ask this. For a dedicated server with <= 25 sites, would 4GB be just fine?

Similar Threads

  1. swap memory is not used on the server
    By its_joe in forum cPanel & WHM Discussions
    Replies: 3
    Last Post: 03-24-2007, 05:40 AM
  2. Swap memory set to zero?!
    By jez9999 in forum cPanel & WHM Discussions
    Replies: 1
    Last Post: 04-29-2006, 10:14 AM
  3. So much memory being used but no swap
    By ThunderHostingDotCom in forum cPanel & WHM Discussions
    Replies: 5
    Last Post: 03-24-2006, 01:38 AM
  4. Zero Memory Swap
    By Doctor in forum cPanel & WHM Discussions
    Replies: 1
    Last Post: 07-27-2004, 02:58 AM
  5. Memory and swap usage
    By claudius in forum cPanel & WHM Discussions
    Replies: 1
    Last Post: 04-21-2003, 01:48 PM

Tags for this Thread