4 ms·
Suspend-to-disk too?
by jmiserez 9y ago
Suspend-to-disk too?
- calpaterson 9y agoI don't really do that much so I don't know. It only really happens in laptops when battery is running low while suspended and then something seems to wake the laptop and then hibernate it. Cool trick. No idea how it works though.
- vetinari 9y agoDoes anyone really use suspend-to-disk? It takes awfully long to write 8-16 GB of data, then awfully long to read it back. It is much faster to just boot, than to restore from suspend to disk.
- HugoDaniel 9y agoIf the battery level is at the end the OS should suspend to disk in order to avoid losing work.
- imhoguy 9y agoHybrid-suspend should help avoid read it back from disk if AC or battery power is uninterrupted. Also I find caches dropping benefitting to reduce the suspend time.
- jmiserez 9y agoYes, that is my experience too on Linux. However, most times it isn’t actually necessary to write the full RAM out and IIRC Windows and macOS actually don’t. There are a few approaches that work, e.g. you can do memory ballooning and drop caches to reduce memory usage before suspending. In addition, you can write unused RAM pages to disk during normal operation, so that when the user wants to suspend, most of the pages are already on disk.