I’ve heard a lot of people say your swap should be 2x RAM… but do I really need 32GB of swap?
There’s people who make dumb arguments that go “but what if you run out of ram?” And then someone else says “I have enough ram” and then someone else goes “but what if you run out of ram?”
I have a small amount of swap, a few gigs, and enough memory for the application. Moreover I also have my swappiness set to 0 because I don’t want stuff swapped out of memory. If I need more memory I need more memory.
I’m one of those people.
I will leave you this: https://chrisdown.name/2018/01/02/in-defence-of-swap.html
This is a nice read from a kernel developer responsible for memory management.
@takeda
Thanks for sharing. Always good to learn more.
@sam @SJ_Zero @selfhosted
Hi there! Looks like you linked to a Lemmy community using an URL instead of its name, which doesn’t work well for people on different instances. Try fixing it like this: !selfhosted@lemmy.world
Moreover I also have my swappiness set to 0 because I don’t want stuff swapped out of memory. If I need more memory I need more memory.
I don’t think swappiness has worked that way for a while now.