----- Original Message -----
On Mon, Nov 10, 2014 at 4:08 AM, Martín Marqués martin@2ndquadrant.com wrote:
- I had trouble getting the system to hibernate. There wasn't
anything clear about the fact that you needed to have a swap bigger than the amount of memory you have. Also, it doesn't work if you have a file as swap (which was the easiest way to start testing)
I don't think swap size has to be bigger than size of RAM. Arch Linux has a good note on size of swap partition [1] which links to kernel documentation[2]. I used to make 4GB of swap partition on a system with 8GB of RAM on Arch Linux. Anaconda makes 7.6GB of swap partition on same machine.
Swap file does support hibernating. Again refer to Arch Linux wiki [3].
I have tried both of the above scenarios myself. I have switched to Fedora and I use btrfs filesystem, so, I can't provide any more info. I have Thinkpad T420i.
I actually tried the swap size around Fedora 7 and RHEL 5, an found out RAM * 1.2 is sufficient.
I have stuck which this configuration, and never have trouble since.