3 ms·
Swap doesn't make difference, just a parachute for your apps: give some work guaranties, but make things slower & eats resources of SSDs. I'm prefer add RAM as
by paulcarroty 7y ago
Swap doesn't make difference, just a parachute for your apps: give some work guaranties, but make things slower & eats resources of SSDs.
I'm prefer add RAM as much my tasks needs it.
- mnw21cam 7y agoWithout swap, your server could potentially become suddenly unresponsive, as memory pressure forces all your running code out. The system will still be thrashing, and even worse than it you did have swap. If you do have swap, then you get a slightly more graceful degradation, and hopefully a chance to fix the problem first. What you really want is to never have a severe out of memory situation, and you can do that either by getting enough RAM that you never use it all, or by killing stuff nice and early when memory starts getting low.
- paulcarroty 7y ago> Without swap, your server could potentially become suddenly unresponsive The server never be unresponsive 'cause lack of swap. Don't like the logic "we just add a swap and maybe it will be slower a bit, but still working".