From mboxrd@z Thu Jan 1 00:00:00 1970 From: mulyadi.santosa@gmail.com (Mulyadi Santosa) Date: Tue, 15 Mar 2011 00:13:15 +0700 Subject: Linux hibernation In-Reply-To: <4D7DCF8D.2090202@gmail.com> References: <4D7DCF8D.2090202@gmail.com> Message-ID: To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org On Mon, Mar 14, 2011 at 15:19, Jacky Lam wrote: > Hi all, > > ? ? I am looking at the source code 2.6.29 and find that Linux will > make a copy of used memory pages when doing hibernation. I am curious, > in this case, what Linux do if I have used over 50% of memory? Will > hibernation just fail? I think it is not possible, but I can't > understand from the code. based on my experience, hibernation fails if swap can't hold the total size of anonymous pages plus certain kind of pages (such as mlock()-ed one, slab etc etc). -- regards, Mulyadi Santosa Freelance Linux trainer and consultant blog: the-hydra.blogspot.com training: mulyaditraining.blogspot.com