Friday, November 13, 2009

Increase Swap Space Using Swap File

1. Using dd lets make a zero’d file for the swap

dd if=/dev/zero of=/swapfile bs=1048576 count=1000

2. Make file as a swapfile

mkswp /swapfile

3.Activate swapfile

swapon /swapfile

4. Verify that our swapfile has been activated

swapon -s

No comments: