-7

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.

Jose Vasquez
  • 17
  • 1
  • 1
  • 2
  • possible duplicate of [Can you help me with my capacity planning?](http://serverfault.com/questions/384686/can-you-help-me-with-my-capacity-planning) – Hauke Laging Jun 06 '13 at 20:58

1 Answers1

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.

EEAA
  • 108,414
  • 18
  • 172
  • 242
  • 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 06 '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 07 '13 at 02:30