On Sun, Aug 5, 2012 at 3:24 PM, Kevin Chadwick <ma1l1ists@xxxxxxxxxxx> wrote: >> Thank you for all you comments. I'll drop a note in the wiki that captures a >> brief set of these considerations and the few steps needed to set up a swap if >> the user desires. > > With 4Gb and even > 32 Gb rams on some systems you may want to note that > you can use a small swap for caching and a second swap file for > hibernation that can easily be reclaimed. Not sure if the file can be > created on demand and if so how not having enough space to hibernate is > handled however. With swsusp (kernel mode), I don't think you /can/ even hibernate to a file. With uswsusp, the s2disk program could be patched to create a file on demand, and it would simply exit before hibernating if not enough space. But still, I'm not sure whether resuming from a file will work, because the pre-resume kernel has to mount the filesystem in order to read from the hiberfile, but the filesystem is already mounted by the hibernated kernel... -- Mantas Mikulėnas