From: "Rafael J. Wysocki" <rjw@sisk.pl>
To: Alan Jenkins <alan-jenkins@tuffmail.co.uk>
Cc: "linux-kernel" <linux-kernel@vger.kernel.org>,
linux-pm@lists.linux-foundation.org
Subject: Re: hibernation bug - swap goes AWOL
Date: Tue, 16 Dec 2008 22:06:53 +0100 [thread overview]
Message-ID: <200812162206.53744.rjw@sisk.pl> (raw)
In-Reply-To: <4947ED8C.1010709@tuffmail.co.uk>
On Tuesday, 16 of December 2008, Alan Jenkins wrote:
> This is on 2.6.27-rc9. I can easily test patches, or a more recent
> kernel version.
>
> I think I've run across a bug in hibernation. Steps to reproduce:
>
> 1) Conspire to ensure insufficient swap space for hibernation
> 2) Attempt to hibernate, and fail
> 3) Attempt to hibernate *again*, and fail
> 4) try swapoff
> Outcome:
>
> # swapoff /dev/sda6
> swapoff: /dev/sda6: Invalid argument
> # cat /proc/swaps
> Filename Type Size Used
> Priority
> /dev/sda6 partition 1494004 1350564 -1
>
> Incidentally "swapoff -a" fails silently, which I think is a bug in
> swapoff (i.e. it should report the error).
>
> I don't see any backtraces in dmesg; the only errors it shows is the
> failure to hibernate
>
> If I free up some memory and try to hibernate again, I get a different
> error - "Cannot find swap device, try swapon -a.". Now swapon -a
> doesn't work, but if I target the specific device...
>
> # swapon /dev/sda6
> # cat /proc/swaps
> Filename Type Size Used
> Priority
> /dev/sda6 partition 1494004 331060 -1
> /dev/sda6 partition 1494004 0 -2
>
> Wheee! Interestingly I can now hibernate and resume. But it's not
> safe; my desktop session dies horribly.
Well, I'm not sure if the bug is in the hibernate code or in the swap code.
Anyway, please file a bugzilla report about that.
Thanks,
Rafael
next prev parent reply other threads:[~2008-12-16 21:07 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-16 18:03 hibernation bug - swap goes AWOL Alan Jenkins
2008-12-16 21:06 ` Rafael J. Wysocki [this message]
2008-12-16 21:18 ` Alan Jenkins
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200812162206.53744.rjw@sisk.pl \
--to=rjw@sisk.pl \
--cc=alan-jenkins@tuffmail.co.uk \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@lists.linux-foundation.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox