On 2/13/2019 1:33 AM, Joachim Wagner wrote:
Hibernate usually copies active ram to a pre-allocated hibernation file
https://doc.opensuse.org/documentation/leap/reference/html/ book.opensuse.reference/cha.power-mgmt.html says Leap hibernates to swap if swap is sufficiently big. A hibernation file is not mentioned.
---- Well, if you have a swap that you don't use for swap...then sure. But if swap is full of swapped memory, where does that go when you hibernate? Oh...um -- yeah... v v v
Of course, if swap is in heavy use already a dedicated hibernation file with the size of used RAM (minus gains from compression) is needed.
--- Compression -- depends on how fast you want to go into swap I suppose. If you have 96G of memory just writing that to disk at 1GB/s will take a minute and a half. I wouldn't rely on compression for hiber, since if it doesn't compress well, though zero'd memory compresses pretty well. :-)
https://en.opensuse.org/SDB:Suspend_to_disk is out-dated (last tested on openSUSE 11.3) and nothing with "s2disk" in the filename exists in /var or / etc on my Leap 15.0 laptop.
Any pointers how to make sure hibernation is always possible? If there no longer is the possibility of a separate hibernation file (that cannot be claimed for swap space) how would one limit swap usage to swapsize-ramsize?
---- you can make more than one Swap file... Call one Hibernation? What Windows does is semi-smart(am hoping Linux would have similar). Since reading 96G(or writing) memory to disk (or less, or more) takes time, they have a hybrid sleep/hiberr where they prepare for hibernation, but really put the machine into sleep state, keeping the memory in memory -- that way if battery fails, you can restart state from hibernation file, but if battery lives -- then machine can almost restart in seconds (obviously, sleep and full hiber are also available). I measured my housemates desktop -- 48G, HexaCore -- 4W in hybrid -- not bad for a 10yr old design. BTW, if I yak about win -- its cuz I use both -- win as a desktop and linux as everything else. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org