From: Luigi Semenzato <semenzato@google.com>
To: Linux Memory Management List <linux-mm@kvack.org>,
Bas Nowaira <bassem@google.com>, Geoff Pike <gpike@google.com>
Subject: hibernation memory usage
Date: Thu, 3 Oct 2019 10:16:33 -0700 [thread overview]
Message-ID: <CAA25o9T6C4VCVbqzS0hJgmvpJb6h+htFpH3OUY30E2VtuG8fxQ@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 706 bytes --]
Hi,
I am working on a project that uses hibernation, and we've noticed
occasional failures with "echo disk > /sys/power/state" returning ENOMEM.
I added some logging and noticed that the failures seem to correlate with
total anonymous pages being approximately 1/2 of total RAM. The allocation
strategy isn't explicitly documented and the code is a bit tricky (as
usual), but I am getting the sense that a copy of the entire RAM in use is
made prior to saving it to disk. Is it the case then that hibernation is
guaranteed to fail if anon memory is more than 50% of RAM? Since tasks are
frozen, that memory cannot change and the copy seems redundant (except it
probably makes things simpler).
Thanks!
[-- Attachment #2: Type: text/html, Size: 802 bytes --]
next reply other threads:[~2019-10-03 17:16 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-10-03 17:16 Luigi Semenzato [this message]
2019-10-08 10:33 ` James Morse
2019-10-08 15:26 ` Luigi Semenzato
2019-10-08 15:39 ` Rafael J. Wysocki
2019-10-08 16:18 ` Luigi Semenzato
2019-10-08 20:10 ` Luigi Semenzato
2019-10-17 22:55 ` Luigi Semenzato
2019-10-19 1:49 ` Luigi Semenzato
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=CAA25o9T6C4VCVbqzS0hJgmvpJb6h+htFpH3OUY30E2VtuG8fxQ@mail.gmail.com \
--to=semenzato@google.com \
--cc=bassem@google.com \
--cc=gpike@google.com \
--cc=linux-mm@kvack.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