Advertisement
Guest User

Untitled

a guest
Jul 16th, 2018
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. sudo swapoff /dev/dm-2
  2. sudo swapoff /swapfile
  3. sudo dd if=/dev/zero of=/swapfile bs=1M count=$1
  4. sudo mkswap /swapfile
  5. sudo chown root:root /swapfile
  6. sudo chmod 600 /swapfile
  7. sudo swapon /swapfile
  8. sudo sysctl vm.swappiness=40
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement