I would like to tweak some settings on my server to better use the resources I have.
The Linux server in question has 32gb RAM, running general Docker containers of the selfhosted variety, no AI, and 250gb SSD. Currently, the server has no swap with swappines set at 60.
Swap: 0 0
vm.swappiness = 60
Generally, only one app is being engaged at a time and everything seems to respond fairly well.
So, my question is, what would be a good swapsize and swappiness level for this server? I realize that all of this is dependent on how the server is used and load level during operation. Is there a rule of thumb to go by. I’m sure there will be some tweaking involved, but I was looking for a good point to deviate from. Where do you guys set swap and swappiness?
Thanks
Rule of thumb is leave it alone unless you have an actual problem you need to solve.
You’re probably not even using all your RAM, so there’s point in swapping to disk. It would only harm performance.