1 recipe shared
Creates a 4G swap file, turns it on, and modifies settings so that the system prefers not to use swap unless absolutely necessary. See https://www.digitalocean.com/community/tutorials/how-to-add-sw...
sudo fallocate -l 4G /swapfile sudo chmod 600 /swapfile sudo mkswap /swapfile sudo swapon /swapfile