5 ms·
What is the rule for setting swap size, or can I use just swap file just like on win/mac? (I heard it will disable hibernation then)
by cztomsik 9y ago
What is the rule for setting swap size, or can I use just swap file just like on win/mac? (I heard it will disable hibernation then)
- warrenm 9y agoThe basic rule is `RAM + 2GB` I usually peak at 34GB, unless I have reason (like needing/wanting to enable full hibernation) to use 66GB, 130GB, etc.
- cztomsik 9y agowhat if if you increase your RAM after installing the system?
- LinuxBender 9y agoIt's a circular argument that people get into because they have the incorrect kernel settings. Even if you have 4TB of ram, someone will say to add more memory on disk. It just means the system is not configured correctly. I have 30k servers and not a single one of them has swap.
- warrenm 9y ago>I have 30k servers and not a single one of them has swap. Physical? VM? Cloud? I've never seen an environment with more than a couple carefully-tuned machines that didn't run swap on every last one
- LinuxBender 9y ago30k physical servers. 512GB to 1TB ram each.
- warrenm 9y ago>30k physical servers. 512GB to 1TB ram each. You running an AWS data center?
- LinuxBender 9y agoNot a public cloud. It does involve some private cloud visualization and containers.