Re: 2.6.21-rc5: swsusp: Not enough free memory

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Rafael J. Wysocki
Date: Tuesday, April 3, 2007 - 3:50 am

On Tuesday, 3 April 2007 09:37, Jiri Slaby wrote:

Okay, so I think the appended patch is needed.  Could you please revert the
debug one, apply the appended one instead and see if it helps?


Yup.


Thanks for testing.

Greetings,
Rafael

---
 kernel/power/swsusp.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: linux-2.6.21-rc5/kernel/power/swsusp.c
===================================================================
--- linux-2.6.21-rc5.orig/kernel/power/swsusp.c
+++ linux-2.6.21-rc5/kernel/power/swsusp.c
@@ -229,13 +229,13 @@ int swsusp_shrink_memory(void)
 		size += highmem_size;
 		for_each_zone (zone)
 			if (populated_zone(zone)) {
+				tmp += snapshot_additional_pages(zone);
 				if (is_highmem(zone)) {
 					highmem_size -=
 					zone_page_state(zone, NR_FREE_PAGES);
 				} else {
 					tmp -= zone_page_state(zone, NR_FREE_PAGES);
 					tmp += zone->lowmem_reserve[ZONE_NORMAL];
-					tmp += snapshot_additional_pages(zone);
 				}
 			}
 
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
2.6.21-rc5: swsusp: Not enough free memory, Jiri Slaby, (Thu Mar 29, 12:44 am)
Re: 2.6.21-rc5: swsusp: Not enough free memory, Rafael J. Wysocki, (Thu Mar 29, 7:39 am)
Re: 2.6.21-rc5: swsusp: Not enough free memory, Jiri Slaby, (Thu Mar 29, 7:39 am)
Re: 2.6.21-rc5: swsusp: Not enough free memory, Jiri Slaby, (Sun Apr 1, 11:17 am)
Re: 2.6.21-rc5: swsusp: Not enough free memory, Rafael J. Wysocki, (Sun Apr 1, 12:23 pm)
Re: 2.6.21-rc5: swsusp: Not enough free memory, Jiri Slaby, (Mon Apr 2, 1:24 am)
Re: 2.6.21-rc5: swsusp: Not enough free memory, Rafael J. Wysocki, (Mon Apr 2, 2:18 pm)
Re: 2.6.21-rc5: swsusp: Not enough free memory, Jiri Slaby, (Tue Apr 3, 12:37 am)
Re: 2.6.21-rc5: swsusp: Not enough free memory, Rafael J. Wysocki, (Tue Apr 3, 3:50 am)
Re: 2.6.21-rc5: swsusp: Not enough free memory, Jiri Slaby, (Tue Apr 3, 12:59 pm)
Re: 2.6.21-rc5: swsusp: Not enough free memory, Jiri Slaby, (Mon Apr 9, 1:07 pm)
Re: 2.6.21-rc5: swsusp: Not enough free memory, Rafael J. Wysocki, (Mon Apr 9, 1:20 pm)
Re: 2.6.21-rc5: swsusp: Not enough free memory, Jiri Slaby, (Wed Apr 11, 12:36 am)
Re: 2.6.21-rc5: swsusp: Not enough free memory, Rafael J. Wysocki, (Wed Apr 11, 2:55 am)
Re: 2.6.21-rc5: swsusp: Not enough free memory, Jiri Slaby, (Wed Apr 11, 3:45 am)
Re: 2.6.21-rc5: swsusp: Not enough free memory, Rafael J. Wysocki, (Wed Apr 11, 7:40 am)
Re: 2.6.21-rc5: swsusp: Not enough free memory, Jiri Slaby, (Wed Apr 11, 8:02 am)
Re: 2.6.21-rc5: swsusp: Not enough free memory, Rafael J. Wysocki, (Thu Apr 12, 2:36 pm)
Re: 2.6.21-rc5: swsusp: Not enough free memory, Jiri Slaby, (Fri Apr 13, 3:14 am)
Re: 2.6.21-rc5: swsusp: Not enough free memory, Rafael J. Wysocki, (Fri Apr 13, 5:00 am)
Re: 2.6.21-rc5: swsusp: Not enough free memory, Nigel Cunningham, (Fri Apr 13, 5:21 am)
[RFD] swsusp problem: Drivers allocate much memory during ..., Rafael J. Wysocki, (Fri Apr 13, 1:41 pm)
Re: [RFD] swsusp problem: Drivers allocate much memory dur ..., Rafael J. Wysocki, (Fri Apr 13, 3:35 pm)
Re: [RFD] swsusp problem: Drivers allocate much memory dur ..., Rafael J. Wysocki, (Fri Apr 13, 3:57 pm)
Re: [RFD] swsusp problem: Drivers allocate much memory dur ..., Rafael J. Wysocki, (Sat Apr 14, 2:33 am)
Re: [linux-pm] [RFD] swsusp problem: Drivers allocate much ..., Rafael J. Wysocki, (Sat Apr 14, 3:53 pm)