Dom0 crashing on x86_64
I am seeing a problem with Dom0 crashing on x86_64 whenever I create a DomU. I've done some more testing, and it appears that this problem is somehow related to networking. Dom0 crashes as soon as the networking services are started when DomU is coming up. As an experiment, I brought up DomU without networking, and it stayed up. As soon as I started DomU with networking enabled, however, Dom0 crashed. Below is the trace:
Unable to handle kernel paging request at ffffc20000036000 RIP:
<ffffffff802afff9>{net_rx_action+1209}
PGD 13e4067 PUD 13e3067 PMD 13e2067 PTE 0
Oops: 0000 [1]
CPU 0
Modules linked in: thermal processor fan button battery ac
Pid: 2712, comm: sshd Not tainted 2.6.12-xen0
RIP: e030:[<ffffffff802afff9>] <ffffffff802afff9>{net_rx_action+1209}
RSP: e02b:ffff88000290d7f8 EFLAGS: 00010202
RAX: ffffc20000035ff0 RBX: ffff88000de9bb60 RCX: 00000000000000ff
RDX: 0000000000000001 RSI: ffffc20000036000 RDI: 000000000000000e
RBP: ffff88000b5f7c80 R08: 00000000000000ff R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000206 R12: 0000000010c1a06e
R13: ffffffff804df7c0 R14: 0000000000000072 R15: ffffffff804e8800
FS: 00002aaaac231040(0000) GS:ffffffff8050ae80(0000)knlGS:0000000000000000
CS: e033 DS: 0000 ES: 0000
Process sshd (pid: 2712, threadinfo ffff88000290c000, task ffff88000c02ef30)
Stack: ffff88000de9bb60 0000000080397db8 0000000000000001
ffff88000290d840
ffff88000a93d380 ffffffff8014bd98 0000000000000000
ffff88000c02ef30
ffffffff8013000e ffffffff80355f6c
Call Trace:<ffffffff8014bd98>{mempool_alloc+152}
<ffffffff8013000e>{proc_opensys+30}
<ffffffff80355f6c>{nf_iterate+92}
<ffffffff80397a50>{br_nf_pre_routing_finish+0}
<ffffffff80356b4d>{nf_hook_slow+125}
<ffffffff80397a50>{br_nf_pre_routing_finish+0}
<ffffffff803984d1>{br_nf_pre_routing+1793}
<ffffffff8014bceb>{mempool_free+171}
<ffffffff80355f6c>{nf_iterate+92}<ffffffff80393850>{br_handle_fra\uffff\uffff\uffff\uffff\uffff\uffff \uffff"\ud455\uffff}\uffff
Signature · 8 lines
Regards,
David F Barrera
Linux Technology Center
Systems and Technology Group, IBM
"The wisest men follow their own direction. "
EuripidesQuoted 7 lines · David F Barrera
I am seeing a problem with Dom0 crashing on
x86_64whenever I create a DomU. I've done some more testing, and it appears that this problem is somehow related to networking. Dom0 crashes as soon as the networking services are started when DomU is coming up. As an experiment, I brought up DomU without networking, and it stayed up. As soon as I started DomU with networking enabled, however, Dom0 crashed. Below is the trace:
Hi David,
I'm quite confused by other reports.
Your latest "Daily Xen build" and Paul Larson's reply suggest that this bug was fix.
As well, is that on SLES9 userspace ?
Cheers,
Signature · 1 line
Vincent Hanquez
Quoted 9 lines · Vincent Hanquez
Quoted 7 lines · David F Barrera
I am seeing a problem with Dom0 crashing on
x86_64whenever I create a DomU. I've done some more testing, and it appears that this problem is somehow related to networking. Dom0 crashes as soon as the networking services are started when DomU is coming up. As an experiment, I brought up DomU without networking, and it stayed up. As soon as I started DomU with networking enabled, however, Dom0 crashed. Below is the trace:
Quoted 5 lines
Hi David,
I'm quite confused by other reports.
Your latest "Daily Xen build" and Paul Larson's reply suggest that this bug was fix.
Vincent,
I understand. My report did suggest that the problem was fixed; however, it was incorrect, as I later found out. It turns out that the DomU that I had created did not have networking setup properly, thus the VM seemed functional. When I corrected the networking setup and started a DomU, Dom0 crashed. By the way, I just did it today, and the same thing is happening--Dom0 is crashing. This is the trace that I see on the serial console:
Unable to handle kernel NULL pointer dereference at 0000000000000c20
RIP:
<ffffffff80118aba>{do_page_fault+426}
PGD d313067 PUD d312067 PMD 0
Oops: 0000 [1]
CPU 0
Modules linked in: thermal processor fan button battery ac
Pid: 0, comm: swapper Not tainted 2.6.12-xen0
RIP: e030:[<ffffffff80118aba>] <ffffffff80118aba>{do_page_fault+426}
RSP: e02b:ffffffff8054ba00 EFLAGS: 00010202
RAX: 00000000013e4067 RBX: 0000000000000c20 RCX: 0000000000000000
RDX: 0000000000000067 RSI: 00000000093e4067 RDI: ffff800000000000
RBP: 0000000000000c20 R08: 00000000000000ff R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000206 R12: 0000000000000000
R13: ffffc20000036000 R14: 0000000000000000 R15: ffffffff8054bb00
FS: 0000000000000000(0000) GS:ffffffff80537b80(0000)knlGS:0000000000000000
CS: e033 DS: 0000 ES: 0000
Process swapper (pid: 0, threadinfo ffffffff8054a000, task ffffffff80435680)
Stack: ffff88000f414000 fff݅
Quoted 4 lines
As well, is that on SLES9 userspace ?
Cheers,
Signature · 8 lines
Regards,
David F Barrera
Linux Technology Center
Systems and Technology Group, IBM
"The wisest men follow their own direction. "
EuripidesMore on sedf scheduler
In reply to Vincent Hanquez(xen 3.0) Running an infinite loop in dom0 causes all other domains to get _zero_ cpu. Even pings to them suddenly stop. Is there a magic "xm sedf" command that I can use to work around this bug?
Rob
Re: More on sedf scheduler
Rob,
That's interesting! Could you provide me with a bit more details?
For example your timing parameters for dom0 and domU...
Could you just Ctrl-A three times and then show the schedulker runqueues with 'r'?
Thanks,
Stephan
Quoted 13 lines
(xen 3.0) Running an infinite loop in dom0 causes all other domains to get _zero_ cpu. Even pings to them suddenly stop. Is there a magic "xm sedf" command that I can use to work around this bug?
Rob
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Re: More on sedf scheduler
In reply to Rob GardnerRob,
That's interesting! Could you provide me with a bit more details?
For example your timing parameters for dom0 and domU...
Could you just Ctrl-A three times and then show the schedulker runqueues with 'r'?
Thanks,
Stephan
Quoted 13 lines
(xen 3.0) Running an infinite loop in dom0 causes all other domains to get _zero_ cpu. Even pings to them suddenly stop. Is there a magic "xm sedf" command that I can use to work around this bug?
Rob
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Re: More on sedf scheduler
Quoted 6 lines · Stephan Diestelhorst
Rob,
That's interesting! Could you provide me with a bit more details?
For example your timing parameters for dom0 and domU...
Could you just Ctrl-A three times and then show the schedulker runqueues with 'r'?
(XEN) *** Serial input -> Xen (type 'CTRL-a' three times to switch input to DOM0). (XEN) Scheduler: Simple EDF Scheduler (sedf)
(XEN) NOW=0x00003659C0E09949
(XEN) CPU[00] now=59759117961863
(XEN) RUNQ rq ff18cf80 n: ffbf7e04, p: ffbf7e04
(XEN) 0: 0.0 has=T p=20000000 sl=15000000 ddl=59759130001778 w=0 c=1818020375509 sc=-181402283 xtr(yes)=507177757997 ew=0 (27%)
(XEN)
(XEN) WAITQ rq ff18cf88 n: ff1bfe04, p: ff1bfe04
(XEN) 0: 1.0 has=F p=100000000 sl=0 ddl=59759240002401 w=0 c=2936327068131 sc=131072 xtr(yes)=2936327068131 ew=1 (100%)
(XEN)
(XEN) EXTRAQ (penalty) rq ff18cf90 n: ffbf7e0c, p: ffbf7e0c
(XEN) 0: 0.0 has=T p=20000000 sl=15000000 ddl=59759130001778 w=0 c=1818020375509 sc=-181402283 xtr(yes)=507177757997 ew=0 (27%)
(XEN)
(XEN) EXTRAQ (utilization) rq ff18cf98 n: ffbf7e14, p: ff1bfe14
(XEN) 0: 0.0 has=T p=20000000 sl=15000000 ddl=59759130001778 w=0 c=1818020375509 sc=-181402283 xtr(yes)=507177757997 ew=0 (27%)
(XEN) 1: 1.0 has=F p=100000000 sl=0 ddl=59759240002401 w=0 c=2936327068131 sc=131072 xtr(yes)=2936327068131 ew=1 (100%)
(XEN)
(XEN) not on Q
[
Re: More on sedf scheduler
Thanks,
what is your dom0 tight loop doing? Heavy I/O?
It looks like dom0 does a lot of I/O, which immediatelly unblocks and then gets a higher priority in the L1 extraq, without anybounds on executiontime, i.e. slice length. Can you confirm this?
Stephan
Quoted 38 lines
Quoted 5 lines · Stephan Diestelhorst
Rob,
That's interesting! Could you provide me with a bit more details?
For example your timing parameters for dom0 and domU... Could you just Ctrl-A three times and then show the schedulker runqueues with 'r'?(XEN) *** Serial input -> Xen (type 'CTRL-a' three times to switch input to DOM0).
(XEN) Scheduler: Simple EDF Scheduler (sedf)
(XEN) NOW=0x00003659C0E09949
(XEN) CPU[00] now=59759117961863
(XEN) RUNQ rqff18cf80n:ffbf7e04, p:ffbf7e04
(XEN) 0: 0.0 has=T p=20000000 sl=15000000 ddl=59759130001778 w=0
c=1818020375509 sc=-181402283 xtr(yes)=507177757997 ew=0 (27%) (XEN)
(XEN) WAITQ rqff18cf88n:ff1bfe04, p:ff1bfe04
(XEN) 0: 1.0 has=F p=100000000 sl=0 ddl=59759240002401 w=0
c=2936327068131 sc=131072 xtr(yes)=2936327068131 ew=1 (100%) (XEN)
(XEN) EXTRAQ (penalty) rqff18cf90n:ffbf7e0c, p:ffbf7e0c
(XEN) 0: 0.0 has=T p=20000000 sl=15000000 ddl=59759130001778 w=0
c=1818020375509 sc=-181402283 xtr(yes)=507177757997 ew=0 (27%) (XEN)
(XEN) EXTRAQ (utilization) rqff18cf98n:ffbf7e14, p:ff1bfe14
(XEN) 0: 0.0 has=T p=20000000 sl=15000000 ddl=59759130001778 w=0
c=1818020375509 sc=-181402283 xtr(yes)=507177757997 ew=0 (27%)
(XEN) 1: 1.0 has=F p=100000000 sl=0 ddl=59759240002401 w=0
c=2936327068131 sc=131072 xtr(yes)=2936327068131 ew=1 (100%) (XEN)
(XEN) not on Q
[_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Re: More on sedf scheduler
Quoted 7 lines · Stephan Diestelhorst
Thanks,
what is your dom0 tight loop doing? Heavy I/O?
It looks like dom0 does a lot of I/O, which immediatelly unblocks and then gets a higher priority in the L1 extraq, without anybounds on executiontime, i.e. slice length. Can you confirm this?Stephan
The loop was just while(1); There was also a python script running that was reading from xentrace. So no heavy i/o, at least no disk/network i/o. But that doesn't matter anyway. Here is another dump where dom0 is doing absolutely nothing besides while (1); And dom1 is completely comatose during this time.
Rob
(XEN) Scheduler: Simple EDF Scheduler (sedf)
(XEN) NOW=0x0000004AC8DEB496
(XEN) CPU[00] now=321199566451
(XEN) RUNQ rq ff18cf80 n: ff18cf80, p: ff18cf80
(XEN)
(XEN) WAITQ rq ff18cf88 n: ffbf7e04, p: ff1bfe04
(XEN) 0: 0.0 has=T p=20000000 sl=15000000 ddl=321220001780 w=0 c=34111278898 sc=451020117 xtr(yes)=11730339611 ew=0 (34%)
(XEN) 1: 1.0 has=F p=100000000 sl=0 ddl=321370002222 w=0 c=20938650825 sc=131072 xtr(yes)=20938650825 ew=1 (100%)
(XEN)
(XEN) EXTRAQ (penalty) rq ff18cf90 n: ffbf7e0c, p: ffbf7e0c
(XEN) 0: 0.0 has=T p=20000000 sl=15000000 ddl=321220001780 w=0 c=34111278898 sc=451020117 xtr(yes)=11730339611 ew=0 (34%)
(XEN)
(XEN) EXTRAQ (utilization) rq ff18cf98 n: ff1bfe14, p: ffbf7e14
(XEN) 0: 1.0 has=F p=100000000 sl=0 ddl=321370002222 w=0 c=20938650825 sc=131072 xtr(yes)=20938650825 ew=1 (100%)
(XEN) 1: 0.0 has=T p=20000000 sl=15000000 ddl=321220001780 w=0 c=34111278898 sc=451020117 xtr(yes)=11730339611 ew=0 (34%)
(XEN)
(XEN) not on Q
Re: More on sedf scheduler
Just another question: What kind of hardware are you running on? Might this be related in any way to the strange IA64 bugs?
Quoted 50 lines
Quoted 9 lines · Stephan Diestelhorst
Thanks,
what is your dom0 tight loop doing? Heavy I/O?
It looks like dom0 does a lot of I/O, which immediatelly unblocks and then gets a higher priority in the L1 extraq, without anybounds on executiontime, i.e. slice length. Can you confirm this?Stephan
The loop was just while(1); There was also a python script running that was reading from xentrace. So no heavy i/o, at least no disk/network i/o. But that doesn't matter anyway. Here is another dump where dom0 is doing absolutely nothing besides while (1); And dom1 is completely comatose during this time.
Rob
(XEN) Scheduler: Simple EDF Scheduler (sedf) (XEN) NOW=0x0000004AC8DEB496
(XEN) CPU[00] now=321199566451
(XEN) RUNQ rqff18cf80n:ff18cf80, p:ff18cf80
(XEN)
(XEN) WAITQ rqff18cf88n:ffbf7e04, p:ff1bfe04
(XEN) 0: 0.0 has=T p=20000000 sl=15000000 ddl=321220001780 w=0
c=34111278898 sc=451020117 xtr(yes)=11730339611 ew=0 (34%)
(XEN) 1: 1.0 has=F p=100000000 sl=0 ddl=321370002222 w=0
c=20938650825 sc=131072 xtr(yes)=20938650825 ew=1 (100%) (XEN)
(XEN) EXTRAQ (penalty) rqff18cf90n:ffbf7e0c, p:ffbf7e0c
(XEN) 0: 0.0 has=T p=20000000 sl=15000000 ddl=321220001780 w=0
c=34111278898 sc=451020117 xtr(yes)=11730339611 ew=0 (34%) (XEN)
(XEN) EXTRAQ (utilization) rqff18cf98n:ff1bfe14, p:ffbf7e14
(XEN) 0: 1.0 has=F p=100000000 sl=0 ddl=321370002222 w=0
c=20938650825 sc=131072 xtr(yes)=20938650825 ew=1 (100%)
(XEN) 1: 0.0 has=T p=20000000 sl=15000000 ddl=321220001780 w=0
c=34111278898 sc=451020117 xtr(yes)=11730339611 ew=0 (34%) (XEN)
(XEN) not on Q_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Re: More on sedf scheduler
Quoted 3 lines · Stephan Diestelhorst
Just another question: What kind of hardware are you running on?
Vanilla x86. 2.6ghz P4 in a consumer grade HP box.
Quoted 4 lines
Might this be related in any way to the strange IA64 bugs?
Well, Dan Magenheimer sits at the desk right next to mine, so it's quite possible it's something contagious. ;)
Rob
Re: More on sedf scheduler
Quoted 5 lines
Quoted 1 line
Might this be related in any way to the strange IA64 bugs?
Well, Dan Magenheimer sits at the desk right next to mine, so it's quite possible it's something contagious. ;)
Heh. You think Xen's code is virulent? I wouldn't go that far, although it has infected quite a number of people. :-)
Seriously: Unfortunately I can't reproduce the bug properly ATM, because the recent builds don't work properly for me... But as far as I can see (i.e. just dom0 testing) something seems to be wrong, but I guess it is something outside the core-scheduler, as the problem doesn't happen with my older (bk repo) version, and from that to the current code nothing has changed (at least not inside sedf). But that said, I think I should introduce measures to make the scheduler invulnerable against that kind of external fault!
Stephan
Re: More on sedf scheduler
Hi Stephan,
Could you please tell me if SEDF is available in -testing tree or it is only available in -unstable tree so far? Thanks.
Xuehai
Re: More on sedf scheduler
It is not available in the testing tree, but I can create a patch, if needed!
Stephan
Quoted 5 lines
Hi Stephan,
Could you please tell me if SEDF is available in -testing tree or it is only available in -unstable tree so far?
Thanks.
Xuehai
Re: More on sedf scheduler
In reply to Rob GardnerQuoted 13 lines
Quoted 9 lines · Stephan Diestelhorst
Thanks,
what is your dom0 tight loop doing? Heavy I/O?
It looks like dom0 does a lot of I/O, which immediatelly unblocks and then gets a higher priority in the L1 extraq, without anybounds on executiontime, i.e. slice length. Can you confirm this?Stephan
Quoted 6 lines
The loop was just while(1); There was also a python script running that was reading from xentrace. So no heavy i/o, at least no disk/network i/o. But that doesn't matter anyway. Here is another dump where dom0 is doing absolutely nothing besides while (1); And dom1 is completely comatose during this time.
Thanks for the dump! It looks as something is seriously broken, as the scheduler thinks that dom0 needs compensation for block loss... Strange! I'll try to reproduce and fix the bug, probably tonight, but def. tomorrow!
Thanks,
Stephan
Quoted 32 lines
(XEN) Scheduler: Simple EDF Scheduler (sedf) (XEN) NOW=0x0000004AC8DEB496
(XEN) CPU[00] now=321199566451
(XEN) RUNQ rqff18cf80n:ff18cf80, p:ff18cf80
(XEN)
(XEN) WAITQ rqff18cf88n:ffbf7e04, p:ff1bfe04
(XEN) 0: 0.0 has=T p=20000000 sl=15000000 ddl=321220001780 w=0
c=34111278898 sc=451020117 xtr(yes)=11730339611 ew=0 (34%)
(XEN) 1: 1.0 has=F p=100000000 sl=0 ddl=321370002222 w=0
c=20938650825 sc=131072 xtr(yes)=20938650825 ew=1 (100%) (XEN)
(XEN) EXTRAQ (penalty) rqff18cf90n:ffbf7e0c, p:ffbf7e0c
(XEN) 0: 0.0 has=T p=20000000 sl=15000000 ddl=321220001780 w=0
c=34111278898 sc=451020117 xtr(yes)=11730339611 ew=0 (34%) (XEN)
(XEN) EXTRAQ (utilization) rqff18cf98n:ff1bfe14, p:ffbf7e14
(XEN) 0: 1.0 has=F p=100000000 sl=0 ddl=321370002222 w=0
c=20938650825 sc=131072 xtr(yes)=20938650825 ew=1 (100%)
(XEN) 1: 0.0 has=T p=20000000 sl=15000000 ddl=321220001780 w=0
c=34111278898 sc=451020117 xtr(yes)=11730339611 ew=0 (34%) (XEN)
(XEN) not on Q_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
greedy dom0 in sedf fixed! (Re: More on sedf scheduler)
In reply to Rob GardnerAm Donnerstag, 14. Juli 2005 19:16 schrieb Rob Gardner:
Quoted 9 lines
Quoted 7 lines · Stephan Diestelhorst
Thanks,
what is your dom0 tight loop doing? Heavy I/O?
It looks like dom0 does a lot of I/O, which immediatelly unblocks and then gets a higher priority in the L1 extraq, without anybounds on executiontime, i.e. slice length. Can you confirm this?Stephan
Quoted 7 lines
The loop was just while(1); There was also a python script running that was reading from xentrace. So no heavy i/o, at least no disk/network i/o. But that doesn't matter anyway. Here is another dump where dom0 is doing absolutely nothing besides while (1); And dom1 is completely comatose during this time.
Rob
Should be fixed in the current repository!
Stephan
Re: greedy dom0 in sedf fixed! (Re: More on sedf scheduler)
Quoted 7 lines · Stephan Diestelhorst
Quoted 7 lines
he loop was just while(1); There was also a python script running that was reading from xentrace. So no heavy i/o, at least no disk/network i/o. But that doesn't matter anyway. Here is another dump where dom0 is doing absolutely nothing besides while (1); And dom1 is completely comatose during this time.
Quoted 8 lines
Quoted 3 lines
Rob
Should be fixed in the current repository!
Stephan
Thanks, will give it a try soon.
Rob