Skip to contentSkip to conversation

dom0 is stalled until a keypress

DISCUSSION Rafal Wojtczuk 5 participants 8 messages Sep 5, 2011 – Sep 7, 2011

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
Quoted 23 lines

From: Rafal Wojtczuk [mailto:[email protected]]
Sent: Monday, September 05, 2011 3:20 AM
To: [email protected]
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.

Quoted 2 lines

"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).

#2 lore raw
Quoted 23 lines · Dan Magenheimer
Quoted 23 lines

From: Rafal Wojtczuk [mailto:[email protected]]
Sent: Monday, September 05, 2011 3:20 AM
To: [email protected]
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.

Quoted 6 lines
Quoted 2 lines

"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.

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#3 lore raw
Quoted 27 lines

From: Joanna Rutkowska [mailto:[email protected]]
Subject: Re: [Xen-devel] dom0 is stalled until a keypress

Quoted 23 lines · Dan Magenheimer
Quoted 23 lines

From: Rafal Wojtczuk [mailto:[email protected]]
Sent: Monday, September 05, 2011 3:20 AM
To: [email protected]
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.

Quoted 8 lines
Quoted 6 lines
Quoted 2 lines

"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.

#4 lore raw
Quoted 33 lines · Dan Magenheimer
Quoted 33 lines

From: Joanna Rutkowska [mailto:[email protected]]
Subject: Re: [Xen-devel] dom0 is stalled until a keypress

Quoted 29 lines · Dan Magenheimer
Quoted 23 lines

From: Rafal Wojtczuk [mailto:[email protected]]
Sent: Monday, September 05, 2011 3:20 AM
To: [email protected]
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.

Quoted 2 lines

"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).

Quoted 7 lines
Quoted 2 lines

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.

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#5 lore raw
Quoted 38 lines
Quoted 1 line
Quoted 1 line · Joanna Rutkowska
Quoted 36 lines · Dan Magenheimer
Quoted 35 lines

From: Joanna Rutkowska [mailto:[email protected]]
Subject: Re: [Xen-devel] dom0 is stalled until a keypress

Quoted 23 lines · Dan Magenheimer
Quoted 23 lines

From: Rafal Wojtczuk [mailto:[email protected]]
Sent: Monday, September 05, 2011 3:20 AM
To: [email protected]
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.

Quoted 6 lines
Quoted 2 lines

"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?

Quoted 8 lines
Quoted 4 lines

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

#6 lore raw
Quoted 43 lines · Jan Beulich
Quoted 43 lines
Quoted 1 line
Quoted 1 line · Joanna Rutkowska
Quoted 40 lines · Dan Magenheimer
Quoted 27 lines

From: Joanna Rutkowska [mailto:[email protected]]
Subject: Re: [Xen-devel] dom0 is stalled until a keypress

Quoted 23 lines · Dan Magenheimer
Quoted 23 lines

From: Rafal Wojtczuk [mailto:[email protected]]
Sent: Monday, September 05, 2011 3:20 AM
To: [email protected]
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.

Quoted 8 lines
Quoted 6 lines
Quoted 2 lines

"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.

Quoted 5 lines
Quoted 3 lines

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

#7 lore raw
In reply to Rafal Wojtczuk
Quoted 18 lines · Rafal Wojtczuk

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.

Quoted 2 lines

"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