Last active
April 22, 2020 09:51
-
-
Save ishrakr/b9d143bec9fa0989d3b0b72b726e5d25 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
sudo fallocate -l 1G /swap | |
sudo chmod 600 /swap | |
sudo mkswap /swap | |
sudo swapon /swap | |
sudo nano /etc/fstab | |
/swapfile none swap sw 0 0 | |
sudo nano /etc/sysctl.conf | |
vm.swappiness = 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment