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

2007-04-14 Thread Rafael J. Wysocki
Hi, On Saturday, 14 April 2007 00:35, Rafael J. Wysocki wrote: > On Saturday, 14 April 2007 00:10, Pavel Machek wrote: [--snip--] > > > IMO to really fix the problem, we should let the drivers that need much > > > memory > > > for suspending allocate it _before_ the memory shrinker is called. F

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

2007-04-14 Thread Rafael J. Wysocki
On Saturday, 14 April 2007 01:03, Nigel Cunningham wrote: > Hi. > > On Sat, 2007-04-14 at 00:57 +0200, Rafael J. Wysocki wrote: > > > > > Well, I'm not sure. First, we don't really know what the value of it > > > > > should be > > > > > and this alone is a good enough reason for making it tunabl

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

2007-04-13 Thread Nigel Cunningham
Hi. On Sat, 2007-04-14 at 00:57 +0200, Rafael J. Wysocki wrote: > > > > Well, I'm not sure. First, we don't really know what the value of it > > > > should be > > > > and this alone is a good enough reason for making it tunable, IMHO. > > > > Second, I > > > > think different systems may need

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

2007-04-13 Thread Rafael J. Wysocki
On Saturday, 14 April 2007 00:45, Nigel Cunningham wrote: > Hi. > > On Sat, 2007-04-14 at 00:40 +0200, Pavel Machek wrote: > > Hi! > > > > > > > > > Well, it looks like someone allocated about 6000 pages after we > > > > > > > had freed > > > > > > > enough memory for suspending. > > > > > > >

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

2007-04-13 Thread Nigel Cunningham
Hi. On Sat, 2007-04-14 at 00:40 +0200, Pavel Machek wrote: > Hi! > > > > > > > Well, it looks like someone allocated about 6000 pages after we had > > > > > > freed > > > > > > enough memory for suspending. > > > > > > > > > > We have a tunable allowance in Suspend2 for this, because fglrx > >

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

2007-04-13 Thread Nigel Cunningham
Hi. On Sat, 2007-04-14 at 00:38 +0200, Pavel Machek wrote: > Hi! > > > > > > > Well, it looks like someone allocated about 6000 pages after we had > > > > > > freed > > > > > > enough memory for suspending. > > > > > > > > > > We have a tunable allowance in Suspend2 for this, because fglrx > >

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

2007-04-13 Thread Pavel Machek
Hi! > > > > > Well, it looks like someone allocated about 6000 pages after we had > > > > > freed > > > > > enough memory for suspending. > > > > > > > > We have a tunable allowance in Suspend2 for this, because fglrx > > > > allocates a lot of pages in its suspend routine if DRI is enabled. I >

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

2007-04-13 Thread Pavel Machek
Hi! > > > > > Well, it looks like someone allocated about 6000 pages after we had > > > > > freed > > > > > enough memory for suspending. > > > > > > > > We have a tunable allowance in Suspend2 for this, because fglrx > > > > allocates a lot of pages in its suspend routine if DRI is enabled. I >

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

2007-04-13 Thread Nigel Cunningham
Hi. On Sat, 2007-04-14 at 00:35 +0200, Rafael J. Wysocki wrote: > On Saturday, 14 April 2007 00:10, Pavel Machek wrote: > > Hi! > > > > > > > Well, it looks like someone allocated about 6000 pages after we had > > > > > freed > > > > > enough memory for suspending. > > > > > > > > We have a tun

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

2007-04-13 Thread Nigel Cunningham
Hi. On Sat, 2007-04-14 at 00:10 +0200, Pavel Machek wrote: > Hi! > > > > > Well, it looks like someone allocated about 6000 pages after we had > > > > freed > > > > enough memory for suspending. > > > > > > We have a tunable allowance in Suspend2 for this, because fglrx > > > allocates a lot of

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

2007-04-13 Thread Rafael J. Wysocki
On Saturday, 14 April 2007 00:10, Pavel Machek wrote: > Hi! > > > > > Well, it looks like someone allocated about 6000 pages after we had > > > > freed > > > > enough memory for suspending. > > > > > > We have a tunable allowance in Suspend2 for this, because fglrx > > > allocates a lot of pages

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

2007-04-13 Thread Pavel Machek
Hi! > > > Well, it looks like someone allocated about 6000 pages after we had freed > > > enough memory for suspending. > > > > We have a tunable allowance in Suspend2 for this, because fglrx > > allocates a lot of pages in its suspend routine if DRI is enabled. I > > think some other drivers do

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

2007-04-13 Thread Nigel Cunningham
Hi. On Fri, 2007-04-13 at 22:41 +0200, Rafael J. Wysocki wrote: > On Friday, 13 April 2007 14:21, Nigel Cunningham wrote: > > Hi. > > > > On Fri, 2007-04-13 at 14:00 +0200, Rafael J. Wysocki wrote: > > > > > > > > Shrinking memory... Pages needed: 128103 normal, 0 highmem > > > > Pages needed:

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

2007-04-13 Thread Rafael J. Wysocki
On Friday, 13 April 2007 14:21, Nigel Cunningham wrote: > Hi. > > On Fri, 2007-04-13 at 14:00 +0200, Rafael J. Wysocki wrote: > > > > > > Shrinking memory... Pages needed: 128103 normal, 0 highmem > > > Pages needed: 125226 normal, 0 highmem > > > Pages needed: -5757 normal, 0 highmem > > > Page