Hibernation fails
Florian Diesch
diesch at spamfence.net
Thu Apr 17 02:51:45 UTC 2008
Mario Vukelic <mario.vukelic at dantian.org> wrote:
> On Tue, 2008-04-15 at 18:21 +0100, Steve Flynn wrote:
>> You have me confused now. I referred to the email from Rafael to the
>> LKML (viewable here: http://kerneltrap.org/node/14004) and focused on
>> the fact that suspend to hibernation was currently implemented.
>> However, it seems upon re-reading that I may have jumped the gun.
>>
>> "Saving and loading the hibernation image
>>
>> The hibernation image is saved in a swap partition or in a swap file
>> in step (16)[...]
>
> I see where the confusion comes from.
>
> The kernel can be configured to use a swap partition or a swap file (or
> both, I think). Hence, if a swap file is used the hibernation image is
> written to the swap file, but otherwise it is written to the swap
> partition.
>
> Unfortunately, the Ubuntu kernel uses a swap partition, for reasons I
> never understood. A swap partition is marginally faster due to
> circumventing file system code, but otherwise I would think that a swap
> file would be a much better fit for Ubuntu's target users, at least in
> the Desktop edition, as swap files don't need a predetermined size.
Swap files don't grow dynamically, they have a fixed size. It's just more easy
to resize them.
Florian
--
<http://www.florian-diesch.de/>
-----------------------------------------------------------------------
** Hi! I'm a signature virus! Copy me into your signature, please! **
-----------------------------------------------------------------------
More information about the ubuntu-users
mailing list