Adding swap on VPS


Can I add swap to my VPS?
It didnt come with swap partition, So I am wondering if I can create it from this manual:
or should I create it via Webmin?
or it doesnt matter?


If you’re using Ubuntu with Digital Ocean as a provider, the documentation you linked to would work perfectly, that’s how I’d go about adding swap space.