Wednesday, December 19, 2012

swap file

You can use file as swap space.

dd if=/dev/zero of=/var/swap bs=1M count=10240
mkswap swap
swapon /var/swap
chmod 0600 swap


Add this into /etc/fstab

/var/swap       swap    swap    defaults        0 0

0 comments:

Post a Comment