Friday, May 21, 2010

add a 12GB swap file

1. dd if=/dev/zero of=/swapfile bs=1024 count=12582912
2. mkswap /swapfile
3. swapon /swapfile

/etc/fstab:
/swapfile       none    swap    sw      0       0
or

/swapfile swap swap defaults 0 0


Labels: ,

0 Comments:

Post a Comment

<< Home