kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
From: lamshuyin@gmail.com (Jacky Lam)
To: kernelnewbies@lists.kernelnewbies.org
Subject: Linux hibernation
Date: Tue, 15 Mar 2011 18:02:56 +0800	[thread overview]
Message-ID: <4D7F3950.5030705@gmail.com> (raw)
In-Reply-To: <AANLkTi=2EayCj5HG0+k3pmPDePMh0c=U04ra1stXLFAM@mail.gmail.com>

On 3/15/2011 3:58 PM, Mulyadi Santosa wrote:
> On Tue, Mar 15, 2011 at 14:50, Michelle Konzack
> <linux4michelle@tamay-dogan.net>  wrote:
>> You have 2,75 GByte of Memory + 256 MByte of Graphic Ram right?
>>
>> If your system use the the SWAP partition to  hybernate,  then  it  will
>> fail, because it has to do a "swapoff" and write  the  contents  of  the
>> SWAP to memory.
>>
>> In clear, you are currently using
>>
>>     4096 MByte RAM + 374 MByte SWAP - 249 MByte Free
>>
>>     = 4221 MByte = 4,12 GByte
>>
>> which is to much o fit into memory.
> hm, CMIIW, but I think you also count page cache above...that's
> discardable...i.e kernel will push them back into backing disc... so,
> they're not really counted... only anonymous pages, locked pages and
> similar ones which is swaped out...
>
     Some pages that are not necessary to be saved are also counted. 
This can be proved by doing :

     echo 3 > /proc/sys/vm/drop_caches

     before you hibernate. You can get smaller image size after that.

Jacky

  reply	other threads:[~2011-03-15 10:02 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-14  8:19 Linux hibernation Jacky Lam
2011-03-14 10:20 ` Mandeep Sandhu
2011-03-14 11:12   ` Ozan Türkyılmaz
2011-03-14 11:24   ` Michelle Konzack
2011-03-14 12:32     ` Mandeep Sandhu
2011-03-15  7:50       ` Michelle Konzack
2011-03-15  7:58         ` Mulyadi Santosa
2011-03-15 10:02           ` Jacky Lam [this message]
2011-03-17 13:53         ` Mandeep Sandhu
2011-03-14 17:13 ` Mulyadi Santosa

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=4D7F3950.5030705@gmail.com \
    --to=lamshuyin@gmail.com \
    --cc=kernelnewbies@lists.kernelnewbies.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;
as well as URLs for NNTP newsgroup(s).