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

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Jiri Slaby <jirislaby@...>
Cc: Linux kernel mailing list <linux-kernel@...>, <linux-pm@...>, <pavel@...>
Date: Sunday, April 1, 2007 - 3:23 pm

On Sunday, 1 April 2007 20:17, Jiri Slaby wrote:

Well, I suspect this is somehow related to highmem, so you can try to check
if disabling highmem helps.

Still, I'd like to understand why it occurs (I can't reproduce it, so far) and
I have a theory.  Namely, I think that on your system the initial image size
is greater than 50% of RAM (you can check that by running
"cat /sys/power/image_size" before you suspend for the first time after a
fresh boot) and the memory shrinker fails to do its job in that case.

What s2disk does is to set image_size below 50% of the RAM size and that's why
the subsequent "echo disk > ..." suspend works too.

As a workaround, you can try to change the initial image size so that it's
smaller than a half of the RAM size.  If that works, I'd like to send you a
debug patch, if you don't mind. :-)

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