3 ms·
Interesting; Jeff Atwood of Coding Horror/Stackoverflow/Discourse forces swap creation as part of the installation of Discourse as a Docker container. He prefe
by voidmain0001 9y ago
Interesting; Jeff Atwood of Coding Horror/Stackoverflow/Discourse forces swap creation as part of the installation of Discourse as a Docker container. He prefers slow performance to OOM. https://meta.discourse.org/t/create-a-swapfile-for-your-linux-server/13880 https://meta.discourse.org/t/create-a-swapfile-for-your-linu...
- warrenm 9y agoPretty 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.