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

Xavier Bestel (xavier.bestel@free.fr)
22 May 2002 12:03:03 +0200


Le mer 22/05/2002 à 08:49, Martin Dalecki a écrit :
> 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...

Compressing pages will speed up the process, and doing it on the fly
will be more IO-bound than CPU-bound. I think trading some CPU power to
gain HD time isn't so uninteresting.

Concerning point 2, you could always compress by chunks (say 1M) and
take the compressed version only if it's smaller.

Xav

-
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/