|
|
|
|
|
by cuu508
4530 days ago
|
|
I prefer having swap disabled by default and hitting the wall hard when out of memory.
Some swap is nice on desktop systems where memory usage can vary a lot. On server, RAM usage should be relatively stable. Tune your stack, pick appropriate plan that leaves some RAM headroom, and be done with it. Ah, and add alerts for when memory usage goes over some threshold. |
|
If you hit the point when it thrashes because the working set isn't fitting in memory then that is obviously a bad place but there is a fair chance you can stay a host size smaller and save money by running some swap.
As for what the cold spots might be I can easily imagine libraries being included/required in an interpreted language and only small fractions of their functionality used. Unlike native libraries they won't just be memory mapped in without using real memory.