free -m mkdir -p /var/swapmemory cd /var/swapmemory #Here, 1M * 2000 ~= 2GB of swap memory dd if=/dev/zero of=swapfile bs=1M count=2000 mkswap swapfile swapon swapfile chmod 600 swapfile echo "/var/swapmemory/swapfile none swap sw 0 0" >> /etc/fstab #cat /proc/meminfo free -m
Add to favorites