According to Fedora, the size of Swap in Linux should be: 2x of RAM if RAM is less than 2 GB (i.e. 4GB of swap for 2GB of RAM) Size of RAM + 2 GB, if RAM size is more than 2 GB (i.e. 5GB of swap for 3GB of RAM)