kernel-testers.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Regression: First hibernation attempt fails
@ 2009-04-09 11:13 Alan Jenkins
       [not found] ` <49DDD83F.507-cCz0Lq7MMjm9FHfhHBbuYA@public.gmane.org>
  0 siblings, 1 reply; 7+ messages in thread
From: Alan Jenkins @ 2009-04-09 11:13 UTC (permalink / raw)
  To: linux-pm-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA
  Cc: Kernel Testers List, linux-kernel

Yet another issue in 2.6.30-rc1 which was not present in 2.6.29 :-).  I
wonder if it rings any bells?

On my laptop (EEE 4G), the first attempt at hibernation fails. 
Subsequent attempts succeed.

If I use s2disk as normal, I see "snapshotting system", then before it
gets to write out the image, it aborts and switches back to X.   I can't
see any error message, even if I check the log with "dmesg".

If I use "echo disk > /sys/power/state", echo reports the error "Cannot
allocate memory".

This only happens if I've logged in to X first.  In fact, I narrowed it
down to gnome-power-manager.  If I kill gnome-power-manager beforehand,
then it doesn't happen.

Alan

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

* Re: Regression: First hibernation attempt fails
       [not found] ` <49DDD83F.507-cCz0Lq7MMjm9FHfhHBbuYA@public.gmane.org>
@ 2009-04-09 12:29   ` Alan Jenkins
  2009-04-10  9:23   ` [linux-pm] " Pavel Machek
  1 sibling, 0 replies; 7+ messages in thread
From: Alan Jenkins @ 2009-04-09 12:29 UTC (permalink / raw)
  To: linux-pm-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA
  Cc: Kernel Testers List, linux-kernel

On 4/9/09, Alan Jenkins <alan-jenkins-cCz0Lq7MMjm9FHfhHBbuYA@public.gmane.org> wrote:
> Yet another issue in 2.6.30-rc1 which was not present in 2.6.29 :-).  I
> wonder if it rings any bells?
>
> On my laptop (EEE 4G), the first attempt at hibernation fails.
> Subsequent attempts succeed.
>
> If I use s2disk as normal, I see "snapshotting system", then before it
> gets to write out the image, it aborts and switches back to X.   I can't
> see any error message, even if I check the log with "dmesg".
>
> If I use "echo disk > /sys/power/state", echo reports the error "Cannot
> allocate memory".
>
> This only happens if I've logged in to X first.  In fact, I narrowed it
> down to gnome-power-manager.  If I kill gnome-power-manager beforehand,
> then it doesn't happen.

Hmm... killing g-p-m doesn't seem to affect this any more, perhaps I
spoke too soon.  But not logging into X still avoids it.

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

* Re: [linux-pm] Regression: First hibernation attempt fails
       [not found] ` <49DDD83F.507-cCz0Lq7MMjm9FHfhHBbuYA@public.gmane.org>
  2009-04-09 12:29   ` Alan Jenkins
@ 2009-04-10  9:23   ` Pavel Machek
       [not found]     ` <20090410092318.GB30093-I/5MKhXcvmPrBKCeMvbIDA@public.gmane.org>
  1 sibling, 1 reply; 7+ messages in thread
From: Pavel Machek @ 2009-04-10  9:23 UTC (permalink / raw)
  To: Alan Jenkins
  Cc: linux-pm-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA,
	Kernel Testers List, linux-kernel, Rafael J. Wysocki

On Thu 2009-04-09 12:13:03, Alan Jenkins wrote:
> Yet another issue in 2.6.30-rc1 which was not present in 2.6.29 :-).  I
> wonder if it rings any bells?
> 
> On my laptop (EEE 4G), the first attempt at hibernation fails. 
> Subsequent attempts succeed.
> 
> If I use s2disk as normal, I see "snapshotting system", then before it
> gets to write out the image, it aborts and switches back to X.   I can't
> see any error message, even if I check the log with "dmesg".
> 
> If I use "echo disk > /sys/power/state", echo reports the error "Cannot
> allocate memory".
> 
> This only happens if I've logged in to X first.  In fact, I narrowed it
> down to gnome-power-manager.  If I kill gnome-power-manager beforehand,
> then it doesn't happen.

Anything interesting in dmesg?

-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

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

* Re: [linux-pm] Regression: First hibernation attempt fails
       [not found]     ` <20090410092318.GB30093-I/5MKhXcvmPrBKCeMvbIDA@public.gmane.org>
@ 2009-04-10 11:08       ` Alan Jenkins
       [not found]         ` <49DF289D.5070604-cCz0Lq7MMjm9FHfhHBbuYA@public.gmane.org>
  0 siblings, 1 reply; 7+ messages in thread
From: Alan Jenkins @ 2009-04-10 11:08 UTC (permalink / raw)
  To: Pavel Machek
  Cc: linux-pm-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA,
	Kernel Testers List, linux-kernel, Rafael J. Wysocki

Pavel Machek wrote:
> On Thu 2009-04-09 12:13:03, Alan Jenkins wrote:
>   
>> Yet another issue in 2.6.30-rc1 which was not present in 2.6.29 :-).  I
>> wonder if it rings any bells?
>>
>> On my laptop (EEE 4G), the first attempt at hibernation fails. 
>> Subsequent attempts succeed.
>>
>> If I use s2disk as normal, I see "snapshotting system", then before it
>> gets to write out the image, it aborts and switches back to X.   I can't
>> see any error message, even if I check the log with "dmesg".
>>
>> If I use "echo disk > /sys/power/state", echo reports the error "Cannot
>> allocate memory".
>>
>> This only happens if I've logged in to X first.  In fact, I narrowed it
>> down to gnome-power-manager.  If I kill gnome-power-manager beforehand,
>> then it doesn't happen.
>>     
>
> Anything interesting in dmesg?
>   

Nothing obvious. I've attached my latest at
<http://bugzilla.kernel.org/show_bug.cgi?id=13058>.

Regards
Alan

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

* Re: [linux-pm] Regression: First hibernation attempt fails
       [not found]         ` <49DF289D.5070604-cCz0Lq7MMjm9FHfhHBbuYA@public.gmane.org>
@ 2009-04-10 11:21           ` Pavel Machek
       [not found]             ` <20090410112115.GA2513-I/5MKhXcvmPrBKCeMvbIDA@public.gmane.org>
  0 siblings, 1 reply; 7+ messages in thread
From: Pavel Machek @ 2009-04-10 11:21 UTC (permalink / raw)
  To: Alan Jenkins
  Cc: linux-pm-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA,
	Kernel Testers List, linux-kernel, Rafael J. Wysocki

On Fri 2009-04-10 12:08:13, Alan Jenkins wrote:
> Pavel Machek wrote:
> > On Thu 2009-04-09 12:13:03, Alan Jenkins wrote:
> >   
> >> Yet another issue in 2.6.30-rc1 which was not present in 2.6.29 :-).  I
> >> wonder if it rings any bells?
> >>
> >> On my laptop (EEE 4G), the first attempt at hibernation fails. 
> >> Subsequent attempts succeed.
> >>
> >> If I use s2disk as normal, I see "snapshotting system", then before it
> >> gets to write out the image, it aborts and switches back to X.   I can't
> >> see any error message, even if I check the log with "dmesg".
> >>
> >> If I use "echo disk > /sys/power/state", echo reports the error "Cannot
> >> allocate memory".
> >>
> >> This only happens if I've logged in to X first.  In fact, I narrowed it
> >> down to gnome-power-manager.  If I kill gnome-power-manager beforehand,
> >> then it doesn't happen.
> >
> > Anything interesting in dmesg?
> 
> Nothing obvious. I've attached my latest at
> <http://bugzilla.kernel.org/show_bug.cgi?id=13058>.

Ok, next theory was that some module stuff is responsible (IIRC, from
the lists). Can you try with everything-built-in (no modules) kernel?
									Pavel
-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

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

* Re: [linux-pm] Regression: First hibernation attempt fails
       [not found]             ` <20090410112115.GA2513-I/5MKhXcvmPrBKCeMvbIDA@public.gmane.org>
@ 2009-04-10 11:35               ` Alan Jenkins
       [not found]                 ` <49DF2EE6.20203-cCz0Lq7MMjm9FHfhHBbuYA@public.gmane.org>
  0 siblings, 1 reply; 7+ messages in thread
From: Alan Jenkins @ 2009-04-10 11:35 UTC (permalink / raw)
  To: Pavel Machek
  Cc: linux-pm-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA,
	Kernel Testers List, linux-kernel, Rafael J. Wysocki

Pavel Machek wrote:
> On Fri 2009-04-10 12:08:13, Alan Jenkins wrote:
>   
>> Pavel Machek wrote:
>>     
>>> On Thu 2009-04-09 12:13:03, Alan Jenkins wrote:
>>>   
>>>       
>>>> Yet another issue in 2.6.30-rc1 which was not present in 2.6.29 :-).  I
>>>> wonder if it rings any bells?
>>>>
>>>> On my laptop (EEE 4G), the first attempt at hibernation fails. 
>>>> Subsequent attempts succeed.
>>>>
>>>> If I use s2disk as normal, I see "snapshotting system", then before it
>>>> gets to write out the image, it aborts and switches back to X.   I can't
>>>> see any error message, even if I check the log with "dmesg".
>>>>
>>>> If I use "echo disk > /sys/power/state", echo reports the error "Cannot
>>>> allocate memory".
>>>>
>>>> This only happens if I've logged in to X first.  In fact, I narrowed it
>>>> down to gnome-power-manager.  If I kill gnome-power-manager beforehand,
>>>> then it doesn't happen.
>>>>         
>>> Anything interesting in dmesg?
>>>       
>> Nothing obvious. I've attached my latest at
>> <http://bugzilla.kernel.org/show_bug.cgi?id=13058>.
>>     
>
> Ok, next theory was that some module stuff is responsible (IIRC, from
> the lists). Can you try with everything-built-in (no modules) kernel?
> 									Pavel
>   

It's still present in v2.6.30-rc1-136-g62b8e68, which includes "module:
try_then_request_module must wait".

I don't think it's due to a missing module, because it doesn't happen if
I run "s2disk" from a console without logging in to KDE. I've put some
more details in Bugzilla about how it is reproduced (and what makes it
go away), it's a bit confusing.

But so long as I get the conditions right, it reproduces 100%. I'm going
to just try bisecting it - unless anyone has any more suggestions.

Thanks
Alan

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

* [BISECTED] Regression: First hibernation attempt fails
       [not found]                 ` <49DF2EE6.20203-cCz0Lq7MMjm9FHfhHBbuYA@public.gmane.org>
@ 2009-04-10 14:04                   ` Alan Jenkins
  0 siblings, 0 replies; 7+ messages in thread
From: Alan Jenkins @ 2009-04-10 14:04 UTC (permalink / raw)
  To: Jens Axboe
  Cc: Pavel Machek,
	linux-pm-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA,
	Kernel Testers List, linux-kernel, Rafael J. Wysocki

Alan Jenkins wrote:
> Pavel Machek wrote:
>   
>> On Fri 2009-04-10 12:08:13, Alan Jenkins wrote:
>>   
>>     
>>> Pavel Machek wrote:
>>>     
>>>       
>>>> On Thu 2009-04-09 12:13:03, Alan Jenkins wrote:
>>>>   
>>>>       
>>>>         
>>>>> Yet another issue in 2.6.30-rc1 which was not present in 2.6.29 :-).  I
>>>>> wonder if it rings any bells?
>>>>>
>>>>> On my laptop (EEE 4G), the first attempt at hibernation fails. 
>>>>> Subsequent attempts succeed.
>>>>>
>>>>> If I use s2disk as normal, I see "snapshotting system", then before it
>>>>> gets to write out the image, it aborts and switches back to X.   I can't
>>>>> see any error message, even if I check the log with "dmesg".
>>>>>
>>>>> If I use "echo disk > /sys/power/state", echo reports the error "Cannot
>>>>> allocate memory".
>>>>>
>>>>> This only happens if I've logged in to X first.  In fact, I narrowed it
>>>>> down to gnome-power-manager.  If I kill gnome-power-manager beforehand,
>>>>> then it doesn't happen.
>>>>>         
>>>>>           
>>>> Anything interesting in dmesg?      
>>>>         

>>> Nothing obvious. I've attached my latest at
>>> <http://bugzilla.kernel.org/show_bug.cgi?id=13058>.
>>>       

Bisection succeeded:

1faa16d22877f4839bd433547d770c676d1d964c
"block: change the request allocation/congestion logic to be sync/async
based"

If I revert the commit, it fixes my bug.

Regards
Alan

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

end of thread, other threads:[~2009-04-10 14:04 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-09 11:13 Regression: First hibernation attempt fails Alan Jenkins
     [not found] ` <49DDD83F.507-cCz0Lq7MMjm9FHfhHBbuYA@public.gmane.org>
2009-04-09 12:29   ` Alan Jenkins
2009-04-10  9:23   ` [linux-pm] " Pavel Machek
     [not found]     ` <20090410092318.GB30093-I/5MKhXcvmPrBKCeMvbIDA@public.gmane.org>
2009-04-10 11:08       ` Alan Jenkins
     [not found]         ` <49DF289D.5070604-cCz0Lq7MMjm9FHfhHBbuYA@public.gmane.org>
2009-04-10 11:21           ` Pavel Machek
     [not found]             ` <20090410112115.GA2513-I/5MKhXcvmPrBKCeMvbIDA@public.gmane.org>
2009-04-10 11:35               ` Alan Jenkins
     [not found]                 ` <49DF2EE6.20203-cCz0Lq7MMjm9FHfhHBbuYA@public.gmane.org>
2009-04-10 14:04                   ` [BISECTED] " Alan Jenkins

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).