Results 1 to 15 of 15
  1. #1
    Join Date
    Aug 2005
    Location
    New Jersey
    Posts
    587

    Recommended Swap Space for CentOS 6.4 64bit with 24gb RAM?

    .

    Is 4gb plenty of space for swap in a CentOS 6.4 64bit system with 24gb RAM?

    The installer set swap at 12gb by default, but that seemed to be overkill.

    Is there any reason why I should keep it at the default 12gb? Or is 4gb more than enough?

    If it makes any difference, the server will be hosting HTML & PHP websites (several vBulletin forums). CP will be Interworx.

    Thanks in advance for any suggestions regarding this.
    For HTML Help visit: HTML Help Central
    For Graphic Design help visit: GFXVoid.com
    If you're a GEEK then go where geeks go....

  2. #2
    Join Date
    May 2012
    Location
    India
    Posts
    1,026
    you can keep the Swap at where it currently is. There isn't exact science how much the swap can be, but usual terminology is double the RAM, but since you have 24GB RAM you may not go that far.

  3. #3
    Join Date
    Aug 2000
    Location
    Sheffield, South Yorks
    Posts
    3,480
    Personally I'd set 2 or 4GB - if you're using either heavily you're probably screwed anyway and the server is going to be grinding and unresponsive.
    Karl Austin :: KDA Web Services Ltd.
    UK Business Hosting and Managed Servers - Hosting for Business Users :: 0800 5429 764
    Call us today and ask about our hosting solutions.

  4. #4
    Join Date
    Jul 2006
    Location
    Australia
    Posts
    3,059
    Quote Originally Posted by KDAWebServices View Post
    Personally I'd set 2 or 4GB - if you're using either heavily you're probably screwed anyway and the server is going to be grinding and unresponsive.
    I agree with the above
    cPanel, CloudLinux, Softaculous ℵ Off Site Backups, Redundant DNS

  5. #5
    Join Date
    Aug 2011
    Location
    Ottawa, Canada
    Posts
    144
    Quote Originally Posted by john2k View Post
    .

    Is 4gb plenty of space for swap in a CentOS 6.4 64bit system with 24gb RAM?

    The installer set swap at 12gb by default, but that seemed to be overkill.

    Is there any reason why I should keep it at the default 12gb? Or is 4gb more than enough?

    If it makes any difference, the server will be hosting HTML & PHP websites (several vBulletin forums). CP will be Interworx.

    Thanks in advance for any suggestions regarding this.
    I suggest you about 6 GB of swap
    I'm not a native English speaker and my writing and (even) understanding of the language is far, far away from fluent.

  6. #6
    Join Date
    Sep 2010
    Posts
    198

    Re: Recommended Swap Space for CentOS 6.4 64bit with 24gb RAM?

    Its a personal option. For me, 2gb is more than you need. 24gb of ram, you never will use swap.

  7. #7
    Join Date
    Aug 2000
    Location
    Sheffield, South Yorks
    Posts
    3,480
    Quote Originally Posted by HostFill View Post
    Its a personal option. For me, 2gb is more than you need. 24gb of ram, you never will use swap.
    Never say never We've got customers with 32GB plus that have dipped in to their 4GB swap before and it's saved them from crashing hard.
    Karl Austin :: KDA Web Services Ltd.
    UK Business Hosting and Managed Servers - Hosting for Business Users :: 0800 5429 764
    Call us today and ask about our hosting solutions.

  8. #8
    Join Date
    Mar 2003
    Location
    WebHostingTalk
    Posts
    16,967
    You do not need that high swap if you have more ram already.
    Specially 4 You
    .
    JoneSolutions.Com ( Jones.Solutions ) is on the net 24/7 providing stable and reliable web hosting solutions and services since 2001

  9. #9
    6gb plenty of space for swap in a CentOS 6.4 64bit system with 12gb RAM?

  10. #10
    4 to 6 GB should be sufficient for swap since you already have 24 GB RAM.
    || Web Hosting Blog - Web Hosting security & latest web hosting industry Announcements
    || Web Hosting Discussion - A Web Hosting community

  11. #11
    Join Date
    May 2013
    Location
    India
    Posts
    748
    I second 4-6GB suggestion...because if you ever use more than that of swap space, that is the time where you should look for memory upgrade!

  12. #12
    Join Date
    Mar 2003
    Location
    California USA
    Posts
    13,294
    2-4GB.
    You really want to avoid using swap at all, so I wouldn't go overboard with it.
    Steven Ciaburri | Industry's Best Server Management - Rack911.com
    Software Auditing - 400+ Vulnerabilities Found - Quote @ https://www.RACK911Labs.com
    Fully Managed Dedicated Servers (Las Vegas, New York City, & Amsterdam) (AS62710)
    FreeBSD & Linux Server Management, Security Auditing, Server Optimization, PCI Compliance

  13. #13
    Join Date
    Jun 2003
    Location
    Las Vegas, NV
    Posts
    842
    We install most of our dedi's with 2GB or 4GB of swap, irrespective of the amount of RAM they have. We find that's generally more than adequate, since most dedi's come with so much ram these days that dipping into swap is pretty rare.
    Rob Tyree
    Versaweb - DDoS Protected Cloud and Dedicated Server Hosting
    Fiberhub - SAS70 Type-II Colocation in Las Vegas and Seattle

  14. #14
    Join Date
    Mar 2002
    Location
    Philadelphia, PA
    Posts
    2,508
    I usually divide by 8 or so. On a system with 24GB, would most likely set 2-3GB.
    Linux junkie | steward.io

  15. #15
    Join Date
    Apr 2008
    Location
    United States, MI
    Posts
    766
    Largely depends on what you're doing.

    I've got some customers who run Oracle, JD Edwards, PeopleSoft and SAP who use 500+ GB of memory and require upwards of a TB of swap.

    SWAP doesn't always mean performance issues, depending on the application. Big ERP applications like those utilize SWAP properly to sleep on large datasets that are not in use. So there isn't a performance hit.
    Steven Crothers
    No BS cloud engineer and Red Hat architect.

Similar Threads

  1. Cpanel DNS-Only VPS with 512mb RAM. Use 32bit or 64bit CentOS?
    By mrzippy in forum Hosting Security and Technology
    Replies: 14
    Last Post: 10-24-2012, 08:44 AM
  2. Replies: 10
    Last Post: 08-13-2012, 10:10 AM
  3. centos 64bit can only get 4GB ram?
    By ttgt in forum Hosting Security and Technology
    Replies: 4
    Last Post: 12-17-2009, 08:23 PM
  4. recommended amount of swap space?
    By john2k in forum Hosting Security and Technology
    Replies: 12
    Last Post: 11-12-2005, 10:16 PM
  5. Centos 3.5 64bit vs Centos 4.1 64bit defferent results!
    By Soulwatcher1974 in forum Hosting Security and Technology
    Replies: 2
    Last Post: 09-05-2005, 11:12 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •