Fedora reawakens the hibernation debate
Fedora reawakens the hibernation debate
Posted Oct 11, 2018 21:17 UTC (Thu) by mcortese (guest, #52099)In reply to: Fedora reawakens the hibernation debate by Cyberax
Parent article: Fedora reawakens the hibernation debate
Why? At any time the fs on disk can be non-clean while the vfs has pending changes not landed on disk yet. If the system is suspended in that moment, it's frozen in that precise state. If it's then hibernated, that state is written to swap.
For resume to work in such case, neither the kernel nor the initramfs must reside in the root fs.
This is just an example of the several conditions systemd should check before asserting that the system is ready for hibernation. Now, after reading the whole Fedora thread, I understand that systemd does nothing more than checking if the free swap is equal or greater than the used RAM. So when it says "CanHibernate" it actually means: this system *could* be configured to hibernate but I have no idea if it really is.
My opinion is that GNOME should not silently default to use hibernation only based on systemd's CanHibernate flag.
