Keeping a 1 GB VPS responsive
I run small things on the cheapest tier: one shared vCPU and a gigabyte of memory.
fallocate -l 512M /swapfile
chmod 600 /swapfile && mkswap /swapfile && swapon /swapfileA small swap file turns a hard kill into a slow morning I can notice.