dd if=/dev/zero of=/swap bs=512k count=1024
mkswap /swap
chmod 0600 /swap
swapon /swap
you will also have to add this line to /etc/fstab
/swap swap swap defaults 0 0
You can run free -m to find the swap space used in megabytes before and after the allocation of swap space.
No comments:
Post a Comment