Install swapspace by entering the following commands in the terminal:
sudo apt update sudo apt install swapspace
Description:
dynamic swap space manager
Small, stable system add-on that continuously and automatically adapts available virtual memory space to your actual memory needs. Claims disk space for use as swap space when needed; frees it up for use by the filesystem when not needed.
Homepage: http://pqxx.org/development/swapspace
Version: 1.10-4ubuntu4
Section: universe/admin