Re: suspend-to-{RAM,disk} for 2.5.17

Martin Dalecki (dalecki@evision-ventures.com)
Wed, 22 May 2002 08:49:55 +0200


Uz.ytkownik Linus Torvalds napisa?:
> On Wed, 22 May 2002, Pavel Machek wrote:
>
>>Major parts are: process stopper, S3 specific code, S4 specific
>>code. What can I do to make this applied?
>
>
> Applied. Nothing needed but some time for me to look through it.
>
> It still has a few too many #ifdef CONFIG_SUSPEND, and I get this feeling
> that the background deamons shouldn't need to do the "freeze()" by hand
> but simply be automatically frozen and thawed when they sleep by looking
> at the KERNTHREAD bit or something, but..

Oh and please reject the idea of compressing the pages
you are writing to disk for the following reaons:

1. compression is not deterministic in terms of the possible space
savings, you will still have to provide the required amount of space.

2. every compression algorithm has theoretical cases where the
compression mechanism is actually increasing the space requirements.

3. Compressing around 360 Mbytes of data will take quite a lot
of time.

4. Point 3 will make the CPU go high - not nice if the suspend
happens in case of battery emergency...

Anyway it's time to repartition my notebook :-).

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/