1. Create SWAP file1. Create SWAP file

dd if=/dev/zero of=/opt/.swap bs=1024k count=20 (count is what SWAP size you need, MB)
mkswap /opt/.swap

2. Active SWAP

swapon /opt/.swap

3. Check

free

4. Disable SWAP, wipe SWAP file. if you just swapoff SWAP not delete SWAP file, SWAP will reactive when next restart.

swapoff /opt/.swap`
`rm /opt/.swap