It seems all new scaleway servers are created without swap. For people, like me who want to use some, there is the easy way (ex. is for 8Go) :
sudo dd if=/dev/zero of=/swap bs=1024 count=8388608
sudo chmod 0600 /swap
sudo mkswap /swap
sudo swapon /swap
free -h
Add this line to your /etc/fstab file
:
/swap swap swap defaults 0 0
And you’re done…
Credits to https://community.scaleway.com/t/howto-add-swap-file/3239