[upower] waterline for "enough swap for hibernate"

Richard Hughes hughsient at gmail.com
Wed Jul 7 01:45:56 PDT 2010

On 7 July 2010 08:27, Martin Pitt <martin.pitt at ubuntu.com> wrote:
> This reportedly fails sometimes. I was wondering if 0.8 has any
> particular meaning or intention?

Nope, just a hacky metric.

> Colin King explained some details about how much swap will be required
> for hibernation [1]. In short, it seems that for each MB of active
> memory we need 2 KB of meta information for the pages. Linux' native
> suspend-to-disk apparently does not use compression, so the 0.8 would
> only make sense when using uswsusp or similar alternatives which do
> support compression.

Ahh, I didn't know that, thanks.

> So would it make sense to bump UP_DAEMON_SWAP_WATERLINE? If we assume
> no compression, it seems that 100.2f would make sense, with
> compression it's hard to predict of course.

Right, please make that change in git master. I agree with your logic. Thanks.


More information about the devkit-devel mailing list