Re: [RFD] swsusp problem: Drivers allocate much memory during suspend (was: Re: 2.6.21-rc5: swsusp: Not enough free memory)

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Hi.

On Sat, 2007-04-14 at 00:57 +0200, Rafael J. Wysocki wrote:

You also use PAGES_FOR_IO in enough_free_mem. Say you set it to the 9000
pages I mentioned before (35M). On a machine with 64 megabytes of
memory, you'll never be able to suspend because you'll never satisfy

free > nr_pages + PAGES_FOR_IO + meta

I'll freely admit that 64 megabytes is tiny nowadays, but it's not
completely unknown. The point is really that you're effectively making
swsusp unusable for machines with RAM < (PAGES_FOR_IO * (say) 3). But
what do you set PAGES_FOR_IO to? There'll always be someone with
$WHIZ_BANG_CONFIG who is pushing to have the value increased, and every
increase knocks out more of your lowend users.

Regards,

Nigel

-
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 ..., Nigel Cunningham, (Fri Apr 13, 4:03 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)