Home / Linux Admin /

Create Swapfile

Note that this all requires superuser priveleges.

  1. Allocate filespace
  2. Set permissions
  3. set as swap
  4. Enable swap
  5. Make permanent
  6. confirm it's working (doesn't hurt to do this after a reboot to confirm it's persistent)

Swappiness

  1. Check the current swappiness value:
  2. Modify the swappiness level