[systemd-devel] systemd hibernator generator does not function on default Fedora install

Lennart Poettering lennart at poettering.net
Wed Apr 20 09:14:29 UTC 2016


On Tue, 19.04.16 22:47, Chris Murphy (lists at 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


More information about the systemd-devel mailing list