On Tue, 19.04.16 22:47, Chris Murphy (li...@colorremedies.com) wrote: > In some ancient bug or lkml I'd read a kernel maintainer say that the > hibernation image size isn't fixed, and might be less than RAM size > but could be a little more than RAM size, especially if some swap is > being used. So what should swap partition size be to support > hibernation? 1x RAM? 1.5x? 2x? Other?
Here's the heuristics code logind uses to check whether hibernation shall be considered available or not: https://github.com/systemd/systemd/blob/master/src/shared/sleep-config.c#L229 i.e. it checks that the RAM size is smaller than 0.98 times the currently unused swap space. Lennart -- Lennart Poettering, Red Hat _______________________________________________ systemd-devel mailing list systemd-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/systemd-devel