I have been reading a lot of articles about swap size. As far as I understand in old days the rule has been swap = x2 RAM as the machines had little memory at that time. Red Hat seems to recommend certain swap sizes based on RAM size. Also some sources explain that it is related to the hibernation but I can’t find info for suspending to RAM only.
My situation is:
I want to be able to suspend to RAM only
(not hibernation to disk) - I have 32GB RAM
For “suspend to RAM” it doesn’t matter, as this doesn’t use the swap at all. “suspend to disk” saves everything from RAM to the swap partition and therefore needs a large enough swap.
In general, how large your swap should be (or if you need one at all) mainly depends on your usage.
The more RAM you have, the less likely it is that you need swap at all though.
Personally I have “only” 2GiB RAM and 2 GiB swap here, so you probably can do without, or with just a small one.
Well… currently I have 2GB of swap but I can’t suspend, The screen goes black but stays on and the machine stays on. And I can’t wake it. I can only make a cold reset or power off manually which is obviously not clean. I thought it might be because of the too small swap but I am starting to question that. This is the third re-install I am fighting it.
The present title of your thread does not cover at all what seems to be your real problem. To draw the attention of the people you need, it might be better to start a new thread which a title that contains the key-words to your problem.