Unless you use suspend to disk, swap is not really needed. I don't believe you would load so many programs it would use all your 20GB of RAM. I have 8GB RAM and 2GB swap, no issues so far.
I don't even create a swap partition anymore, I create a small swap file (https://linuxize.com/post/how-to-add-swap-space-on-ubuntu-18-04/). This way, I can increase/decrease its size without having to mess with partitioning.
Mauro
http://mauro.limeiratem.com - registered Linux User: 294521
Scripture is both history, and a love letter from God.
Em qua, 27 de fev de 2019 às 12:12, Jason Shaw via talk <talk@gtalug.org> escreveu:
---On Wed, Feb 27, 2019 at 7:02 AM Gary via talk <talk@gtalug.org> wrote:
I have kubuntu 18.04 with 20 gigs ram. Does anyone know what the optimum
size swap area that I should have? Currently, my swap partition is 2
gigs. Can I increase that by creating a swap file in addition to the
swap partition?
/gary
Is swap size still as relevant as it was a decade ago? On a host with 20G RAM, I'd imagine the likelihood of hitting swap being much lower. Having a couple of G available just in case seems like a good idea, but I'm unsure if the old (Total RAM * 2)=swap equation still rings true.
*does some quick internet sleuthing*
According to this article: https://www.cyberciti.biz/tips/linux-swap-space.html RedHat basically says that for CentOS server 7, a minimum of 4G is recommended. The caveat to this is that if your system needs to hibernate/suspend-to-disk, in which case you'll want 1.5-2x RAM as swap in order to write in-use memory to disk.
-jason
Talk Mailing List
talk@gtalug.org
https://gtalug.org/mailman/listinfo/talk
--- Talk Mailing List talk@gtalug.org https://gtalug.org/mailman/listinfo/talk