All of lore.kernel.org
 help / color / mirror / Atom feed
* crash in csched_load_balance after xl vcpu-pin
@ 2018-04-10  8:57 Olaf Hering
  2018-04-10  9:34 ` George Dunlap
                   ` (2 more replies)
  0 siblings, 3 replies; 58+ messages in thread
From: Olaf Hering @ 2018-04-10  8:57 UTC (permalink / raw)
  To: xen-devel; +Cc: George Dunlap, Dario Faggioli


[-- Attachment #1.1: Type: text/plain, Size: 5015 bytes --]

While hunting some other bug we run into the single BUG in
sched_credit.c:csched_load_balance(). This happens with all versions
since 4.7, staging is also affected. Testsystem is a Haswell model 63
system with 4 NUMA nodes and 144 threads.

(XEN) Xen BUG at sched_credit.c:1694
(XEN) ----[ Xen-4.11.20180407T144959.e62e140daa-2.bug1087289_411  x86_64  debug=n   Not tainted ]----
(XEN) CPU:    30
(XEN) RIP:    e008:[<ffff82d08022879d>] sched_credit.c#csched_schedule+0xaad/0xba0
(XEN) RFLAGS: 0000000000010087   CONTEXT: hypervisor
(XEN) rax: ffff83077ffe76d0   rbx: ffff83077fe571d0   rcx: 000000000000001e
(XEN) rdx: ffff83005d082000   rsi: 0000000000000000   rdi: ffff83077fe575b0
(XEN) rbp: ffff82d08094a480   rsp: ffff83077fe4fd00   r8:  ffff83077fe581a0
(XEN) r9:  ffff82d080227cf0   r10: 0000000000000000   r11: ffff830060b62060
(XEN) r12: 000014f4e864c2d4   r13: ffff83077fe575b0   r14: ffff83077fe58180
(XEN) r15: ffff82d08094a480   cr0: 000000008005003b   cr4: 00000000001526e0
(XEN) cr3: 0000000049416000   cr2: 00007fb24e1b7277
(XEN) fsb: 0000000000000000   gsb: 0000000000000000   gss: 0000000000000000
(XEN) ds: 0000   es: 0000   fs: 0000   gs: 0000   ss: 0000   cs: e008
(XEN) Xen code around <ffff82d08022879d> (sched_credit.c#csched_schedule+0xaad/0xba0):
(XEN)  18 01 00 e9 73 f7 ff ff <0f> 0b 48 8b 43 28 be 01 00 00 00 bf 0a 20 02 00
(XEN) Xen stack trace from rsp=ffff83077fe4fd00:
(XEN)    ffff82d0803577ef 0000001e00000000 80000000803577ef ffff830f9d5b2aa0
(XEN)    ffff82d0803577ef ffff83077a6c59e0 ffff83077fe4fe38 ffff82d0803577fb
(XEN)    0000000000000000 0000000000000000 0000000001c9c380 0000000000000000
(XEN)    ffff83077fe4ffff 000000000000001e 000014f4e86c885e ffff83077fe4ffff
(XEN)    ffff82d08094a480 000014f4e86c73be 0000000080230c80 ffff830060b38000
(XEN)    ffff83077fe58300 0000000000000046 ffff830f9d4f6018 0000000000000082
(XEN)    000000000000001e ffff83077fe581c8 0000000000000001 000000000000001e
(XEN)    ffff83005d1f0000 ffff83077fe58188 000014f4e86c885e ffff83077fe58180
(XEN)    ffff82d08094a480 ffff82d08023153d ffff830700000000 ffff83077fe581a0
(XEN)    0000000000000206 ffff82d080268705 ffff83077fe58300 ffff830060b38060
(XEN)    ffff830845d83010 ffff82d080238578 ffff83077fe4ffff 00000000ffffffff
(XEN)    ffffffffffffffff ffff83077fe4ffff ffff82d080933c00 ffff82d08094a480
(XEN)    ffff83077fe4ffff ffff82d080234cb2 ffff82d08095f1f0 ffff82d080934b00
(XEN)    ffff82d08095f1f0 000000000000001e 000000000000001e ffff82d08026daf5
(XEN)    ffff83005d1f0000 ffff83005d1f0000 ffff83005d1f0000 ffff83077fe58188
(XEN)    000014f4e86a43ab ffff83077fe58180 ffff82d08094a480 ffff88011dd88000
(XEN)    ffff88011dd88000 ffff88011dd88000 0000000000000000 000000000000002b
(XEN)    ffffffff81d4c180 0000000000000000 00000013fe969894 0000000000000001
(XEN)    0000000000000000 ffffffff81020e50 0000000000000000 0000000000000000
(XEN)    0000000000000000 0000000000000000 000000fc00000000 ffffffff81060182
(XEN) Xen call trace:
(XEN)    [<ffff82d08022879d>] sched_credit.c#csched_schedule+0xaad/0xba0
(XEN)    [<ffff82d0803577ef>] common_interrupt+0x8f/0x110
(XEN)    [<ffff82d0803577ef>] common_interrupt+0x8f/0x110
(XEN)    [<ffff82d0803577fb>] common_interrupt+0x9b/0x110
(XEN)    [<ffff82d08023153d>] schedule.c#schedule+0xdd/0x5d0
(XEN)    [<ffff82d080268705>] reprogram_timer+0x75/0xe0
(XEN)    [<ffff82d080238578>] timer.c#timer_softirq_action+0x138/0x210
(XEN)    [<ffff82d080234cb2>] softirq.c#__do_softirq+0x62/0x90
(XEN)    [<ffff82d08026daf5>] domain.c#idle_loop+0x45/0xb0
(XEN) ****************************************
(XEN) Panic on CPU 30:
(XEN) Xen BUG at sched_credit.c:1694
(XEN) ****************************************
(XEN) Reboot in five seconds...

But after that the system hangs hard, one has to pull the plug.
Running the debug version of xen.efi did not trigger any ASSERT.


This happens if there are many busy backend/frontend pairs in a number
of domUs. I think more domUs will trigger it sooner, overcommit helps as
well. It was not seen with a single domU.

The testcase is like that:
- boot dom0 with "dom0_max_vcpus=30 dom0_mem=32G dom0_vcpus_pin"
- create a tmpfs in dom0
- create files in that tmpfs to be exported to domUs via file://path,xvdtN,w
- assign these files to HVM domUs
- inside the domUs, create a filesystem on the xvdtN devices
- mount the filesystem
- run fio(1) on the filesystem
- in dom0, run 'xl vcpu-pin domU $node1-3 $nodeN' in a loop to move domU between node 1 to 3.

After a low number of iterations Xen crashes in csched_load_balance.

In my setup I had 16 HVM domUs with 64 vcpus, each one had 3 vbd devices.
It was reported also with fewer and smaller domUs.
Scripts exist to recreate the setup easily.


In one case I have seen this:

(XEN) d32v60 VMRESUME error: 0x5
(XEN) domain_crash_sync called from vmcs.c:1673
(XEN) Domain 32 (vcpu#60) crashed on cpu#139:
(XEN) ----[ Xen-4.11.20180407T144959.e62e140daa-2.bug1087289_411  x86_64  debug=n   Not tainted ]----


Any idea what might causing this crash?

Olaf

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 195 bytes --]

[-- Attachment #2: Type: text/plain, Size: 157 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

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

end of thread, other threads:[~2018-04-17 12:39 UTC | newest]

Thread overview: 58+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-10  8:57 crash in csched_load_balance after xl vcpu-pin Olaf Hering
2018-04-10  9:34 ` George Dunlap
2018-04-10 10:33   ` Dario Faggioli
2018-04-10 10:59     ` George Dunlap
2018-04-10 11:29       ` Dario Faggioli
2018-04-10 15:25         ` George Dunlap
2018-04-10 15:36           ` Dario Faggioli
     [not found]           ` <960702b6d9dfb67bfae72ae02ae502210695416b.camel@suse.com>
2018-04-10 20:37             ` Olaf Hering
2018-04-10 22:59               ` Dario Faggioli
2018-04-11  7:31                 ` Dario Faggioli
2018-04-11  7:39                   ` Juergen Gross
2018-04-11  7:42                     ` Dario Faggioli
2018-04-11 10:00                   ` Olaf Hering
     [not found]                     ` <298ec681a9c38eb7618e6b3e226486691e9eab4d.camel@suse.com>
2018-04-11 11:02                       ` George Dunlap
2018-04-11 12:31                         ` Jan Beulich
2018-04-11 15:03                     ` Olaf Hering
2018-04-11 15:27                       ` Olaf Hering
2018-04-11 17:20                         ` Dario Faggioli
2018-04-11 20:43                           ` Olaf Hering
2018-04-11 21:31                             ` Dario Faggioli
     [not found]                               ` <5ACE29E00200005B03782666@prv1-mh.provo.novell.com>
     [not found]                                 ` <5ACE443D020000E603784221@prv1-mh.provo.novell.com>
     [not found]                                   ` <5ACE73C402000076046FD1E0@prv1-mh.provo.novell.com>
     [not found]                                     ` <5ACE7F370200002F0378782F@prv1-mh.provo.novell.com>
2018-04-12  7:18                                       ` Jan Beulich
2018-04-12  9:38                               ` George Dunlap
2018-04-12 10:16                                 ` Dario Faggioli
2018-04-12 12:45                                   ` Olaf Hering
2018-04-12 13:15                                     ` Dario Faggioli
2018-04-12 15:38                                       ` Dario Faggioli
2018-04-12 17:25                                         ` Dario Faggioli
2018-04-13  6:23                                           ` Olaf Hering
2018-04-13  9:01                                             ` Dario Faggioli
2018-04-13  9:03                                           ` George Dunlap
2018-04-13  9:25                                             ` Dario Faggioli
2018-04-13 10:38                                               ` Olaf Hering
2018-04-13 11:29                                               ` George Dunlap
2018-04-13 11:41                                                 ` Dario Faggioli
2018-04-13 10:47                                             ` Dario Faggioli
     [not found]                       ` <5ACE23DF0200002D03781F6A@prv1-mh.provo.novell.com>
2018-04-11 15:38                         ` Jan Beulich
2018-04-11 15:48                           ` Olaf Hering
     [not found]                 ` <9c857d1a-d592-8db5-827c-30fbc97477e0@citrix.com>
2018-04-11 11:00                   ` Dario Faggioli
2018-04-10 11:30       ` Dario Faggioli
2018-04-10 11:31       ` Dario Faggioli
2018-04-10 11:32       ` Dario Faggioli
2018-04-10 11:33       ` Dario Faggioli
2018-04-10 15:18 ` Olaf Hering
2018-04-10 15:29   ` George Dunlap
2018-04-10 15:59 ` Olaf Hering
2018-04-10 16:28   ` Dario Faggioli
2018-04-10 19:03     ` Olaf Hering
2018-04-10 20:02       ` Dario Faggioli
2018-04-10 20:09         ` Olaf Hering
2018-04-10 20:13           ` Olaf Hering
2018-04-10 20:41             ` Dario Faggioli
2018-04-11  6:23               ` Olaf Hering
2018-04-11  8:42                 ` Dario Faggioli
2018-04-11  8:48                   ` Olaf Hering
2018-04-11 10:20                     ` Dario Faggioli
2018-04-11 12:45                       ` Olaf Hering
2018-04-17 12:39                         ` Dario Faggioli
2018-04-11 10:20                     ` Dario Faggioli

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.