Crie ubuntu de swapfile
sudo swapon --show
Delightful Dunlin
sudo swapon --show
sudo dd if=/dev/zero of=/swapfile bs=1024 count=1048576
sudo fallocate -l 1G /swapfile
sudo mkswap /swapfile
/swapfile swap swap defaults 0 0
sudo nano /etc/fstab
sudo chmod 600 /swapfile