Info about suspend-to-disk

Conrad Meyer cem at freebsd.org
Tue Aug 23 22:48:14 UTC 2016


On Tue, Aug 23, 2016 at 4:41 AM, Eric McCorkle <eric at metricspace.net> wrote:
> My only reservation about loader is that users will likely want the
> system to come back up quickly, as if resuming.  Dropping them into the
> loader menu might not be what they want/expect.  If it ends up being
> done in loader, it might be worth having a "fast-path" option that skips
> the usual menu.
>
> Actually, the "fast-path" loader option might be a worthwhile feature
> generally, for people who just want fast boot times.

That exists: autoboot_delay="-1"

> Does suspend-to-swap wipe out what's already stored there?  Since you
> plan on coming back online, you'd want to preserve all contents of swap.
>  In any case, I could see it failing if there's not enough free space in
> swap (which I guess would also be a possibility with suspend-to-file)
>
> If dump to swap does preserve the contents of swap, it might be better
> to do it that way first to work out all the other issues.

It wouldn't have to be to an *active* swap partition; the point is,
it's just a raw disk device (partition) that supports polled IO.

Best,
Conrad


More information about the freebsd-hackers mailing list