Last active
December 21, 2019 19:47
-
-
Save telnet2/42812836f70fc2cb09440c6e886e5ec4 to your computer and use it in GitHub Desktop.
How to change swap size in ubuntu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
free -h | |
sudo swapoff -a | |
sudo dd if=/dev/zero of=/swapfile bs=1G count=8 | |
sudo mkswap /swapfile | |
sudo swapon /swapfile | |
sudo chmod 0600 /swapfile | |
grep SwapTotal /proc/meminfo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment