Crie um espaço de troca por:
sudo dd if=/dev/zero of=/tmp/swapfile bs=1M count=1024
(# bs*count = file size)
sudo mkswap /tmp/swapfile
sudo chmod 600 /tmp/swapfile
(# for security reasons)
sudo swapon /tmp/swapfile
free -h
Remover por:
swapoff /tmp/swapfile
rm -f /tmp/swapfile