From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: linux-pm@lists.linux-foundation.org
Subject: Re: Memory consumption difference between in-kernel and userspace hibernation
Date: Fri, 13 Nov 2009 10:52:34 +0100 [thread overview]
Message-ID: <20091113105234.58f8856e@surf> (raw)
In-Reply-To: <20091112210155.0f9bbe5d@surf>
Hello,
Le Thu, 12 Nov 2009 21:01:55 +0100,
Thomas Petazzoni <thomas.petazzoni@free-electrons.com> a écrit :
> Question: is there any difference in terms of memory requirements for
> the in-kernel hibernation (echo disk > /sys/power/state) and the
> userspace hibernation interface (through /dev/snapshot) ? With exactly
> the same userspace workload and applications running, the in-kernel
> hibernation works, but the hibernating using the userspace hibernation
> interface fails because not enough memory can be freed.
The difference is that when using the in-kernel solution, a swap is
enabled, and it seems that it allows the kernel to free some memory in
order to create the snapshot.
But I don't understand why : won't the swap contents be completely
erased when the resume image will be written to it, and therefore all
the things migrated to the swap when freing the memory would be lost ?
Thanks for your input,
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers and embedded Linux development,
consulting, training and support.
http://free-electrons.com
_______________________________________________
linux-pm mailing list
linux-pm@lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/linux-pm
next prev parent reply other threads:[~2009-11-13 9:52 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-12 20:01 Memory consumption difference between in-kernel and userspace hibernation Thomas Petazzoni
2009-11-12 20:52 ` Rafael J. Wysocki
2009-11-12 21:12 ` Thomas Petazzoni
2009-11-13 20:05 ` Rafael J. Wysocki
2009-11-21 9:29 ` Pavel Machek
2009-11-13 9:52 ` Thomas Petazzoni [this message]
2009-11-13 16:28 ` Rafael J. Wysocki
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20091113105234.58f8856e@surf \
--to=thomas.petazzoni@free-electrons.com \
--cc=linux-pm@lists.linux-foundation.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox