[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <200701282047.39997.rjw@sisk.pl>
Date: Sun, 28 Jan 2007 20:47:39 +0100
From: "Rafael J. Wysocki" <rjw@...k.pl>
To: Xavier Maillard <zedek@....org>
Cc: linux-kernel@...r.kernel.org
Subject: Re: [Q] Prefered suspend to ram or disk method ?
Hi,
On Sunday, 28 January 2007 10:09, Xavier Maillard wrote:
> Hi there,
>
> Just a quick and easy question for you.
>
> I am aware of three ways to make my laptop suspend/hibernate:
>
> 1. suspend
> 2. ususpend
> 3. suspend2
>
> The first two are directly part of the official linux
> distribution and the third one is easy to install into it.
>
> Here is my question: what is the recommended method ?
Well, that depends on who you ask. ;-)
> How does suspend compare to ususpend/suspend2 ?
swsusp and ususpend use the same low-level kernel code, so if one of them
works for you, the other should as well. The difference is mainly that with
swsusp the kernel saves the image into a swap, while with usupend the image
is saved (and loaded on resume) by a userland process. Additionally, ususpend
can compress and/or encrypt the image, supports suspend-to-disk-and-RAM,
splash-based progress meters and some such. Gerenally, it adds the features
that, in the opinion of its authors, are better implemented in the userland.
Plus IMHO ususpend's resume is a bit more convenient for calling from within
initrd images.
suspend2 uses some different low-level code, but as far as the stopping of
tasks and handling devices are concerned, it should be equivalent to swsusp
and ususpend. It generally allows you to create bigger suspend images (the
images created by swsusp and ususpend are at most as large as 50% of RAM),
but it makes some strong assumptions regarding memory management which are
not proven to be always satisfied, although there's no evidence showing
otherwise. It also implements approximately the same set of additional
features as ususpend, but in the kernel.
> Is there any chance to see suspend2 be part of the official linux
> distribution in a near future or not ?
That's a delicate matter ...
Greetings,
Rafael
--
If you don't have the time to read,
you don't have the time or the tools to write.
- Stephen King
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists