From mboxrd@z Thu Jan 1 00:00:00 1970 From: lamshuyin@gmail.com (Jacky Lam) Date: Tue, 15 Mar 2011 18:02:56 +0800 Subject: Linux hibernation In-Reply-To: References: <4D7DCF8D.2090202@gmail.com> <20110314112439.GK9746@michelle1> <20110315075006.GY9746@michelle1> Message-ID: <4D7F3950.5030705@gmail.com> To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org On 3/15/2011 3:58 PM, Mulyadi Santosa wrote: > On Tue, Mar 15, 2011 at 14:50, Michelle Konzack > 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