<p>On Feb 16, 2011 3:15 AM, "Matthijs Kooijman" <<a href="mailto:matthijs@stdin.nl">matthijs@stdin.nl</a>> wrote:<br>
><br>
> Hi folks,<br>
><br>
> I've recently switched over from swsusp to using gnome-power-manager /<br>
> upower / pm-utils for hibernation. However, it seems that pm-utils does<br>
> not set /sys/power/image_size before hibernating, leaving it at the<br>
> default value of 500M (the default Debian swsusp increased this value a<br>
> bit).<br>
><br>
> Is there any rationale for not touching image_size? Having it so low,</p>
<p>Yes, we just use the defaults for whatever sleep module is in use and leave it up to the distro or the end user to customize things.</p>
<p>> means the kernel goes out of his way to create a hibernate image of only<br>
> 500M. Since I have 8GB of RAM, this seems to mean it just tries to swap<br>
> out a lot of pages before hibernate. Then, after resume, half of my<br>
> system is swapped out, including all of the software I was actually<br>
> using. So it then takes up to a minute to swap everything back in,<br>
> making the resume feel very sluggish.<br>
><br>
> Setting image_size to something bigger than the memory I have in use<br>
> means that the resume process is takes a bit longer (since the image is<br>
> bigger), but removes the need for all the swapping after resume. So the<br>
> effective time from power on to being able to work on the system again<br>
> reduces significantly.</p>
<p>Indeed. </p>
<p>> It seems that image_size might have been configurable in the past,<br>
> though that might have been before pm-utils was pm-utils, not sure:<br>
><br>
> <a href="http://www.google.com/search?q=image_size&sitesearch=lists.freedesktop.org%2Farchives%2FPm-utils%2F">http://www.google.com/search?q=image_size&sitesearch=lists.freedesktop.org%2Farchives%2FPm-utils%2F</a><br>
><br>
> Any thoughts on this issue?</p>
<p>I think this was not added because we decided to leave that heuristic up to the distros.</p>
<p>> Gr.<br>
><br>
> Matthijs<br>
><br>
> -----BEGIN PGP SIGNATURE-----<br>
> Version: GnuPG v1.4.9 (GNU/Linux)<br>
><br>
> iEYEARECAAYFAk1bjVAACgkQz0nQ5oovr7ydTwCgzeqC3TIS9JKi/FZlv+TRKs40<br>
> dLQAnR/tSJ48vIJls5oQ/etZb9v9YWno<br>
> =kV46<br>
> -----END PGP SIGNATURE-----<br>
><br>
> _______________________________________________<br>
> Pm-utils mailing list<br>
> <a href="mailto:Pm-utils@lists.freedesktop.org">Pm-utils@lists.freedesktop.org</a><br>
> <a href="http://lists.freedesktop.org/mailman/listinfo/pm-utils">http://lists.freedesktop.org/mailman/listinfo/pm-utils</a><br>
><br>
</p>