public inbox for linux-pm@vger.kernel.org
 help / color / mirror / Atom feed
From: Nigel Cunningham <ncunningham@crca.org.au>
To: Francesco VIRLINZI <francesco.virlinzi@st.com>
Cc: pm list <linux-pm@lists.linux-foundation.org>
Subject: Re: Info on hibernation swap space requirement
Date: Wed, 19 Nov 2008 07:47:22 +1100	[thread overview]
Message-ID: <1227041242.2723.6.camel@nigel-laptop> (raw)
In-Reply-To: <492283F2.1080000@st.com>

Hi Francesco.

On Tue, 2008-11-18 at 09:59 +0100, Francesco VIRLINZI wrote:
> Hi all.
> 
> I added the hibernation support on a sh4 based platform and it works fine,
>  but I don't understand how big the swap space has to be.
> 
> My system has 64Mb and I was assuming, I can freeze ~32 Mb therefore
>  I was creating a swap space of 40/50 Mb.
> 
> But it seems it isn't enough, the system is requiring more space.
> 
> Could you say me how evaluate the right (minimal) swap space required
>  when I know the DRam memory size.

If there's too much memory in use when hibernation is attempted, an
attempt will be made to free memory, which could involve pushing some
pages out to swap. You therefore probably want swap space to be at least
as big as the amount of memory you have, unless you're using the image
compression support that I think uswsusp has.

Please don't forget to post your code - we can then incorporate it in
vanilla and you won't have to worry about keeping it updated.

Nigel

      reply	other threads:[~2008-11-18 20:47 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-18  8:59 Info on hibernation swap space requirement Francesco VIRLINZI
2008-11-18 20:47 ` Nigel Cunningham [this message]

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=1227041242.2723.6.camel@nigel-laptop \
    --to=ncunningham@crca.org.au \
    --cc=francesco.virlinzi@st.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