
# install
sudo apt-get update
sudo apt-get install dphys-swapfile

# config
sudo nano /etc/dphys-swapfile 

# verify with 
free
top
# or htop

# swapping autostart
sudo systemctl enable dphys-swapfile
# autostart entfernen
sudo systemctl disable dphys-swapfile