Skip to contentSkip to conversation

Recent cores-scheduling failures

Xen-devel Sergey Dyasli 3 participants 6 messages Dec 19, 2019 – Jan 15, 2020

lore
Share & tools
lore
#0 lore raw

Hi Juergen,

We recently did another quick test of core scheduling mode, and the following failures were found:

1. live-patch apply failures:

    (XEN) [ 1058.751974] livepatch: lp_1_1: Timed out on semaphore in CPU quiesce phase 30/31
    (XEN) [ 1058.751982] livepatch: lp_1_1 finished REPLACE with rc=-16

2. ACPI S5 crash:

    https://paste.debian.net/1121748/

--
Thanks,
Sergey

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

#2 lore raw
In reply to Sergey Dyasli
Quoted 5 lines · Sergey Dyasli

Hi Juergen,

We recently did another quick test of core scheduling mode, and the following failures were found:

Quoted 8 lines

1. live-patch apply failures:

     (XEN) [ 1058.751974] livepatch: lp_1_1: Timed out on semaphore in CPU quiesce phase 30/31
     (XEN) [ 1058.751982] livepatch: lp_1_1 finished REPLACE with rc=-16

2. ACPI S5 crash:

     https://paste.debian.net/1121748/

So in sched_slave() *vprev is already scrubbed.

I have currently no idea how that could happen, is vprev->is_running should be cleared only a little bit later.

Will look into it more..

Juergen

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

#3 lore raw
Quoted 10 lines · Jürgen Groß
Quoted 9 lines · Sergey Dyasli

Hi Juergen,

We recently did another quick test of core scheduling mode, and the following failures were found:

1. live-patch apply failures:

     (XEN) [ 1058.751974] livepatch: lp_1_1: Timed out on semaphore in CPU quiesce phase 30/31
     (XEN) [ 1058.751982] livepatch: lp_1_1 finished REPLACE with rc=-16

Have you been able to look into this one?

Quoted 9 lines
Quoted 4 lines

2. ACPI S5 crash:

     https://paste.debian.net/1121748/

So in sched_slave() *vprev is already scrubbed.

I have currently no idea how that could happen, is vprev->is_running should be cleared only a little bit later.

Have you been able to identify the place in code where this happens? I can try adding some debug messages.

In some good news, we did more XenRT testing with core scheduling mode and there were no other issues found so far.

--
Thanks,
Sergey

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

#4 lore raw
In reply to Sergey Dyasli
Quoted 5 lines · Sergey Dyasli

Hi Juergen,

We recently did another quick test of core scheduling mode, and the following failures were found:

Quoted 8 lines

1. live-patch apply failures:

     (XEN) [ 1058.751974] livepatch: lp_1_1: Timed out on semaphore in CPU quiesce phase 30/31
     (XEN) [ 1058.751982] livepatch: lp_1_1 finished REPLACE with rc=-16

2. ACPI S5 crash:

     https://paste.debian.net/1121748/

Are there any XenServer patches in your hypervisor?

I'm asking because I don't see why a vcpu would be freed when shutting down the host (other than by any shutdown scripts, but those should be long finished when trying to enter S5).

Juergen

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

#5 lore raw
Quoted 13 lines · Jürgen Groß
Quoted 12 lines · Sergey Dyasli

Hi Juergen,

We recently did another quick test of core scheduling mode, and the following failures were found:

1. live-patch apply failures:

     (XEN) [ 1058.751974] livepatch: lp_1_1: Timed out on semaphore in CPU quiesce phase 30/31
     (XEN) [ 1058.751982] livepatch: lp_1_1 finished REPLACE with rc=-16

2. ACPI S5 crash:

Quoted 7 lines
Quoted 1 line
     https://paste.debian.net/1121748/

Are there any XenServer patches in your hypervisor?

I'm asking because I don't see why a vcpu would be freed when shutting down the host (other than by any shutdown scripts, but those should be long finished when trying to enter S5).

While we have the patch-queue applied in our testing, there is nothing there that would affect the scheduler directly.

The S5 crash reproduces reliably in automated testing, but I still don't know how to trigger the issue manually.

--
Thanks,
Sergey

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel