Increase the amount of SWAP memory

Create file that we will use for a SWAP memory with dd

dd if=/dev/zero of=/tmpswap bs=512 count=4000000
4000000+0 records in
4000000+0 records out
2048000000 bytes (2.0 GB) copied, 20.8952 seconds, 98.0 MB/s

mkswap /tmpswap
Setting up swapspace version 1, size = 2047995 kB

swapon /tmpswap

Leave a Reply