Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Am I having too much swap space if my server is a 8GB physical ram and I would like to set my swap to 16GB. I am planning to use this server for shared hosting would like know.

share|improve this question

closed as primarily opinion-based by Michael Hampton Jun 28 '13 at 8:02

Many good questions generate some degree of opinion based on expert experience, but answers to this question will tend to be almost entirely based on opinions, rather than facts, references, or specific expertise.If this question can be reworded to fit the rules in the help center, please edit the question.

    
possible duplicate of Can you help me with my capacity planning? –  Hauke Laging Jun 6 '13 at 20:58

1 Answer 1

Best practices say you should have some swap, but if you're using a lot of swap, it's highly likely that you have under-provisioned RAM on your system. I tend to never devote more than 2GB of swap to a system, regardless of the amount of physical RAM available.

share|improve this answer
    
The downside to this in the Windows world (yeah the question is linux based) is that a full memory dump isn't possible if you do this. –  TheCleaner Jun 6 '13 at 21:52
    
@TheCleaner The same is (generally) true in the Unix world as well -- crash dumps are written to swap if the system panics. Of course if you're having kernel panics you've probably got bigger problems than how big your swap partition is... –  voretaq7 Jun 7 '13 at 2:30

Not the answer you're looking for? Browse other questions tagged or ask your own question.