Hello!
I applied to a vanilla kernel the following patches from
software-suspend-2.0.0.105-for-2.4.27:
10-preempt
10-preempt-log
20-software-suspend-linux-2.4.27-rev2-whole
30-software-suspend-core-2.0.0.104-whole
31-software-suspend-core-2.0.0.105-incremental
First of all:
After booting this kernel, I can't see any /proc/swsusp entries, but
/proc/sys/kernel/swsusp exists.
When trying to hibernate, suspension is canceled, because there wouldn't
be enough space in the swap device - which is obviously wrong. I've got
512 MB RAM and the swap partition has the same size. When trying to
hibernate, RAM is used half and the swap partition isn't used at all.
/var/log/messages says:
Sep 6 21:19:47 athlon kernel: Software Suspend 2.0.0.105: Swap space
signature found.
Sep 6 21:19:47 athlon kernel: Software Suspend 2.0.0.105: Suspending enabled.
Sep 6 21:19:47 athlon kernel: Software Suspend 2.0.0.105: Initiating a
software_suspend cycle.
Sep 6 21:19:50 athlon kernel: Couldn't get enough yet. 10334 pages short.
Sep 6 21:19:50 athlon kernel: Unable to free sufficient memory to
suspend. Still need 69083 pages.
Sep 6 21:19:50 athlon kernel: Please include the following information in
bug reports:
Sep 6 21:19:50 athlon kernel: - SWSUSP core : 2.0.0.105
Sep 6 21:19:50 athlon kernel: - Kernel Version : 2.4.27
Sep 6 21:19:50 athlon kernel: - Version spec. : 2.0.1
Sep 6 21:19:50 athlon kernel: - Compiler vers. : 3.3
Sep 6 21:19:50 athlon kernel: - Modules loaded : nfs nfsd lockd sunrpc
eepro100 mii sis900 crc32 serial usb-storage scsi_mod uhci usbcore
parport_pc lp parport loop lvm-mod unix
Sep 6 21:19:50 athlon kernel: - Attempt number : 1
Sep 6 21:19:50 athlon kernel: - Pageset sizes : 0 and 0 (166 low).
Sep 6 21:19:50 athlon kernel: - Parameters : 257 0 0 1 512 2048
Sep 6 21:19:50 athlon kernel: - Calculations : Image size: 70501. Ram
to suspend: 73295.
Sep 6 21:19:50 athlon kernel: - Limits : 131056 pages RAM.
Initial boot: 128300.
Sep 6 21:19:50 athlon kernel: - Overall expected compression percentage: 0.
Sep 6 21:19:51 athlon kernel: - GZIP compressor enabled.
Sep 6 21:19:51 athlon kernel: - Swapwriter active.
Sep 6 21:19:51 athlon kernel: Swap available for image: 125293.
Sep 6 21:19:51 athlon kernel: - Debugging compiled in.
Sep 6 21:19:51 athlon kernel: - Max ranges used: 14620 ranges in 43 pages.
Sep 6 21:19:51 athlon kernel: - Suspend cancelled. No I/O speed stats.
My configuration:
.config:
CONFIG_SOFTWARE_SUSPEND2_CORE=y
CONFIG_SOFTWARE_SUSPEND2=y
CONFIG_SOFTWARE_SUSPEND_SWAPWRITER=y
CONFIG_SOFTWARE_SUSPEND_GZIP_COMPRESSION=y
# CONFIG_SOFTWARE_SUSPEND_LZF_COMPRESSION is not set
CONFIG_SOFTWARE_SUSPEND_TEXT_MODE=y
# CONFIG_SOFTWARE_SUSPEND_BOOTSPLASH is not set
CONFIG_SOFTWARE_SUSPEND_DEBUG=y
# CONFIG_SOFTWARE_SUSPEND_KEEP_IMAGE is not set
CONFIG_SOFTWARE_SUSPEND_RELAXED_PROC=y
CONFIG_SOFTWARE_SUSPEND_DEFAULT_RESUME2="swap:/dev/hda9"
lilo.conf:
image = /boot/vmlinuz-2.4.27
label = 2427
root = /dev/hda1
append="resume2=swap:/dev/hda9"
If there is not more than about 150MB of RAM used, suspension and resume
does work with 2.0.0.105, too.
Does anybody know what to do to get it working?
Thanks for any hint,
kind regards,
Andreas Hartmann
---------------------------------------------------------------------------------
Hibernation works well with kernel 2.4.26 and swsusp 2.0.0.66:
Sep 6 19:25:43 athlon kernel: Should have tried to free page c14a4f94.
Sep 6 19:25:43 athlon kernel: Software Suspend 2.0.0.66: Swap space
signature found.
Sep 6 19:25:43 athlon kernel: Software Suspend 2.0.0.66: Suspending enabled.
Sep 6 19:25:43 athlon kernel: Software Suspend 2.0.0.66: Initiating a
software_suspend cycle.
Sep 6 19:26:04 athlon kernel: syslogd (144) is busy.
Sep 6 19:26:04 athlon kernel: tee (597) is busy.
Sep 6 19:26:04 athlon kernel: serial.c: Suspending 3f8
Sep 6 19:26:04 athlon kernel: serial.c: Suspending 2f8
Sep 6 19:26:04 athlon kernel: serial.c: Resuming 3f8
Sep 6 19:26:04 athlon kernel: serial.c: Resuming 2f8
Sep 6 19:26:04 athlon kernel: Please include the following information in
bug reports:
Sep 6 19:26:04 athlon kernel: - SWSUSP core : 2.0.0.66
Sep 6 19:26:04 athlon kernel: - Kernel Version : 2.4.26
Sep 6 19:26:04 athlon kernel: - Version spec. : 2.0.1
Sep 6 19:26:04 athlon kernel: - Compiler vers. : 3.3
Sep 6 19:26:04 athlon kernel: - Modules loaded : snd-pcm-oss
snd-mixer-oss snd-via82xx snd-pcm snd-timer s
Sep 6 19:26:04 athlon kernel: - Attempt number : 1
Sep 6 19:26:04 athlon kernel: - Pageset sizes : 9626 and 58059 (58059 low).
Sep 6 19:26:04 athlon kernel: - Parameters : 0 0 0 1 512 32
Sep 6 19:26:04 athlon kernel: - Calculations : Image size: 67728. Ram
to suspend: 1156.
Sep 6 19:26:04 athlon kernel: - Limits : 131056 pages RAM.
Initial boot: 128291.
Sep 6 19:26:04 athlon kernel: - Overall expected compression percentage: 0.
Sep 6 19:26:04 athlon kernel: - Swapwriter active.
Sep 6 19:26:04 athlon kernel: Swap available for image: 128510.
Sep 6 19:26:04 athlon kernel: - GZIP compressor enabled.
Sep 6 19:26:04 athlon kernel: Compressed 277237760 bytes into 88717381.
Sep 6 19:26:04 athlon kernel: Image compressed by 68 percent.
Sep 6 19:26:04 athlon kernel: - Debugging compiled in.
Sep 6 19:26:04 athlon kernel: - Max ranges used: 13662 ranges in 41 pages.
Sep 6 19:26:04 athlon kernel: - I/O speed: Write 15 MB/s, Read 45 MB/s.
Hi.
On Wed, 2004-09-08 at 05:23, Andreas Hartmann wrote:
> Hello!
First, I should mention that your posting should really go to one of the
mailing lists on Berlios. I'll cc there now :>
> I applied to a vanilla kernel the following patches from
> software-suspend-2.0.0.105-for-2.4.27:
>
> 10-preempt
> 10-preempt-log
> 20-software-suspend-linux-2.4.27-rev2-whole
> 30-software-suspend-core-2.0.0.104-whole
> 31-software-suspend-core-2.0.0.105-incremental
>
> First of all:
> After booting this kernel, I can't see any /proc/swsusp entries, but
> /proc/sys/kernel/swsusp exists.
Yes, that's because recent versions use /proc/software_suspend/ instead.
> When trying to hibernate, suspension is canceled, because there wouldn't
> be enough space in the swap device - which is obviously wrong. I've got
> 512 MB RAM and the swap partition has the same size. When trying to
> hibernate, RAM is used half and the swap partition isn't used at all.
Hmm. It should work, and I'm using 2.4.27 on my laptop. That said, I'm
working on some improvements to suspend's memory management. 106 should
be out shortly.
Regards,
Nigel
--
Nigel Cunningham
Pastoral Worker
Christian Reformed Church of Tuggeranong
PO Box 1004, Tuggeranong, ACT 2901
Many today claim to be tolerant. True tolerance, however, can cope with others
being intolerant.