On 2017-12-15 21:58, jdd@dodin.org wrote:
Le 15/12/2017 à 18:59, Carlos E. R. a écrit >> On Friday, 2017-12-15 at 12:12 +0100, jdd@dodin.org wrote:
some posts let me think otherwise :-(
It /might/ crash. I have not seen it in years, though. I have had problems with hibernation on some openSUSE versions.
normally it shouldn't, I guess it still can stop the computer if hibernation fails, but sure some years ago hibernation didn't work well
right now I tested it on my config (16Gb ram, 8Gb swap) and it works. I was pretty sure it only needs approx half the max ram *used* really (no cache). I don't see how I could simulate a full 16Gb ram used, may be with lot of virtual machines? pretty long to test
dd if=... of=... bs=1G But I would instead write a command that reserves memory and waits.
% % but how can I see if it simply stopped and restarted or come back % from hibernation?
I worked on this.
hibernation makes "journactl -b 0" unusable o nearly, as there is no reboot. One have to search "sleep requested", "starting hibernate" "suspended system" in logs and what is around them.
curiously enough, part of the logs of the hibernation are written *after* reboot, as ascertained by the logs date, probably a buffer saved but not written in logs.
That's because at some point the file engine is stopped. Nothing can write to the filesystem. The timestamp on the logs are confusing, yes.
"creating hibernation image" speaks of "pages". As I don't know the page size I can't know the hibernation file size. Only 14Mb remain in swap after restore. My image was 1 206 945 pages
14 MB of init code.
the computer is stopped on a pci error and "sleep state S4"
crash?
When using many applications at the same time, it saves me time to find them open instead of starting each one again. I prefer hibernation.
Hibernation disables the grub menu.
sure. hibernation forces the use of the last system used
in my present computer (I have it for only some weeks), it's extremely fast - around 5s to shut down, and same for starting - the password prompt is the longer to do. But then booting fresh is only around 15s
Mine is much longer, even using SSD for the system and swap. -- Cheers / Saludos, Carlos E. R. (from 42.2 x86_64 "Malachite" at Telcontar)