March 14, 2011
5:13 p.m.
On Mon, Mar 14, 2011 at 15:19, Jacky Lam <lamshuyin@gmail.com> 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