How To Add Swap Space on Ubuntu 18.04 | DigitalOcean
We can see if the system has any configured swap by typing:
sudo swapon --show
If you don’t get back any output, this means your system does not have swap space available currently.
https://www.digitalocean.com/community/tutorials/how-to-add-swap-space-on-ubuntu-18-04