Advertisement
kromm77

Perfomance Tips

Nov 30th, 2021
35
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. # Create a swap file
  2.  
  3. sudo dd if=/dev/zero of=/swapfile bs=1024 count=1048576
  4.  
  5. sudo chmod 600 /swapfile
  6.  
  7. sudo mkswap /swapfile
  8.  
  9. sudo swapon /swapfile
  10.  
  11. vi /etc/fstab
  12. /swapfile swap swap defaults 0 0
  13.  
  14. ## check
  15. sudo swapon --show
  16. sudo free
  17.  
  18.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement