Do we need Swap for entry level vps?
by aboka from LinuxQuestions.org on (#557XS)
hi, am running Ubuntu 20.04 LTS on an entry level vps with 2Ghz vCpu & 1GB RAM. The question is - will adding Swap be a good idea if its running as a vpn server with Fail2ban?
below is the RAM statistic when all is running - with one vpn client connects. max concurrent vpn client will be 3
total used free shared buff/cache available
Mem: 962Mi 207Mi 175Mi 2.0Mi 579Mi 593Mi
Swap: 0B 0B 0B
if it is a good idea, should we go for Swap file or Swap partition?
p/s - heard that is not recommended to run Swap on SSD, but that only applies to older SSD right?
thank you,


below is the RAM statistic when all is running - with one vpn client connects. max concurrent vpn client will be 3
total used free shared buff/cache available
Mem: 962Mi 207Mi 175Mi 2.0Mi 579Mi 593Mi
Swap: 0B 0B 0B
if it is a good idea, should we go for Swap file or Swap partition?
p/s - heard that is not recommended to run Swap on SSD, but that only applies to older SSD right?
thank you,