Created
April 24, 2018 19:00
-
-
Save UltimateByte/87daae0741f87ce654afee8b76c303fd to your computer and use it in GitHub Desktop.
Manage Linux swap
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
# Swap strengh (between 0-100) > Lowest value == less swap | |
sysctl vm.swappiness=X | |
# Permanently store this value | |
/etc/sysctl.conf | |
# Disable Swap | |
swapoff -a | |
# Enable Swap | |
swapon -a |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment