Just as a reminder, there was a recent issue with kernel 5.7.2 not recognizing swapfiles (it will correctly recognize a swap partition). There is a patch forthcoming, but it has not reached mainline yet. (There is another thread on this issue.)
Suggestion: drop to the current LTS kernel and see if your swapfile is recognized.
Not sure if this is related, but a thought …
Edit: there were reports that swapfiles created with dd work okay with the 5.7.2 kernel; however, those created with fallocate failed. That may also be a possible avenue for resolution.
@Philo-Phineas
I just read that there is a problem with fallocate sometimes and it is better to use the dd command to create the swap file. Maybe that is the issue. Do you know how to create a swap file using dd?
If you want to remove the swap file you have created and start over. You can use dd to create it. Same procedures but just using dd instead of fallocate.
My laptop having 3 GB RAM. Is it sufficient?. If not how to make swap file. Is it possible to create Swap file in EOS partition ?. I need simple step by step instruction.