Skip to contentSkip to conversation

swsusp fails short on memory

DISCUSSION Felipe Alfaro Solana 3 participants 4 messages May 26, 2004 – May 31, 2004

lore
Share & tools
lore
#0 lore raw

Hello,

I'm somewhat ignorant on the inner workings of swsusp. I have a 256MB laptop machine running 2.6.7-rc1-bk2 + ACPI + swsusp two swap partitions, a 256MB swap partition on /dev/hda4 plus another 256MB swap on /dev/hda5. When trying to hibernate to disk, swsusp fails with the following error message:

PCMCIA: socket cf71302c: *** DANGER *** unable to remove socket power Stopping tasks:
====================================================================| Freeing memory: ..|
/critical section: counting pages to copy.[nosave pfn 0x2f2]............................................................... (pages needed: 46305+512=46817 free: 19214)
Suspend Machine: Couldn't get enough free pages, on 27603 pages short Suspend Machine: Suspend failed, trying to recover...
Fixing swap signatures... ok
Restarting tasks...<4>atkbd.c: Unknown key released (translated set 2, code 0x7a on isa0060/serio0).
atkbd.c: This is an XFree86 bug. It shouldn't access hardware directly.
done

What I can't unserstand is how swsusp fails with "couldn't get enough free pages". cat /proc/swaps tells:

Filename                  Type            Size    Used    Priority
/dev/hda4                 partition       281128  0       0
/dev/hda5                 partition       281096  192     1

What going on here? Why does swsusp fail when there is plenty of free swap space?

NOTE: The same happens while only using a big, 512MB swap partition.

Thanks.

#1 lore raw

Hi.

FWIW, it's talking about pages of memory, not on disk.

Regards,

Nigel

Signature · 7 lines
Nigel & Michelle Cunningham
C/- Westminster Presbyterian Church Belconnen
61 Templeton Street, Cook, ACT 2614.
+61 (2) 6251 7727(wk); +61 (2) 6254 0216 (home)

Evolution (n): A hypothetical process whereby infinitely improbable events occur
with alarming frequency, order arises from chaos, and no one is given credit.
#2 lore raw
In reply to Felipe Alfaro Solana

Hi!

Quoted 5 lines

I'm somewhat ignorant on the inner workings of swsusp. I have a 256MB laptop machine running 2.6.7-rc1-bk2 + ACPI + swsusp two swap partitions, a 256MB swap partition on /dev/hda4 plus another 256MB swap on /dev/hda5. When trying to hibernate to disk, swsusp fails with the following error message:

You need just one swap partition (256MB
should be enough).
Try suspending from single user mode.

Signature · 1 line
64 bytes from 195.113.31.123: icmp_seq=28 ttl=51 time=448769.1 ms         
#3 lore raw
Quoted 11 lines · Pavel Machek

Hi!

Quoted 5 lines

I'm somewhat ignorant on the inner workings of swsusp. I have a 256MB laptop machine running 2.6.7-rc1-bk2 + ACPI + swsusp two swap partitions, a 256MB swap partition on /dev/hda4 plus another 256MB swap on /dev/hda5. When trying to hibernate to disk, swsusp fails with the following error message:

You need just one swap partition (256MB
should be enough).
Try suspending from single user mode.

/proc/sys/vm/swappiness = 0 was the culprit of all my problems :) Thanks!