Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sudo swapoff /dev/dm-2
- sudo swapoff /swapfile
- sudo dd if=/dev/zero of=/swapfile bs=1M count=$1
- sudo mkswap /swapfile
- sudo chown root:root /swapfile
- sudo chmod 600 /swapfile
- sudo swapon /swapfile
- sudo sysctl vm.swappiness=40
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement