From: "Rafael J. Wysocki" <rjw@sisk.pl>
To: linux-pm@lists.linux-foundation.org
Cc: dri-devel@lists.sourceforge.net
Subject: Re: Hibernation out-of-memory problem.
Date: Mon, 12 Oct 2009 23:17:59 +0200 [thread overview]
Message-ID: <200910122317.59973.rjw@sisk.pl> (raw)
In-Reply-To: <4AD0F4D0.2090809@vmware.com>
On Saturday 10 October 2009, Thomas Hellstrom wrote:
> Hi!
>
> I'm trying to port a graphics DRM device driver over to the new power
> management hooks in
>
> struct dev_pm_ops.
>
> During the "prepare" call, Video RAM contents may be copied either to
> shmem objects or pages allocated using alloc_page().
> Unfortunately, this seems to lead to the hibernation process running out
> of free pages.
>
> One possible cause is that the function swsusp_shrink_memory() is called
> before the prepare() call, and therefore doesn't free up enough memory.
>
> What would be the correct way around this? Should swsusp_shrink_memory()
> be moved to after prepare(), or is it possible to get some kind of
> notification after user space processes is stopped, but before
> swsusp_shrink_memory()?
There are suspend/hibernation notifiers that can be used for this purpose.
Thanks,
Rafael
next parent reply other threads:[~2009-10-12 21:17 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <4AD0F4D0.2090809@vmware.com>
2009-10-12 21:17 ` Rafael J. Wysocki [this message]
2009-10-13 19:25 ` Hibernation out-of-memory problem Thomas Hellstrom
2009-10-13 20:35 ` Rafael J. Wysocki
2009-10-10 20:55 Thomas Hellstrom
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=200910122317.59973.rjw@sisk.pl \
--to=rjw@sisk.pl \
--cc=dri-devel@lists.sourceforge.net \
--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