On 01/08/2020 10:22 PM, Lew Wolfgang wrote:
Hi Folks,
Back in the old daze we used to allocate swap space three times as large as the installed RAM as a rule of thumb. But I've got two new servers with 512-GB of ECC RAM and now I'm wondering, How Much Swap?
The motherboard has two-each 1-TB NVMe M.2 PCIe modules, it's tempting to use one for the operating system and the second for swap. Data will be stored on hardware RAID6 arrays and so aren't a part of this calculation.
Any thoughts? 1-TB of swap on one M.2 for .5-TB of RAM?
Regards, Lew
After RAM passed the 2G mark, I just stayed with a 2G swap no matter how much RAM I have. I'm sure there are use scenarios where more swap makes sense, but on my 8G laptop, I suspend just fine with a 2G swap. If you have a server, then suspend isn't a concern for swap size. I'd just look and see if you ever saturate your RAM, and if not, swap is pretty much superfluous. Like Anton, I set to minimize swap anyway in /etc/sysctl.conf with: vm.swappiness = 10 Good article: https://www.howtogeek.com/449691/what-is-swapiness-on-linux-and-how-to-chang... -- David C. Rankin, J.D.,P.E. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org