In general

  • SWAP should be approx the same as RAM
  • vm.swappiness could be 10 if you have a lot of RAM, but likely higher if you have less RAM


You need to worry about RAM if you get Out of memory errors:

journalctl -k | grep -i 'Out of memory'

Related links

  • https://www.linuxatemyram.com/
  • https://www.virtualmin.com/docs/system-optimization/low-memory/#debugging-memory-usage




The original document is available at https://wikisuite.org/SWAP