Hello Richard, hello all, We were wondering about improving upower's check whether hibernate has sufficient swap space. Right now it considers hibernate possible if there is at least (active memory) * 0.8 free swap. (The 0.8 is defined as UP_DAEMON_SWAP_WATERLINE).
This reportedly fails sometimes. I was wondering if 0.8 has any particular meaning or intention? 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. 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. Thanks, Martin [1] https://bugs.launchpad.net/oem-priority/+bug/599352/comments/4 -- Martin Pitt | http://www.piware.de Ubuntu Developer (www.ubuntu.com) | Debian Developer (www.debian.org)
signature.asc
Description: Digital signature
_______________________________________________ devkit-devel mailing list devkit-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/devkit-devel