Linux hibernation

Jacky Lam lamshuyin at gmail.com
Tue Mar 15 06:02:56 EDT 2011


On 3/15/2011 3:58 PM, Mulyadi Santosa wrote:
> On Tue, Mar 15, 2011 at 14:50, Michelle Konzack
> <linux4michelle at 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



More information about the Kernelnewbies mailing list