For practical reasons I picked the swap file over the partition.
This was my terminal
~ sudo dd if=/dev/zero of=/swapfile bs=1M count=8192 status=progress ✔ 27s
[sudo] password for mana:
8436842496 bytes (8.4 GB, 7.9 GiB) copied, 25 s, 337 MB/s
8192+0 records in
8192+0 records out
8589934592 bytes (8.6 GB, 8.0 GiB) copied, 25.5191 s, 337 MB/s
~ sudo chmod 600 /swapfile ✔ 29s
~ sudo mkswap /swapfile ✔
Setting up swapspace version 1, size = 8 GiB (8589930496 bytes)
no label, UUID=5f5aa458-0293-4d6a-b226-315921d22692
~ sudo mkswap /swapfile ✔
mkswap: /swapfile: warning: wiping old swap signature.
Setting up swapspace version 1, size = 8 GiB (8589930496 bytes)
no label, UUID=c7eb79c5-52c0-4650-a312-d9059367bb09
~ sudo mkswap /swapfilesudo bash -c "echo /swapfile none swap defaults 0 0 >> /etc/fstab" ✔
~ sudo bash -c "echo /swapfile none swap defaults 0 0 >> /etc/fstab"
Did I do it right? can I check if its working any way?