linux에서 swap 메모리 생성하기
# ==============================================
# swap 생성
dd if=/dev/zero of=/var/swap bs=1M count=8192
chmod 0600 /var/swap
mkswap /var/swap
swapon /var/swap
swapon -s
# fstab 추가
/var/swap swap swap defaults 0 0
# ==============================================
# swap 제거
swapoff -v /var/swap
rm -f /var/swap
# fstab 삭제
/var/swap swap swap defaults 0 0