3 ms·
Pretty much all smart sysadmins want swap. The kernel expects it, and performance is almost always worse without it. https://news.ycombinator.com/item?id=1595
by warrenm 9y ago
Pretty much all smart sysadmins want swap.
The kernel expects it, and performance is almost always worse without it.
https://news.ycombinator.com/item?id=15952447 https://news.ycombinator.com/item?id=15952447
- AstralStorm 9y agoOnly slightly worse. Technically, kernel will sometimes swap out live executable code unless you set swappiness to 0. This makes performance completely unpredictable under load. Kernel does not "expect" things, the defaults are just heuristics not failing to malloc past amount of ram you have. This causes all of the mentioned behaviour. Apps allocating too big RSS for instance, deferring GC and heap compaction too late causing kernel to unload executable code. And once you really run out of RAM, even on fast SSD swap will kill any performance. Unless you're using only hugepages.