Bungledude well, we won't fucking agree, if you have swap on disk, first delete it
sudo swapoff -v /swapfile
sudo rm /swapfile
and new swap
sudo fallocate -l XG /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
sudo nano /etc/fstab
/swapfile none swap sw 0 0
cltr + x
y
enter
where X, how many GB of RAM do you want
sudo fallocate -l XG /swapfile