FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Ubuntu Kernel Team

 
 
LinkBack Thread Tools
 
Old 03-18-2011, 03:22 PM
Manoj Iyer
 
Default Bug#737208 PM / Hibernate: Make default image size depend on total RAM size

Please consider the following SRU to maverick. The patch to hibernate code
helps to solve failure to hibernate issues seen on some lenovo laptops.

I have already proposed this patch to stable@kernel.org.

SRU JUSTIFICATION
---------------------------

CAUSE
-----------
[ 839.784885] PM: Creating hibernation image:
[ 839.788014] PM: Need to copy 120225 pages
[ 839.788014] PM: Normal pages needed: 118714 + 1024, available pages: 118002
[ 839.788014] PM: Not enough free memory
[ 839.788014] PM: Error -12 creating hibernation image

FIX
----
Upstream patch reduces the image size to it equal 2/5 of the total RAM size.
This combined with shutdown hibernate mode fixes this issue.

TEST
------
This upstream patch was tested on a lenovo x120e by me,
please see comments above for test results and details.

The following changes since commit 98e5bbf03976d01a116c000ec141ec7b5325f759:

UBUNTU: Ubuntu-2.6.35-28.50 (2011-03-13 09:54:14 -0700)

are available in the git repository at:
git://kernel.ubuntu.com/manjo/ubuntu-maverick.git lp737208

Rafael J. Wysocki (2):
PM / Hibernate: Improve comments in hibernate_preallocate_memory()
PM / Hibernate: Make default image size depend on total RAM size

Documentation/power/interface.txt | 2 +-
kernel/power/main.c | 1 +
kernel/power/power.h | 9 ++++++++-
kernel/power/snapshot.c | 13 ++++++++++---
4 files changed, 20 insertions(+), 5 deletions(-)




--
kernel-team mailing list
kernel-team@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/kernel-team
 

Thread Tools




All times are GMT. The time now is 05:23 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org