I just recently increased my RAM, so I wanted to increase the swap size too. I know Elementary OS is based off Ubuntu, so I've been following Ubuntu information since there isn't much documentation for this stuff for Elementary OS specifically. I have 8GBs of ram now, and from what I understand, Ubuntu recommends that you allocate 11GBs of ram if you're planning on using hibernation, or 3GBs if you're not using hibernation. Is this true for Elementary OS too?
Anyways, I was following the following guide to increase the swap size:
But when I got to the part where we use the follocate command to increase the swap file size, I get the following error:
fallocate: fallocate failed: Invalid argument
I figured I'd allocate 11GBs of space just to be safe, so I was using the following command:
sudo fallocate -l 11G /dev/dm-2
Any ideas as to what I'm doing wrong here? Is 11GBs a good size for the swap for Elementary OS with 8GBs of RAM? Am I getting GiB mixed up with GB in the follocate command?
Thanks in advance.
swapon --show
. Swap can be a file or it can be a partition and that changes the steps you need to follow.