Bug 566391 - s2disk failed
Summary: s2disk failed
Status: RESOLVED WONTFIX
Alias: None
Product: openSUSE 11.2
Classification: openSUSE
Component: Kernel (show other bugs)
Version: Final
Hardware: x86-64 openSUSE 11.2
: P3 - Medium : Major (vote)
Target Milestone: ---
Assignee: Holger Macht
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-21 12:26 UTC by Elmar Stellnberger
Modified: 2011-02-15 15:15 UTC (History)
2 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
logs (70.00 KB, application/x-tar)
2009-12-21 12:27 UTC, Elmar Stellnberger
Details
dmesg directly after failed s2disk (211.26 KB, text/plain)
2010-01-20 10:30 UTC, Elmar Stellnberger
Details
suspend-inhibit.patch - log that if suspend has been inhibited (554 bytes, patch)
2010-01-21 11:35 UTC, Elmar Stellnberger
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Elmar Stellnberger 2009-12-21 12:26:02 UTC
User-Agent:       Mozilla/5.0 (X11; U; Linux x86_64; de; rv:1.9.1.5) Gecko/20091103 SUSE/3.5.5-1.1.2 Firefox/3.5.5

Now even s2disk has suddenly failed although it kept working up to now.

Reproducible: Sometimes
Comment 1 Elmar Stellnberger 2009-12-21 12:27:52 UTC
Created attachment 333691 [details]
logs
Comment 2 Holger Macht 2010-01-05 14:37:58 UTC
Did you install all the updates? What does exectly happen? Just nothing?
Comment 3 Elmar Stellnberger 2010-01-05 16:21:51 UTC
 Yes.- and I have updated to kernel 2.6.32.2-0.0.16.d8b32f9-desktop.
The disk load led blinks after issuing powersave -U but nothing else
happens:
> powersave -U
method return sender=:1.0 -> dest=:1.715 reply_serial=2
   int32 1
Comment 4 Elmar Stellnberger 2010-01-05 16:22:19 UTC
.
Comment 5 Elmar Stellnberger 2010-01-05 19:55:02 UTC
Most likely a kernel issue. S2disk has worked with initial installation. However the default kernel of os11.2 is so buggy that it is impossible to use (not even cups runs with it, ksoftirqd problem). Newer kernels are more stable but lack crucial powersaving features (s2ram & s2disk problems).
Comment 6 Holger Macht 2010-01-07 09:20:07 UTC
What do you mean with newer kernels? Which one do you have installed?

Otherwise, you should create bug reports for the other issues (maybe you have already) where the default 11.2 kernel doesn't work. I can't help much when you use a custom kernel. Does s2disk work with the default 11.2 kernel? If so, this bug is invalid and others should be opened.
Comment 7 Elmar Stellnberger 2010-01-07 17:11:21 UTC
  I am not using a custom kernel. I am using the kernel from http://ftp.suse.com/pub/projects/kernel/kotd/master/ which is recommended if you need an update in advance.
  Yes, I have reported all these bugs (crashes of cups due to root cause, several crashes of the default 11.2 kernel, errors of Apparmor kernel module.). It is not my fault if nobody feels responsible to provide updates for known hazards.
  I will urge an update as soon as the most vital issues are resolved. Please do not close but push forward a resolution. Then I will ask for an update. S2disk has probably been working with the default kernel although I have not had the time to test this for a longer period of time.
Comment 8 Elmar Stellnberger 2010-01-13 11:58:40 UTC
 Please do have a look at this! S2disk has now been refused by couple of subsequent kernel releases. This is just too bad since the main reason why I prefer Linux over FreeBSD, Mac OS X and Solaris is the good s2disk support. It makes live considerably easier and saves power and time. Having to leave my machine in s2ram over night is an enormous waste of energy especially if many people all over the world have to do so. Besides this s2ram does no memory compression so that all the memory will be used up soon without s2isk even if just a few programs are running (closing all user programs becomes inevitable).
Comment 9 Jeff Mahoney 2010-01-13 16:09:59 UTC
(In reply to comment #3)
>  Yes.- and I have updated to kernel 2.6.32.2-0.0.16.d8b32f9-desktop.
> The disk load led blinks after issuing powersave -U but nothing else
> happens:
> > powersave -U
> method return sender=:1.0 -> dest=:1.715 reply_serial=2
>    int32 1

I just saw this in a separate bug. Let me see if it's the same.
Comment 10 Elmar Stellnberger 2010-01-18 10:48:37 UTC
 This is a major flaw while other problems have already been resolved (ksoftirqd 100% cpu, scheduler crashes). Just think of the many annoyed users an the huge power waste! We need to get forward to a stable kernel to distribute a patch for openSUSE 11.2. Please do assign an appropriate priority!
Comment 11 Rafael Wysocki 2010-01-19 21:41:52 UTC
Please attach a dmesg output generated right after a failing hibernation.
Comment 12 Elmar Stellnberger 2010-01-20 10:30:44 UTC
Created attachment 337616 [details]
dmesg directly after failed s2disk

method return sender=:1.0 -> dest=:1.462 reply_serial=2
   int32 1

What is the difference between dmesg and /var/log/messages? Why is the provision of log/messages not sufficient?
Comment 13 Rafael Wysocki 2010-01-20 21:57:22 UTC
(In reply to comment #12)
> Created an attachment (id=337616) [details]
> dmesg directly after failed s2disk
> 
> method return sender=:1.0 -> dest=:1.462 reply_serial=2
>    int32 1
> 
> What is the difference between dmesg and /var/log/messages? Why is the
> provision of log/messages not sufficient?

dmesg output contains the kernel messages only.

In your dmesg output there are only messages related to suspend to RAM, so if s2disk fails, that happens in the user space.

Can you try s2disk after a fresh boot and attach the dmesg output generated after the resume (or failure, whichever happens)?
Comment 14 Elmar Stellnberger 2010-01-21 11:33:25 UTC
  Ooops, I have overlooked an error:
> cat /var/lib/s2disk.conf
resume device = /dev/sda7
...
> cat /proc/cmdline
root=/dev/disk/by-id/ata-WDC_...-part5 resume=/dev/disk/by-id/ata-WDC_...-part8 splash=silent quiet vga=0x375

 That is why I wanna have the content of /var/run/pm-utils.inhibit in /var/log/pm-suspend.log:
> cat /var/run/pm-utils.inhibit
resume partition '/dev/sda8' not active

 So please add the following to /usr/lib/pm-utils/functions:

	if [ -e "$INHIBIT" ]; then
	  echo $'\n################ suspend INHIBITED !! ################'
	  cat "$INHIBIT";echo; echo

  ... or at best directly distribute a patch.

  Under openSUSE 11.0 I have seen it fail because it thought do_hibernate was no function (the strangest error I have ever seen) - I have patched that, too.

  ... and there remains one other little thing to do:
powersave -U should have a non zero exit value if /usr/sbin/pm-hibernate had so, too.
Comment 15 Elmar Stellnberger 2010-01-21 11:35:24 UTC
Created attachment 337956 [details]
suspend-inhibit.patch - log that if suspend has been inhibited
Comment 17 Elmar Stellnberger 2010-01-27 12:05:17 UTC
  This will not be resolved just by better logging.
There is something totally messed up with the post-install script of the kernels at http://ftp.suse.com/pub/projects/kernel/kotd/master/.
 They do always install me a wrong suspend device.

resume=/dev/disk/by-id/ata-WDC_WD2500BEVS-22UST0_WD-WXC108372622-part8
instead of 
resume=/dev/disk/by-id/ata-WDC_WD2500BEVS-22UST0_WD-WXC108372622-part7

  Why doesn`t the script just leave things as they are if it can not detect the swap device (swapon -s)?
Comment 18 Holger Macht 2011-02-15 15:15:52 UTC
Sorry, there are no resources for debugging this further. Please open a new bug if the problem persists with openSUSE 11.4.