Fedora reawakens the hibernation debate
Fedora reawakens the hibernation debate
Posted Oct 8, 2018 17:46 UTC (Mon) by Cyberax (✭ supporter ✭, #52523)In reply to: Fedora reawakens the hibernation debate by mcortese
Parent article: Fedora reawakens the hibernation debate
It's been broken for ages for hibernation files, though.
Posted Oct 8, 2018 18:59 UTC (Mon)
by mcortese (guest, #52099)
[Link] (8 responses)
Posted Oct 8, 2018 19:01 UTC (Mon)
by Cyberax (✭ supporter ✭, #52523)
[Link] (7 responses)
Posted Oct 8, 2018 21:18 UTC (Mon)
by mcortese (guest, #52099)
[Link] (6 responses)
Posted Oct 8, 2018 21:56 UTC (Mon)
by Cyberax (✭ supporter ✭, #52523)
[Link] (5 responses)
If it's present, attempt the resume (via another IOCTL). The kernel reads the saved image, does the CRC check and if everything is OK the control is transferred to the saved image.
Posted Oct 9, 2018 16:22 UTC (Tue)
by mcortese (guest, #52099)
[Link] (4 responses)
Mounting root... But root could be in a non-clean state.
Initramfs... So now systemd or GNOME depends on Initramfs? Last time I checked, Debian packages had no dependence on a specific version of the kernel. Or on the existence of a boot partition or of a specific bootloader.
In fact I have run a Debian system for years (systemd & GNOME) with no initramfs, no boot partition except EFI, and no bootloader. I guess I'd better think twice before upgrading to GNOME 3.30... :)
Posted Oct 9, 2018 17:12 UTC (Tue)
by Cyberax (✭ supporter ✭, #52523)
[Link] (3 responses)
Posted Oct 11, 2018 21:17 UTC (Thu)
by mcortese (guest, #52099)
[Link] (2 responses)
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.
Posted Oct 11, 2018 21:21 UTC (Thu)
by Cyberax (✭ supporter ✭, #52523)
[Link] (1 responses)
Posted Oct 13, 2018 19:18 UTC (Sat)
by mcortese (guest, #52099)
[Link]
So, while suspend & resume is nearly transparent for the running processes, hibernate & resume heavily changes the system's internal state.
I wonder if hibernation can stall in case of big IO backlog?
Fedora reawakens the hibernation debate
Fedora reawakens the hibernation debate
Fedora reawakens the hibernation debate
Fedora reawakens the hibernation debate
Fedora reawakens the hibernation debate
Fedora reawakens the hibernation debate
Fedora reawakens the hibernation debate
Fedora reawakens the hibernation debate
Fedora reawakens the hibernation debate