Swap

From ZhoubaWiki
Jump to navigation Jump to search

set up or add swap storage

swapoff /swapfile
free -m
rm /swapfile
dd if=/dev/zero of=/swapfile bs=1G count=32
chmod 600 /swapfile
mkswap /swapfile
swapon /swapfile
swapon -s
echo '/swapfile   none    swap    sw    0   0' >> /etc/fstab