Increase size of swap without reinstalling OS. Add a new partition or create a swap file.
#dd if=/dev/zero of=/swapfile bs=1024 count=(1024MB * 1024)
#mkswap /swapfile
#swapon /swapfile
#vi /etc/fstab
Add following:
/swapfile swap swap defaults 0 0
Check swap size:
#free
#cat /proc/swap
#dd if=/dev/zero of=/swapfile bs=1024 count=(1024MB * 1024)
#mkswap /swapfile
#swapon /swapfile
#vi /etc/fstab
Add following:
/swapfile swap swap defaults 0 0
Check swap size:
#free
#cat /proc/swap
No comments:
Post a Comment