public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Re: swsusp: fix error handling in "not enough swap space"
@ 2004-04-24  3:17 Grzegorz Piotr Jaskiewicz
  2004-04-24  3:27 ` Nigel Cunningham
  2004-04-24 18:32 ` Pavel Machek
  0 siblings, 2 replies; 16+ messages in thread
From: Grzegorz Piotr Jaskiewicz @ 2004-04-24  3:17 UTC (permalink / raw)
  To: Pavel Machek; +Cc: kernel list

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

Hi

I am unable to suspend to swap nowdays, getting message 'not enough 
swapspace'.
My swap space is 1172704k in size (1GB).

nalesnik:~# fdisk -l /dev/hda

Disk /dev/hda: 40.0 GB, 40007761920 bytes
255 heads, 63 sectors/track, 4864 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1               1         146     1172713+  82  Linux swap
/dev/hda2             147        1605    11719417+  83  Linux
/dev/hda3            1606        4864    26177917+  83  Linux


Here's the message I got after issuing 'echo "4" >/proc/acpi/sleep':

...

/critical section: counting pages to copy..[nosave pfn 
0x463].................................................................
  (pages needed: 10056+512=10568 free: 18599)
Alloc pagedir
..[nosave pfn 0x463]...............................critical section/: 
done (10056 pages copied)
blk: queue c6d40e00, I/O limit 4095Mb (mask 0xffffffff)
Writing data to swap (10056 pages):  .<0> Kernel panic:
Not enough swapspace when writing data
  _


this is PCG-C1VE sony vaio picture book, dmesg attached. Kernel version 
2.6.6-rc2-bk2.




[-- Attachment #2: dmesg.txt.bz2 --]
[-- Type: application/octet-stream, Size: 4991 bytes --]

^ permalink raw reply	[flat|nested] 16+ messages in thread
* swsusp: fix error handling in "not enough swap space"
@ 2004-02-29 13:04 Pavel Machek
  0 siblings, 0 replies; 16+ messages in thread
From: Pavel Machek @ 2004-02-29 13:04 UTC (permalink / raw)
  To: Andrew Morton, kernel list

Hi!

Without this, if there's not enough swapspace, suspend fails, but
leaves devices suspended, leading to dead machine. Please apply,

							Pavel

--- tmp/linux/kernel/power/swsusp.c	2004-02-29 13:42:02.000000000 +0100
+++ linux/kernel/power/swsusp.c	2004-02-29 00:34:31.000000000 +0100
@@ -683,7 +683,11 @@
 
 	free_pages((unsigned long) pagedir_nosave, pagedir_order);
 	spin_unlock_irq(&suspend_pagedir_lock);
+
+	device_resume();
+	PRINTK( "Fixing swap signatures... " );
 	mark_swapfiles(((swp_entry_t) {0}), MARK_SWAP_RESUME);
+	PRINTK( "ok\n" );	
 }
 
 /*

 
-- 
When do you have a heart between your knees?
[Johanka's followup: and *two* hearts?]

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

end of thread, other threads:[~2004-04-26 20:55 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-04-24  3:17 swsusp: fix error handling in "not enough swap space" Grzegorz Piotr Jaskiewicz
2004-04-24  3:27 ` Nigel Cunningham
2004-04-24  4:04   ` Grzegorz Piotr Jaskiewicz
2004-04-24  4:13     ` Nigel Cunningham
2004-04-24  4:45       ` Grzegorz Piotr Jaskiewicz
2004-04-24 18:35         ` Pavel Machek
2004-04-25  6:48           ` Grzegorz Piotr Jaskiewicz
2004-04-25 20:46             ` Pavel Machek
2004-04-25  8:51           ` Grzegorz Piotr Jaskiewicz
2004-04-25 20:45             ` Pavel Machek
2004-04-26 20:22               ` Grzegorz Piotr Jaskiewicz
2004-04-26 20:32                 ` Pavel Machek
     [not found]                   ` <408D7555.1000607@pointblue.com.pl>
2004-04-26 20:54                     ` Pavel Machek
2004-04-24 18:32 ` Pavel Machek
2004-04-25  2:53   ` Grzegorz Piotr Jaskiewicz
  -- strict thread matches above, loose matches on Subject: below --
2004-02-29 13:04 Pavel Machek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox