* dom0 is stalled until a keypress
@ 2011-09-05 9:19 Rafal Wojtczuk
2011-09-06 15:49 ` Dan Magenheimer
2011-09-06 19:04 ` Jeremy Fitzhardinge
0 siblings, 2 replies; 8+ messages in thread
From: Rafal Wojtczuk @ 2011-09-05 9:19 UTC (permalink / raw)
To: xen-devel
Hello,
The following bizarre behaviour was observed on xen4.1+suse dom0 2.6.38, on
an old Core Duo laptop; maybe someone can hint what is wrong.
Dom0 boot stalls after an init.d script prints "Starting udev". Then nothing
seems to happen. I need to press any key to observe progress - I need to do
it tens of times for the boot to finish. After X starts fine, then there is
no need for keypressing anymore.
A particularly disturbing fact is that qrexec_daemon parent, that basically
does
for (;;) { sleep(1); fprintf(stderr, "."); }
does not print dots, until a keypress arrives. So something is very wrong
with timers.
Somehow similarly, pm-suspend sometimes hangs at some stage - after detaching
power cord, machine enters S3 immediately.
This is vaguely similar to the issue described in
https://lkml.org/lkml/2008/9/14/122
but this time, "nohz=off" does not help.
"cpufreq=dom0-kernel" cures the symptoms; but it is not a sideeffectless
solution. Any idea what is going on or how to debug it ?
Regards,
RW
^ permalink raw reply [flat|nested] 8+ messages in thread
* RE: dom0 is stalled until a keypress
2011-09-05 9:19 dom0 is stalled until a keypress Rafal Wojtczuk
@ 2011-09-06 15:49 ` Dan Magenheimer
2011-09-06 16:35 ` Joanna Rutkowska
2011-09-06 19:04 ` Jeremy Fitzhardinge
1 sibling, 1 reply; 8+ messages in thread
From: Dan Magenheimer @ 2011-09-06 15:49 UTC (permalink / raw)
To: Rafal Wojtczuk, xen-devel
> From: Rafal Wojtczuk [mailto:rafal@invisiblethingslab.com]
> Sent: Monday, September 05, 2011 3:20 AM
> To: xen-devel@lists.xensource.com
> Subject: [Xen-devel] dom0 is stalled until a keypress
>
> Hello,
> The following bizarre behaviour was observed on xen4.1+suse dom0 2.6.38, on
> an old Core Duo laptop; maybe someone can hint what is wrong.
> Dom0 boot stalls after an init.d script prints "Starting udev". Then nothing
> seems to happen. I need to press any key to observe progress - I need to do
> it tens of times for the boot to finish. After X starts fine, then there is
> no need for keypressing anymore.
> A particularly disturbing fact is that qrexec_daemon parent, that basically
> does
> for (;;) { sleep(1); fprintf(stderr, "."); }
> does not print dots, until a keypress arrives. So something is very wrong
> with timers.
> Somehow similarly, pm-suspend sometimes hangs at some stage - after detaching
> power cord, machine enters S3 immediately.
> This is vaguely similar to the issue described in
> https://lkml.org/lkml/2008/9/14/122
> but this time, "nohz=off" does not help.
>
> "cpufreq=dom0-kernel" cures the symptoms; but it is not a sideeffectless
> solution. Any idea what is going on or how to debug it ?
ISTR seeing this on a Core(2?)Duo laptop and I think the
workaround was setting max_cstate=0 (as Xen boot parameter).
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: dom0 is stalled until a keypress
2011-09-06 15:49 ` Dan Magenheimer
@ 2011-09-06 16:35 ` Joanna Rutkowska
2011-09-06 17:17 ` Dan Magenheimer
0 siblings, 1 reply; 8+ messages in thread
From: Joanna Rutkowska @ 2011-09-06 16:35 UTC (permalink / raw)
To: Dan Magenheimer; +Cc: xen-devel, Rafal Wojtczuk
[-- Attachment #1.1: Type: text/plain, Size: 1625 bytes --]
On 09/06/11 17:49, Dan Magenheimer wrote:
>> From: Rafal Wojtczuk [mailto:rafal@invisiblethingslab.com]
>> Sent: Monday, September 05, 2011 3:20 AM
>> To: xen-devel@lists.xensource.com
>> Subject: [Xen-devel] dom0 is stalled until a keypress
>>
>> Hello,
>> The following bizarre behaviour was observed on xen4.1+suse dom0 2.6.38, on
>> an old Core Duo laptop; maybe someone can hint what is wrong.
>> Dom0 boot stalls after an init.d script prints "Starting udev". Then nothing
>> seems to happen. I need to press any key to observe progress - I need to do
>> it tens of times for the boot to finish. After X starts fine, then there is
>> no need for keypressing anymore.
>> A particularly disturbing fact is that qrexec_daemon parent, that basically
>> does
>> for (;;) { sleep(1); fprintf(stderr, "."); }
>> does not print dots, until a keypress arrives. So something is very wrong
>> with timers.
>> Somehow similarly, pm-suspend sometimes hangs at some stage - after detaching
>> power cord, machine enters S3 immediately.
>> This is vaguely similar to the issue described in
>> https://lkml.org/lkml/2008/9/14/122
>> but this time, "nohz=off" does not help.
>>
>> "cpufreq=dom0-kernel" cures the symptoms; but it is not a sideeffectless
>> solution. Any idea what is going on or how to debug it ?
>
> ISTR seeing this on a Core(2?)Duo laptop and I think the
> workaround was setting max_cstate=0 (as Xen boot parameter).
>
But what was the actual problem? Setting max_cstate is probably even
worse for power management than setting cpufreq=dom-kernel, isn't it?
Thanks,
joanna.
[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 518 bytes --]
[-- Attachment #2: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
^ permalink raw reply [flat|nested] 8+ messages in thread
* RE: dom0 is stalled until a keypress
2011-09-06 16:35 ` Joanna Rutkowska
@ 2011-09-06 17:17 ` Dan Magenheimer
2011-09-07 9:03 ` Joanna Rutkowska
0 siblings, 1 reply; 8+ messages in thread
From: Dan Magenheimer @ 2011-09-06 17:17 UTC (permalink / raw)
To: Joanna Rutkowska; +Cc: xen-devel, Rafal Wojtczuk
> From: Joanna Rutkowska [mailto:joanna@invisiblethingslab.com]
> Subject: Re: [Xen-devel] dom0 is stalled until a keypress
>
> On 09/06/11 17:49, Dan Magenheimer wrote:
> >> From: Rafal Wojtczuk [mailto:rafal@invisiblethingslab.com]
> >> Sent: Monday, September 05, 2011 3:20 AM
> >> To: xen-devel@lists.xensource.com
> >> Subject: [Xen-devel] dom0 is stalled until a keypress
> >>
> >> Hello,
> >> The following bizarre behaviour was observed on xen4.1+suse dom0 2.6.38, on
> >> an old Core Duo laptop; maybe someone can hint what is wrong.
> >> Dom0 boot stalls after an init.d script prints "Starting udev". Then nothing
> >> seems to happen. I need to press any key to observe progress - I need to do
> >> it tens of times for the boot to finish. After X starts fine, then there is
> >> no need for keypressing anymore.
> >> A particularly disturbing fact is that qrexec_daemon parent, that basically
> >> does
> >> for (;;) { sleep(1); fprintf(stderr, "."); }
> >> does not print dots, until a keypress arrives. So something is very wrong
> >> with timers.
> >> Somehow similarly, pm-suspend sometimes hangs at some stage - after detaching
> >> power cord, machine enters S3 immediately.
> >> This is vaguely similar to the issue described in
> >> https://lkml.org/lkml/2008/9/14/122
> >> but this time, "nohz=off" does not help.
> >>
> >> "cpufreq=dom0-kernel" cures the symptoms; but it is not a sideeffectless
> >> solution. Any idea what is going on or how to debug it ?
> >
> > ISTR seeing this on a Core(2?)Duo laptop and I think the
> > workaround was setting max_cstate=0 (as Xen boot parameter).
> >
> But what was the actual problem? Setting max_cstate is probably even
> worse for power management than setting cpufreq=dom-kernel, isn't it?
Sorry, dunno. I recall looking into it a bit and finding that
the Core processor (and possibly specifically Merom, the laptop
version) had some special C-state (C3, C1E maybe?) and giving
up at that point. Sorry I can't be more helpful.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: dom0 is stalled until a keypress
2011-09-05 9:19 dom0 is stalled until a keypress Rafal Wojtczuk
2011-09-06 15:49 ` Dan Magenheimer
@ 2011-09-06 19:04 ` Jeremy Fitzhardinge
1 sibling, 0 replies; 8+ messages in thread
From: Jeremy Fitzhardinge @ 2011-09-06 19:04 UTC (permalink / raw)
To: Rafal Wojtczuk; +Cc: xen-devel
On 09/05/2011 02:19 AM, Rafal Wojtczuk wrote:
> Hello,
> The following bizarre behaviour was observed on xen4.1+suse dom0 2.6.38, on
> an old Core Duo laptop; maybe someone can hint what is wrong.
> Dom0 boot stalls after an init.d script prints "Starting udev". Then nothing
> seems to happen. I need to press any key to observe progress - I need to do
> it tens of times for the boot to finish. After X starts fine, then there is
> no need for keypressing anymore.
> A particularly disturbing fact is that qrexec_daemon parent, that basically
> does
> for (;;) { sleep(1); fprintf(stderr, "."); }
> does not print dots, until a keypress arrives. So something is very wrong
> with timers.
> Somehow similarly, pm-suspend sometimes hangs at some stage - after detaching
> power cord, machine enters S3 immediately.
> This is vaguely similar to the issue described in
> https://lkml.org/lkml/2008/9/14/122
> but this time, "nohz=off" does not help.
>
> "cpufreq=dom0-kernel" cures the symptoms; but it is not a sideeffectless
> solution. Any idea what is going on or how to debug it ?
Try booting with "idle=halt".
J
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: dom0 is stalled until a keypress
2011-09-06 17:17 ` Dan Magenheimer
@ 2011-09-07 9:03 ` Joanna Rutkowska
2011-09-07 9:35 ` Jan Beulich
0 siblings, 1 reply; 8+ messages in thread
From: Joanna Rutkowska @ 2011-09-07 9:03 UTC (permalink / raw)
To: Dan Magenheimer; +Cc: xen-devel, Rafal Wojtczuk
[-- Attachment #1.1: Type: text/plain, Size: 2269 bytes --]
On 09/06/11 19:17, Dan Magenheimer wrote:
>> From: Joanna Rutkowska [mailto:joanna@invisiblethingslab.com]
>> Subject: Re: [Xen-devel] dom0 is stalled until a keypress
>>
>> On 09/06/11 17:49, Dan Magenheimer wrote:
>>>> From: Rafal Wojtczuk [mailto:rafal@invisiblethingslab.com]
>>>> Sent: Monday, September 05, 2011 3:20 AM
>>>> To: xen-devel@lists.xensource.com
>>>> Subject: [Xen-devel] dom0 is stalled until a keypress
>>>>
>>>> Hello,
>>>> The following bizarre behaviour was observed on xen4.1+suse dom0 2.6.38, on
>>>> an old Core Duo laptop; maybe someone can hint what is wrong.
>>>> Dom0 boot stalls after an init.d script prints "Starting udev". Then nothing
>>>> seems to happen. I need to press any key to observe progress - I need to do
>>>> it tens of times for the boot to finish. After X starts fine, then there is
>>>> no need for keypressing anymore.
>>>> A particularly disturbing fact is that qrexec_daemon parent, that basically
>>>> does
>>>> for (;;) { sleep(1); fprintf(stderr, "."); }
>>>> does not print dots, until a keypress arrives. So something is very wrong
>>>> with timers.
>>>> Somehow similarly, pm-suspend sometimes hangs at some stage - after detaching
>>>> power cord, machine enters S3 immediately.
>>>> This is vaguely similar to the issue described in
>>>> https://lkml.org/lkml/2008/9/14/122
>>>> but this time, "nohz=off" does not help.
>>>>
>>>> "cpufreq=dom0-kernel" cures the symptoms; but it is not a sideeffectless
>>>> solution. Any idea what is going on or how to debug it ?
>>>
>>> ISTR seeing this on a Core(2?)Duo laptop and I think the
>>> workaround was setting max_cstate=0 (as Xen boot parameter).
>>>
>> But what was the actual problem? Setting max_cstate is probably even
>> worse for power management than setting cpufreq=dom-kernel, isn't it?
>
> Sorry, dunno. I recall looking into it a bit and finding that
> the Core processor (and possibly specifically Merom, the laptop
> version) had some special C-state (C3, C1E maybe?) and giving
> up at that point. Sorry I can't be more helpful.
But the same system worked fine without any tweaks (cpufreq, max_cstate)
on Xen 3.4 and only started exhibiting this behavior after we switched
to Xen 4.1...
j.
[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 518 bytes --]
[-- Attachment #2: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: dom0 is stalled until a keypress
2011-09-07 9:03 ` Joanna Rutkowska
@ 2011-09-07 9:35 ` Jan Beulich
2011-09-07 13:29 ` Rafal Wojtczuk
0 siblings, 1 reply; 8+ messages in thread
From: Jan Beulich @ 2011-09-07 9:35 UTC (permalink / raw)
To: Joanna Rutkowska; +Cc: Dan Magenheimer, xen-devel, Rafal Wojtczuk
>>> On 07.09.11 at 11:03, Joanna Rutkowska <joanna@invisiblethingslab.com> wrote:
> On 09/06/11 19:17, Dan Magenheimer wrote:
>>> From: Joanna Rutkowska [mailto:joanna@invisiblethingslab.com]
>>> Subject: Re: [Xen-devel] dom0 is stalled until a keypress
>>>
>>> On 09/06/11 17:49, Dan Magenheimer wrote:
>>>>> From: Rafal Wojtczuk [mailto:rafal@invisiblethingslab.com]
>>>>> Sent: Monday, September 05, 2011 3:20 AM
>>>>> To: xen-devel@lists.xensource.com
>>>>> Subject: [Xen-devel] dom0 is stalled until a keypress
>>>>>
>>>>> Hello,
>>>>> The following bizarre behaviour was observed on xen4.1+suse dom0 2.6.38, on
>>>>> an old Core Duo laptop; maybe someone can hint what is wrong.
>>>>> Dom0 boot stalls after an init.d script prints "Starting udev". Then nothing
>>>>> seems to happen. I need to press any key to observe progress - I need to do
>>>>> it tens of times for the boot to finish. After X starts fine, then there is
>>>>> no need for keypressing anymore.
>>>>> A particularly disturbing fact is that qrexec_daemon parent, that basically
>>>>> does
>>>>> for (;;) { sleep(1); fprintf(stderr, "."); }
>>>>> does not print dots, until a keypress arrives. So something is very wrong
>>>>> with timers.
>>>>> Somehow similarly, pm-suspend sometimes hangs at some stage - after detaching
>>>>> power cord, machine enters S3 immediately.
>>>>> This is vaguely similar to the issue described in
>>>>> https://lkml.org/lkml/2008/9/14/122
>>>>> but this time, "nohz=off" does not help.
>>>>>
>>>>> "cpufreq=dom0-kernel" cures the symptoms; but it is not a sideeffectless
>>>>> solution. Any idea what is going on or how to debug it ?
>>>>
>>>> ISTR seeing this on a Core(2?)Duo laptop and I think the
>>>> workaround was setting max_cstate=0 (as Xen boot parameter).
>>>>
>>> But what was the actual problem? Setting max_cstate is probably even
>>> worse for power management than setting cpufreq=dom-kernel, isn't it?
>>
>> Sorry, dunno. I recall looking into it a bit and finding that
>> the Core processor (and possibly specifically Merom, the laptop
>> version) had some special C-state (C3, C1E maybe?) and giving
>> up at that point. Sorry I can't be more helpful.
>
> But the same system worked fine without any tweaks (cpufreq, max_cstate)
> on Xen 3.4 and only started exhibiting this behavior after we switched
> to Xen 4.1...
4.1.0 or 4.1.1?
Jan
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: dom0 is stalled until a keypress
2011-09-07 9:35 ` Jan Beulich
@ 2011-09-07 13:29 ` Rafal Wojtczuk
0 siblings, 0 replies; 8+ messages in thread
From: Rafal Wojtczuk @ 2011-09-07 13:29 UTC (permalink / raw)
To: Jan Beulich; +Cc: Dan Magenheimer, xen-devel, Joanna Rutkowska
On Wed, Sep 07, 2011 at 10:35:45AM +0100, Jan Beulich wrote:
> >>> On 07.09.11 at 11:03, Joanna Rutkowska <joanna@invisiblethingslab.com> wrote:
> > On 09/06/11 19:17, Dan Magenheimer wrote:
> >>> From: Joanna Rutkowska [mailto:joanna@invisiblethingslab.com]
> >>> Subject: Re: [Xen-devel] dom0 is stalled until a keypress
> >>>
> >>> On 09/06/11 17:49, Dan Magenheimer wrote:
> >>>>> From: Rafal Wojtczuk [mailto:rafal@invisiblethingslab.com]
> >>>>> Sent: Monday, September 05, 2011 3:20 AM
> >>>>> To: xen-devel@lists.xensource.com
> >>>>> Subject: [Xen-devel] dom0 is stalled until a keypress
> >>>>>
> >>>>> Hello,
> >>>>> The following bizarre behaviour was observed on xen4.1+suse dom0 2.6.38, on
> >>>>> an old Core Duo laptop; maybe someone can hint what is wrong.
> >>>>> Dom0 boot stalls after an init.d script prints "Starting udev". Then nothing
> >>>>> seems to happen. I need to press any key to observe progress - I need to do
> >>>>> it tens of times for the boot to finish. After X starts fine, then there is
> >>>>> no need for keypressing anymore.
> >>>>> A particularly disturbing fact is that qrexec_daemon parent, that basically
> >>>>> does
> >>>>> for (;;) { sleep(1); fprintf(stderr, "."); }
> >>>>> does not print dots, until a keypress arrives. So something is very wrong
> >>>>> with timers.
> >>>>> Somehow similarly, pm-suspend sometimes hangs at some stage - after detaching
> >>>>> power cord, machine enters S3 immediately.
> >>>>> This is vaguely similar to the issue described in
> >>>>> https://lkml.org/lkml/2008/9/14/122
> >>>>> but this time, "nohz=off" does not help.
> >>>>>
> >>>>> "cpufreq=dom0-kernel" cures the symptoms; but it is not a sideeffectless
> >>>>> solution. Any idea what is going on or how to debug it ?
> >>>>
> >>>> ISTR seeing this on a Core(2?)Duo laptop and I think the
> >>>> workaround was setting max_cstate=0 (as Xen boot parameter).
> >>>>
> >>> But what was the actual problem? Setting max_cstate is probably even
> >>> worse for power management than setting cpufreq=dom-kernel, isn't it?
> >>
> >> Sorry, dunno. I recall looking into it a bit and finding that
> >> the Core processor (and possibly specifically Merom, the laptop
> >> version) had some special C-state (C3, C1E maybe?) and giving
> >> up at that point. Sorry I can't be more helpful.
> >
> > But the same system worked fine without any tweaks (cpufreq, max_cstate)
> > on Xen 3.4 and only started exhibiting this behavior after we switched
> > to Xen 4.1...
>
> 4.1.0 or 4.1.1?
Originally tested on 4.1.0; same problem with 4.1.1.
Jeremy> Try booting with "idle=halt".
It does not help, either.
Regards,
RW
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2011-09-07 13:29 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-05 9:19 dom0 is stalled until a keypress Rafal Wojtczuk
2011-09-06 15:49 ` Dan Magenheimer
2011-09-06 16:35 ` Joanna Rutkowska
2011-09-06 17:17 ` Dan Magenheimer
2011-09-07 9:03 ` Joanna Rutkowska
2011-09-07 9:35 ` Jan Beulich
2011-09-07 13:29 ` Rafal Wojtczuk
2011-09-06 19:04 ` Jeremy Fitzhardinge
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.