4 ms·
I still don't follow the article's conclusion that you need 2x as much swap as physical memory. I generally go with physical memory + 100-200MB. That leaves eno
by pmjordan 18y ago
I still don't follow the article's conclusion that you need 2x as much swap as physical memory. I generally go with physical memory + 100-200MB. That leaves enough space to suspend to disk even if you use a bit of swap in normal operation; I've never had problems with that setup on systems that have enough RAM to be tolerably fast. If in doubt, buy more RAM - it's dirt cheap at the moment.
- briansmith 18y agoI agree that having a lot of RAM is a good idea. However, I also think you should make your swap space as large as possible--many times larger than RAM, if possible. Then, instead of having on-disk indexes, on-disk caches, and on-disk temporary files, have your applications cache everything in memory-resident data structures. The operating system will automatically swap stuff in and out as necessary. The better your operating system's VM, the better the performance will be. Save explicit disk usage for things that must be persistently stored like database tablespace files.