Skip to content

Instantly share code, notes, and snippets.

@kuczmama
Created October 3, 2019 05:37
Show Gist options
  • Save kuczmama/de1845efcfedd6e4e9464532dc00c419 to your computer and use it in GitHub Desktop.
Save kuczmama/de1845efcfedd6e4e9464532dc00c419 to your computer and use it in GitHub Desktop.
Increase swap space in ubuntu 18.04
sudo fallocate -l 16G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
echo '/swapfile none swap sw 0 0' | sudo tee -a /etc/fstab
sudo mount -a
swapon -s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment