Created
March 14, 2022 14:56
-
-
Save emmiedev/40207cab14e63c4d12484e4fa6640002 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 dd if=/dev/zero of=/swapfile bs=1024 count=4096000 | |
| sudo chmod 600 /swapfile | |
| sudo mkswap /swapfile | |
| sudo swapon /swapfile | |
| echo '/swapfile swap swap defaults 0 0' >> /etc/fstab | |
| sudo swapon --show | |
| sudo free -h | |
| sudo sysctl vm.swappiness=50 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment