Depends on how much RAM you intend to use, and how much you need. For normal web browsing, I think probably enough swap space to make your total RAM + Swap amount up to 24GiB should do. If you have more than that and don’t run anything memory intensive, you can probably get away without any swap at all.
If you want the ability to hibernate though, you need at least the same amount of swap as physical RAM (since Linux will use the swap space as the location to “hibernate to”.
I think for an SSD it makes sense to use a swap file rather than a swap partition, since random access is basically free and you can resize it easily. That’s a minor thing though.
How much memory do you have? How much storage do you have? What will this computer be used for? Do you want to be able to hibernate?
Depends on how much RAM you intend to use, and how much you need. For normal web browsing, I think probably enough swap space to make your total RAM + Swap amount up to 24GiB should do. If you have more than that and don’t run anything memory intensive, you can probably get away without any swap at all.
If you want the ability to hibernate though, you need at least the same amount of swap as physical RAM (since Linux will use the swap space as the location to “hibernate to”.
I think for an SSD it makes sense to use a swap file rather than a swap partition, since random access is basically free and you can resize it easily. That’s a minor thing though.
How much memory do you have? How much storage do you have? What will this computer be used for? Do you want to be able to hibernate?