All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
* [swsusp] not enough memory
@ 2006-02-17 23:58 Richard Mittendorfer
  2006-02-18  0:07 ` Nigel Cunningham
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Richard Mittendorfer @ 2006-02-17 23:58 UTC (permalink / raw
  To: linux-kernel

Hi *,

On my 64MB notebook I get the following message, when going swsusp:

..
swsusp: Need to copy 15526 pages
swsusp: Not enough free memory
Error -12 suspending
..

# free
             total     used     free   shared    buffers   cached
Mem:         62760    59884     2876        0       3828    16052
-/+ buffers/cache:    40004    22756
Swap:       200804    30316   170488

If I end all apps but the XServer it works. I've allready added some
more swapspace, but that didn't help. So, how much memory will I need
for a successful suspend or better (since i can't stuff any more into 
it) is there a way to minimize the amount needed?

sl ritch

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [swsusp] not enough memory
  2006-02-17 23:58 [swsusp] not enough memory Richard Mittendorfer
@ 2006-02-18  0:07 ` Nigel Cunningham
  2006-02-18  0:40   ` Richard Mittendorfer
  2006-02-18 15:08   ` Pavel Machek
  2006-02-18 15:11 ` Pavel Machek
  2006-05-02  3:28 ` [swsusp] not enough memory [solved with 2.6.17-rc3] Richard Mittendorfer
  2 siblings, 2 replies; 11+ messages in thread
From: Nigel Cunningham @ 2006-02-18  0:07 UTC (permalink / raw
  To: Richard Mittendorfer; +Cc: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 1089 bytes --]

Hi Richard.

On Saturday 18 February 2006 09:58, Richard Mittendorfer wrote:
> Hi *,
>
> On my 64MB notebook I get the following message, when going swsusp:
>
> ..
> swsusp: Need to copy 15526 pages
> swsusp: Not enough free memory
> Error -12 suspending
> ..
>
> # free
>              total     used     free   shared    buffers   cached
> Mem:         62760    59884     2876        0       3828    16052
> -/+ buffers/cache:    40004    22756
> Swap:       200804    30316   170488
>
> If I end all apps but the XServer it works. I've allready added some
> more swapspace, but that didn't help. So, how much memory will I need
> for a successful suspend or better (since i can't stuff any more into
> it) is there a way to minimize the amount needed?

swsusp needs to be able to free half your memory to be able to suspend. I 
don't know it intimately, but you may well be failing to do this. Being 
completely biased (and not unwilling to admit it!), I'd suggest you try 
Suspend2 (www.suspend2.net). It doesn't have such a limitation.

Regards,

Nigel

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [swsusp] not enough memory
  2006-02-18  0:07 ` Nigel Cunningham
@ 2006-02-18  0:40   ` Richard Mittendorfer
  2006-02-18  0:41     ` Nigel Cunningham
  2006-02-18 15:08   ` Pavel Machek
  1 sibling, 1 reply; 11+ messages in thread
From: Richard Mittendorfer @ 2006-02-18  0:40 UTC (permalink / raw
  To: Nigel Cunningham; +Cc: linux-kernel

Also sprach Nigel Cunningham <ncunningham@cyclades.com> (Sat, 18 Feb
2006 10:07:58 +1000):
> Hi Richard.

Hello Nigel,
 
> On Saturday 18 February 2006 09:58, Richard Mittendorfer wrote:
> > swsusp: Need to copy 15526 pages
> > swsusp: Not enough free memory
> > Error -12 suspending
> > [...]
> swsusp needs to be able to free half your memory to be able to
> suspend. I  don't know it intimately, but you may well be failing to
> do this. Being  completely biased (and not unwilling to admit it!),
> I'd suggest you try  Suspend2 (www.suspend2.net). It doesn't have such
> a limitation.

Thanks for this hint. However, I'm using ck's patches and having errors 
compiling sched.c. Just took a quick look: I don't think I can get them 
working together. The  rest of the suspend2 patch (for 2.6.15.1) seems 
to apply fine to 2.6.15.4 also (Not much changes IIRC).  

> Regards,
> 
> Nigel

sl ritch

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [swsusp] not enough memory
  2006-02-18  0:40   ` Richard Mittendorfer
@ 2006-02-18  0:41     ` Nigel Cunningham
  2006-02-18  0:57       ` Richard Mittendorfer
  0 siblings, 1 reply; 11+ messages in thread
From: Nigel Cunningham @ 2006-02-18  0:41 UTC (permalink / raw
  To: Richard Mittendorfer; +Cc: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 1112 bytes --]

Hi.

On Saturday 18 February 2006 10:40, Richard Mittendorfer wrote:
> Also sprach Nigel Cunningham <ncunningham@cyclades.com> (Sat, 18 Feb
>
> 2006 10:07:58 +1000):
> > Hi Richard.
>
> Hello Nigel,
>
> > On Saturday 18 February 2006 09:58, Richard Mittendorfer wrote:
> > > swsusp: Need to copy 15526 pages
> > > swsusp: Not enough free memory
> > > Error -12 suspending
> > > [...]
> >
> > swsusp needs to be able to free half your memory to be able to
> > suspend. I  don't know it intimately, but you may well be failing to
> > do this. Being  completely biased (and not unwilling to admit it!),
> > I'd suggest you try  Suspend2 (www.suspend2.net). It doesn't have such
> > a limitation.
>
> Thanks for this hint. However, I'm using ck's patches and having errors
> compiling sched.c. Just took a quick look: I don't think I can get them
> working together. The  rest of the suspend2 patch (for 2.6.15.1) seems
> to apply fine to 2.6.15.4 also (Not much changes IIRC).

http://iphitus.loudas.com/archck.php contains both Con's patches and Suspend2.

Regards,

Nigel

> > Regards,
> >
> > Nigel
>
> sl ritch

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [swsusp] not enough memory
  2006-02-18  0:41     ` Nigel Cunningham
@ 2006-02-18  0:57       ` Richard Mittendorfer
  2006-02-18  0:57         ` Nigel Cunningham
  0 siblings, 1 reply; 11+ messages in thread
From: Richard Mittendorfer @ 2006-02-18  0:57 UTC (permalink / raw
  To: Nigel Cunningham; +Cc: linux-kernel

Also sprach Nigel Cunningham <ncunningham@cyclades.com> (Sat, 18 Feb
2006 10:41:07 +1000):
> Hi.

Hi,
 
> On Saturday 18 February 2006 10:40, Richard Mittendorfer wrote:
> > Also sprach Nigel Cunningham <ncunningham@cyclades.com> (Sat, 18 Feb
> > 2006 10:07:58 +1000):
> > > On Saturday 18 February 2006 09:58, Richard Mittendorfer wrote:
> > > > swsusp: Need to copy 15526 pages
> > > > swsusp: Not enough free memory
> > > > Error -12 suspending
> > > > [...]
> > >
> > > swsusp needs to be able to free half your memory to be able to
> > > suspend. I  don't know it intimately, but you may well be failing
> > > to do this. Being  completely biased (and not unwilling to admit
> > > it!), I'd suggest you try  Suspend2 (www.suspend2.net). It doesn't
> > > have such a limitation.
> >
> > Thanks for this hint. However, I'm using ck's patches and having
> > errors compiling sched.c. Just took a quick look: I don't think I
> > can get them working together. The  rest of the suspend2 patch (for
> > 2.6.15.1) seems to apply fine to 2.6.15.4 also (Not much changes
> > IIRC).
> 
> http://iphitus.loudas.com/archck.php contains both Con's patches and
> Suspend2.

Ha! If everthing would work out that smoothly. :-)
 
> Regards,
> 
> Nigel

big THX, ritch

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [swsusp] not enough memory
  2006-02-18  0:57       ` Richard Mittendorfer
@ 2006-02-18  0:57         ` Nigel Cunningham
  0 siblings, 0 replies; 11+ messages in thread
From: Nigel Cunningham @ 2006-02-18  0:57 UTC (permalink / raw
  To: Richard Mittendorfer; +Cc: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 1579 bytes --]

Hi.

On Saturday 18 February 2006 10:57, Richard Mittendorfer wrote:
> > On Saturday 18 February 2006 10:40, Richard Mittendorfer wrote:
> > > Also sprach Nigel Cunningham <ncunningham@cyclades.com> (Sat, 18 Feb
> > >
> > > 2006 10:07:58 +1000):
> > > > On Saturday 18 February 2006 09:58, Richard Mittendorfer wrote:
> > > > > swsusp: Need to copy 15526 pages
> > > > > swsusp: Not enough free memory
> > > > > Error -12 suspending
> > > > > [...]
> > > >
> > > > swsusp needs to be able to free half your memory to be able to
> > > > suspend. I  don't know it intimately, but you may well be failing
> > > > to do this. Being  completely biased (and not unwilling to admit
> > > > it!), I'd suggest you try  Suspend2 (www.suspend2.net). It doesn't
> > > > have such a limitation.
> > >
> > > Thanks for this hint. However, I'm using ck's patches and having
> > > errors compiling sched.c. Just took a quick look: I don't think I
> > > can get them working together. The  rest of the suspend2 patch (for
> > > 2.6.15.1) seems to apply fine to 2.6.15.4 also (Not much changes
> > > IIRC).
> >
> > http://iphitus.loudas.com/archck.php contains both Con's patches and
> > Suspend2.
>
> Ha! If everthing would work out that smoothly. :-)
>
> > Regards,
> >
> > Nigel
>
> big THX, ritch

You're welcome ;) If you have any further problems, feel free to email again. 
Better still, try the Suspend2 site and mailing lists - we've got some really 
good docs and really helpful users. There's also an irc channel on Freenode.

Regards,

Nigel

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [swsusp] not enough memory
  2006-02-18  0:07 ` Nigel Cunningham
  2006-02-18  0:40   ` Richard Mittendorfer
@ 2006-02-18 15:08   ` Pavel Machek
  1 sibling, 0 replies; 11+ messages in thread
From: Pavel Machek @ 2006-02-18 15:08 UTC (permalink / raw
  To: Nigel Cunningham; +Cc: Richard Mittendorfer, linux-kernel

Hi!

> > On my 64MB notebook I get the following message, when going swsusp:
> >
> > ..
> > swsusp: Need to copy 15526 pages
> > swsusp: Not enough free memory
> > Error -12 suspending
> > ..
> >
> > # free
> >              total     used     free   shared    buffers   cached
> > Mem:         62760    59884     2876        0       3828    16052
> > -/+ buffers/cache:    40004    22756
> > Swap:       200804    30316   170488
> >
> > If I end all apps but the XServer it works. I've allready added some
> > more swapspace, but that didn't help. So, how much memory will I need
> > for a successful suspend or better (since i can't stuff any more into
> > it) is there a way to minimize the amount needed?
> 
> swsusp needs to be able to free half your memory to be able to suspend. I 
> don't know it intimately, but you may well be failing to do this. Being 
> completely biased (and not unwilling to admit it!), I'd suggest you try 
> Suspend2 (www.suspend2.net). It doesn't have such a limitation.

Actually suspend2 has exactly the same limitation. If more than
half memory is occupied by something else than disk caches,
you loose in swsusp and suspend2.


-- 
64 bytes from 195.113.31.123: icmp_seq=28 ttl=51 time=448769.1 ms         


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [swsusp] not enough memory
  2006-02-17 23:58 [swsusp] not enough memory Richard Mittendorfer
  2006-02-18  0:07 ` Nigel Cunningham
@ 2006-02-18 15:11 ` Pavel Machek
  2006-02-18 17:57   ` Richard Mittendorfer
  2006-05-02  3:28 ` [swsusp] not enough memory [solved with 2.6.17-rc3] Richard Mittendorfer
  2 siblings, 1 reply; 11+ messages in thread
From: Pavel Machek @ 2006-02-18 15:11 UTC (permalink / raw
  To: Richard Mittendorfer; +Cc: linux-kernel

On Sat 18-02-06 00:58:14, Richard Mittendorfer wrote:
> Hi *,
> 
> On my 64MB notebook I get the following message, when going swsusp:
> 
> ..
> swsusp: Need to copy 15526 pages
> swsusp: Not enough free memory
> Error -12 suspending
> ..
> 
> # free
>              total     used     free   shared    buffers   cached
> Mem:         62760    59884     2876        0       3828    16052
> -/+ buffers/cache:    40004    22756
> Swap:       200804    30316   170488
> 
> If I end all apps but the XServer it works. I've allready added some
> more swapspace, but that didn't help. So, how much memory will I need
> for a successful suspend or better (since i can't stuff any more into 
> it) is there a way to minimize the amount needed?

128MB should be enough for you. Or try modifying try_to_free memory routine to
retry shrink_all_mem few more times, with schedule()  in between...
-- 
64 bytes from 195.113.31.123: icmp_seq=28 ttl=51 time=448769.1 ms         


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [swsusp] not enough memory
  2006-02-18 15:11 ` Pavel Machek
@ 2006-02-18 17:57   ` Richard Mittendorfer
  2006-02-18 18:00     ` Pavel Machek
  0 siblings, 1 reply; 11+ messages in thread
From: Richard Mittendorfer @ 2006-02-18 17:57 UTC (permalink / raw
  To: Pavel Machek; +Cc: linux-kernel

Also sprach Pavel Machek <pavel@suse.cz> (Sat, 18 Feb 2006 16:11:16
+0100):
> On Sat 18-02-06 00:58:14, Richard Mittendorfer wrote:
> > If I end all apps but the XServer it works. I've allready added some
> > more swapspace, but that didn't help. So, how much memory will I
> > need for a successful suspend or better (since i can't stuff any
> > more into  it) is there a way to minimize the amount needed?
> 
> 128MB should be enough for you. 

Swap? 128M was my first attempt -- OOM when the box was heavily loaded.
IIRC no effect on swsusp - there are 64M Ram + 2M Video + Kernel + X?. 
The reason I did it were some google results talking about free pages.
There were some solutions talking about adding swap.
 
(Ram? Would be the way to go, but it's fully loaded.)

> Or try modifying try_to_free memory
> routine to retry shrink_all_mem few more times, with schedule()  in
> between...

Uhh. I don't think this will be a good idea /me ha[ck|rm]ing good ol'
linux source. ;-)

sl ritch

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [swsusp] not enough memory
  2006-02-18 17:57   ` Richard Mittendorfer
@ 2006-02-18 18:00     ` Pavel Machek
  0 siblings, 0 replies; 11+ messages in thread
From: Pavel Machek @ 2006-02-18 18:00 UTC (permalink / raw
  To: Richard Mittendorfer; +Cc: linux-kernel

On So 18-02-06 18:57:59, Richard Mittendorfer wrote:
> Also sprach Pavel Machek <pavel@suse.cz> (Sat, 18 Feb 2006 16:11:16
> +0100):
> > On Sat 18-02-06 00:58:14, Richard Mittendorfer wrote:
> > > If I end all apps but the XServer it works. I've allready added some
> > > more swapspace, but that didn't help. So, how much memory will I
> > > need for a successful suspend or better (since i can't stuff any
> > > more into  it) is there a way to minimize the amount needed?
> > 
> > 128MB should be enough for you. 
> 
> Swap? 128M was my first attempt -- OOM when the box was heavily loaded.
> IIRC no effect on swsusp - there are 64M Ram + 2M Video + Kernel + X?. 
> The reason I did it were some google results talking about free pages.
> There were some solutions talking about adding swap.
>  
> (Ram? Would be the way to go, but it's fully loaded.)

RAM. No ammount of swap will help you.

> > Or try modifying try_to_free memory
> > routine to retry shrink_all_mem few more times, with schedule()  in
> > between...
> 
> Uhh. I don't think this will be a good idea /me ha[ck|rm]ing good ol'
> linux source. ;-)

It should be easy. It is quite hard to loose much data this way ;-).

								Pavel
-- 
Web maintainer for suspend.sf.net (www.sf.net/projects/suspend) wanted...

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [swsusp] not enough memory [solved with 2.6.17-rc3]
  2006-02-17 23:58 [swsusp] not enough memory Richard Mittendorfer
  2006-02-18  0:07 ` Nigel Cunningham
  2006-02-18 15:11 ` Pavel Machek
@ 2006-05-02  3:28 ` Richard Mittendorfer
  2 siblings, 0 replies; 11+ messages in thread
From: Richard Mittendorfer @ 2006-05-02  3:28 UTC (permalink / raw
  To: linux-kernel; +Cc: Pavel Machek

Also sprach Richard Mittendorfer <delist@gmx.net> (Sat, 18 Feb 2006 00:58:14 +0100):
> On my 64MB notebook I get the following message, when going swsusp:
> 
> ..
> swsusp: Need to copy 15526 pages
> swsusp: Not enough free memory
> Error -12 suspending
> ..
> 
> # free
>              total     used     free   shared    buffers   cached
> Mem:         62760    59884     2876        0       3828    16052
> -/+ buffers/cache:    40004    22756
> Swap:       200804    30316   170488
> 
> If I end all apps but the XServer it works. I've allready added some
> more swapspace, but that didn't help. So, how much memory will I need
> for a successful suspend or better (since i can't stuff any more into 
> it) is there a way to minimize the amount needed?

Seems fixed with 2.6.17-rc3. Field-testet on the loaded box several times.

_._. .._ _  .... . ._. .  __..__  _._. .._ _  .... . ._. .
libre powermanagement[2300]: suspend to disk.
libre powermanagement[2309]: Found some modules loaded .. unloading
libre kernel: ACPI: PCI interrupt for device 0000:05:00.0 disabled
libre kernel: ath_pci: driver unloaded
libre kernel: Stopping tasks: ====================================================|
libre kernel: Shrinking memory...  ^H-^H\^Hdone (10007 pages freed)
libre kernel: ACPI: PCI interrupt for device 0000:00:13.1 disabled
libre kernel: ACPI: PCI interrupt for device 0000:00:13.0 disabled
libre kernel: swsusp: Need to copy 6061 pages
libre kernel: ACPI: PCI Interrupt 0000:00:13.0[A] -> Link [LNKA] -> GSI 11 (level, low) -> IRQ 11
libre kernel: PCI: Setting latency timer of device 0000:00:13.0 to 64
libre kernel: ACPI: PCI Interrupt 0000:00:13.1[B] -> Link [LNKB] -> GSI 11 (level, low) -> IRQ 11
libre kernel: PCI: Setting latency timer of device 0000:00:13.1 to 64
libre kernel: Restarting tasks... done
libre powermanagement[2344]: Reloading modules ..
_._. .._ _  .... . ._. .  __..__  _._. .._ _  .... . ._. .

big THX, 

ritch

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2006-05-02  3:28 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-02-17 23:58 [swsusp] not enough memory Richard Mittendorfer
2006-02-18  0:07 ` Nigel Cunningham
2006-02-18  0:40   ` Richard Mittendorfer
2006-02-18  0:41     ` Nigel Cunningham
2006-02-18  0:57       ` Richard Mittendorfer
2006-02-18  0:57         ` Nigel Cunningham
2006-02-18 15:08   ` Pavel Machek
2006-02-18 15:11 ` Pavel Machek
2006-02-18 17:57   ` Richard Mittendorfer
2006-02-18 18:00     ` Pavel Machek
2006-05-02  3:28 ` [swsusp] not enough memory [solved with 2.6.17-rc3] Richard Mittendorfer

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.