Skip to contentSkip to conversation

60076: regressions - FAIL

xen-unstable test osstest service owner 7 participants 12 messages Jul 29, 2015 – Jul 30, 2015

lore
Share & tools
lore
#0 lore raw

flight 60076 xen-unstable real [real]
http://logs.test-lab.xenproject.org/osstest/logs/60076/

Regressions :-(

Tests which did not succeed and are blocking,
including tests which could not be run:
test-amd64-amd64-xl-qemuu-ovmf-amd64 9 debian-hvm-install fail REGR. vs. 59817
test-armhf-armhf-xl-multivcpu 14 guest-start.2 fail REGR. vs. 59817
test-amd64-i386-xl-qemuu-ovmf-amd64 9 debian-hvm-install fail REGR. vs. 59817

Regressions which are regarded as allowable (not blocking):
test-amd64-i386-rumpuserxen-i386 15 rumpuserxen-demo-xenstorels/xenstorels.repeat fail REGR. vs. 59817 test-amd64-amd64-xl-qemut-stubdom-debianhvm-amd64-xsm 15 guest-localmigrate/x10 fail blocked in 59817 test-amd64-i386-xl-qemut-stubdom-debianhvm-amd64-xsm 9 debian-hvm-install fail like 59817
test-armhf-armhf-xl-rtds 11 guest-start fail like 59817
test-amd64-amd64-xl-qemut-win7-amd64 16 guest-stop fail like 59817
test-amd64-i386-xl-qemuu-win7-amd64 16 guest-stop fail like 59817

Tests which did not succeed, but are not blocking:

 test-armhf-armhf-xl-arndale  12 migrate-support-check        fail   never pass
 test-amd64-amd64-xl-pvh-amd  11 guest-start                  fail   never pass
 test-armhf-armhf-xl-xsm      12 migrate-support-check        fail   never pass
 test-amd64-i386-libvirt-xsm  12 migrate-support-check        fail   never pass
 test-armhf-armhf-xl          12 migrate-support-check        fail   never pass
 test-amd64-i386-libvirt      12 migrate-support-check        fail   never pass
 test-armhf-armhf-libvirt     12 migrate-support-check        fail   never pass
 test-armhf-armhf-xl-multivcpu 12 migrate-support-check        fail  never pass
 test-amd64-amd64-libvirt     12 migrate-support-check        fail   never pass
 test-amd64-amd64-xl-pvh-intel 11 guest-start                  fail  never pass
 test-amd64-i386-xl-qemut-win7-amd64 16 guest-stop              fail never pass
 test-armhf-armhf-xl-cubietruck 12 migrate-support-check        fail never pass
 test-armhf-armhf-xl-credit2  12 migrate-support-check        fail   never pass
 test-armhf-armhf-libvirt-xsm 12 migrate-support-check        fail   never pass
 test-amd64-amd64-libvirt-xsm 12 migrate-support-check        fail   never pass

test-amd64-amd64-xl-qemuu-win7-amd64 16 guest-stop fail never pass

version targeted for testing:
xen 3e791ccb1d1d036ed25e880b1ef72ea8dcabe43a
baseline version:
xen 7c60c2da3160766a265cb84c7411ff2c9cbd8d0b

Last test of basis    59817  2015-07-22 07:29:29 Z    6 days
Failing since         59833  2015-07-23 10:56:30 Z    5 days    4 attempts
Testing same since    60076  2015-07-28 12:22:00 Z    0 days    1 attempts

------------------------------------------------------------
People who touched revisions under test:
Andrew Cooper <[email protected]>
Andrew Cooper <[email protected]> for the x86 bits. Chao Peng <[email protected]>
Chris (Christopher) Brand <[email protected]> Chris Brand <[email protected]>
Daniel De Graaf <[email protected]>
Dario Faggioli <[email protected]>
Ed White <[email protected]>
George Dunlap <[email protected]>
Ian Campbell <[email protected]>
Ian Jackson <[email protected]>
Jan Beulich <[email protected]>
Jonathan Creekmore <[email protected]> Juergen Gross <[email protected]>
Julien Grall <[email protected]>
Jun Nakajima <[email protected]>
Kevin Tian <[email protected]>
Martin Lucina <[email protected]>
Ravi Sahita <[email protected]>
Roger Pau Monné <[email protected]>
Tamas K Lengyel <[email protected]>
Tiejun Chen <[email protected]>
Wei Liu <[email protected]>

jobs:

 build-amd64-xsm                                              pass
 build-armhf-xsm                                              pass
 build-i386-xsm                                               pass
 build-amd64                                                  pass
 build-armhf                                                  pass
 build-i386                                                   pass
 build-amd64-libvirt                                          pass
 build-armhf-libvirt                                          pass
 build-i386-libvirt                                           pass
 build-amd64-oldkern                                          pass
 build-i386-oldkern                                           pass
 build-amd64-pvops                                            pass
 build-armhf-pvops                                            pass
 build-i386-pvops                                             pass
 build-amd64-rumpuserxen                                      pass
 build-i386-rumpuserxen                                       pass
 test-amd64-amd64-xl                                          pass
 test-armhf-armhf-xl                                          pass
 test-amd64-i386-xl                                           pass
 test-amd64-amd64-xl-qemut-debianhvm-amd64-xsm                pass
 test-amd64-i386-xl-qemut-debianhvm-amd64-xsm                 pass
 test-amd64-amd64-xl-qemuu-debianhvm-amd64-xsm                pass
 test-amd64-i386-xl-qemuu-debianhvm-amd64-xsm                 pass
 test-amd64-amd64-xl-qemut-stubdom-debianhvm-amd64-xsm        fail
 test-amd64-i386-xl-qemut-stubdom-debianhvm-amd64-xsm         fail
 test-amd64-amd64-libvirt-xsm                                 pass
 test-armhf-armhf-libvirt-xsm                                 pass
 test-amd64-i386-libvirt-xsm                                  pass
 test-amd64-amd64-xl-xsm                                      pass
 test-armhf-armhf-xl-xsm                                      pass
 test-amd64-i386-xl-xsm                                       pass
 test-amd64-amd64-xl-pvh-amd                                  fail
 test-amd64-i386-qemut-rhel6hvm-amd                           pass
 test-amd64-i386-qemuu-rhel6hvm-amd                           pass
 test-amd64-amd64-xl-qemut-debianhvm-amd64                    pass
 test-amd64-i386-xl-qemut-debianhvm-amd64                     pass
 test-amd64-amd64-xl-qemuu-debianhvm-amd64                    pass
 test-amd64-i386-xl-qemuu-debianhvm-amd64                     pass
 test-amd64-i386-freebsd10-amd64                              pass
 test-amd64-amd64-xl-qemuu-ovmf-amd64                         fail
 test-amd64-i386-xl-qemuu-ovmf-amd64                          fail
 test-amd64-amd64-rumpuserxen-amd64                           pass
 test-amd64-amd64-xl-qemut-win7-amd64                         fail
 test-amd64-i386-xl-qemut-win7-amd64                          fail
 test-amd64-amd64-xl-qemuu-win7-amd64                         fail
 test-amd64-i386-xl-qemuu-win7-amd64                          fail
 test-armhf-armhf-xl-arndale                                  pass
 test-amd64-amd64-xl-credit2                                  pass
 test-armhf-armhf-xl-credit2                                  pass
 test-armhf-armhf-xl-cubietruck                               pass
 test-amd64-i386-freebsd10-i386                               pass
 test-amd64-i386-rumpuserxen-i386                             fail
 test-amd64-amd64-xl-pvh-intel                                fail
 test-amd64-i386-qemut-rhel6hvm-intel                         pass
 test-amd64-i386-qemuu-rhel6hvm-intel                         pass
 test-amd64-amd64-libvirt                                     pass
 test-armhf-armhf-libvirt                                     pass
 test-amd64-i386-libvirt                                      pass
 test-amd64-amd64-xl-multivcpu                                pass
 test-armhf-armhf-xl-multivcpu                                fail
 test-amd64-amd64-pair                                        pass
 test-amd64-i386-pair                                         pass
 test-amd64-amd64-xl-rtds                                     pass
 test-armhf-armhf-xl-rtds                                     fail
 test-amd64-i386-xl-qemut-winxpsp3-vcpus1                     pass
 test-amd64-i386-xl-qemuu-winxpsp3-vcpus1                     pass
 test-amd64-amd64-xl-qemut-winxpsp3                           pass
 test-amd64-i386-xl-qemut-winxpsp3                            pass
 test-amd64-amd64-xl-qemuu-winxpsp3                           pass
 test-amd64-i386-xl-qemuu-winxpsp3                            pass

------------------------------------------------------------
sg-report-flight on osstest.test-lab.xenproject.org
logs: /home/logs/logs
images: /home/logs/images

Logs, config files, etc. are available at
http://logs.test-lab.xenproject.org/osstest/logs

Explanation of these reports, and of osstest in general, is at
http://xenbits.xen.org/gitweb/?p=osstest.git;a=blob;f=README.email;hb=master
http://xenbits.xen.org/gitweb/?p=osstest.git;a=blob;f=README;hb=master

Test harness code can be found at
http://xenbits.xen.org/gitweb?p=osstest.git;a=summary

Not pushing.

(No revision log; it would be 1573 lines long.)

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

#1 lore raw
Quoted 10 lines · osstest service owner

flight 60076 xen-unstable real [real]
http://logs.test-lab.xenproject.org/osstest/logs/60076/

Regressions :-(

Tests which did not succeed and are blocking,
including tests which could not be run:
test-amd64-amd64-xl-qemuu-ovmf-amd64 9 debian-hvm-install fail REGR. vs. 59817
test-armhf-armhf-xl-multivcpu 14 guest-start.2 fail REGR. vs. 59817

I gave a quick look at the logs, and didn't spot any obvious issues.

AFAICT, it seems it was actually working:

--- ---
http://logs.test-lab.xenproject.org/osstest/logs/60076/test-armhf-armhf-xl-multivcpu/serial-arndale-metrocentre.log

Jul 28 20:22:21.525058 [  623.706988] device vif2.0 entered promiscuous mode
Jul 28 20:22:21.669108 [  623.713782] IPv6: ADDRCONF(NETDEV_UP): vif2.0: link is not ready
Jul 28 20:22:21.677039 [  625.296200] xen-blkback:ring-ref 8, event-channel 3, protocol 1 (arm-abi) persistent grants
Jul 28 20:22:23.261086 [  625.325256] xen-blkback:ring-ref 9, event-channel 4, protocol 1 (arm-abi) persistent grants
Jul 28 20:22:23.293017 [  625.400219] IPv6: ADDRCONF(NETDEV_CHANGE): vif2.0: link becomes ready
Jul 28 20:22:23.365065 [  625.405368] xenbr0: port 2(vif2.0) entered forwarding state
Jul 28 20:22:23.365110 [  625.410948] xenbr0: port 2(vif2.0) entered forwarding state

http://logs.test-lab.xenproject.org/osstest/logs/60076/test-armhf-armhf-xl-multivcpu/arndale-metrocentre---var-log-xen-console-guest-debian.guest.osstest.log
INIT: Entering runlevel: 2

[info] Using makefile-style concurrent boot in runlevel 2.
[....] Starting enhanced syslogd: rsyslogd[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[?25l[?1c7[ ok 8[?25h[?0c. 



Debian GNU/Linux 7 debian hvc0

debian login: Debian GNU/Linux 7 debian hvc0

debian login:

--- ---

Can it be that things are "just" slow, since we're creating a 4 vcpus guest on a 1 pcpu (not so powerful, I guess) host?

http://logs.test-lab.xenproject.org/osstest/logs/60076/test-armhf-armhf-xl-multivcpu/arndale-metrocentre-output-xl_info_-n
cpu_topology :
cpu: core socket node
0: 0 0 0

http://logs.test-lab.xenproject.org/osstest/logs/60076/test-armhf-armhf-xl-multivcpu/arndale-metrocentre-output-xl_vcpu-list
Name ID VCPU CPU State Time(s) Affinity (Hard / Soft)

Domain-0                             0     0    0   r--     337.5  all / all
debian.guest.osstest                 2     0    0   ---      13.5  all / all
debian.guest.osstest                 2     1    0   ---      12.9  all / all
debian.guest.osstest                 2     2    0   ---      12.2  all / all
debian.guest.osstest                 2     3    0   ---      12.5  all / all

If I missed something, and this is just completely off... sorry for the noise. :-)

Regards,
Dario

Signature · 4 lines
<<This happens because I choose it to happen!>> (Raistlin Majere)
-----------------------------------------------------------------
Dario Faggioli, Ph.D, http://about.me/dario.faggioli
Senior Software Engineer, Citrix Systems R&D Ltd., Cambridge (UK)

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

#2 lore raw

Hi Dario,

Quoted 44 lines · Dario Faggioli
Quoted 10 lines · osstest service owner

flight 60076 xen-unstable real [real]
http://logs.test-lab.xenproject.org/osstest/logs/60076/

Regressions :-(

Tests which did not succeed and are blocking,
including tests which could not be run:
test-amd64-amd64-xl-qemuu-ovmf-amd64 9 debian-hvm-install fail REGR. vs. 59817
test-armhf-armhf-xl-multivcpu 14 guest-start.2 fail REGR. vs. 59817

I gave a quick look at the logs, and didn't spot any obvious issues.

AFAICT, it seems it was actually working:

--- ---
http://logs.test-lab.xenproject.org/osstest/logs/60076/test-armhf-armhf-xl-multivcpu/serial-arndale-metrocentre.log

Jul 28 20:22:21.525058 [  623.706988] device vif2.0 entered promiscuous mode
Jul 28 20:22:21.669108 [  623.713782] IPv6: ADDRCONF(NETDEV_UP): vif2.0: link is not ready
Jul 28 20:22:21.677039 [  625.296200] xen-blkback:ring-ref 8, event-channel 3, protocol 1 (arm-abi) persistent grants
Jul 28 20:22:23.261086 [  625.325256] xen-blkback:ring-ref 9, event-channel 4, protocol 1 (arm-abi) persistent grants
Jul 28 20:22:23.293017 [  625.400219] IPv6: ADDRCONF(NETDEV_CHANGE): vif2.0: link becomes ready
Jul 28 20:22:23.365065 [  625.405368] xenbr0: port 2(vif2.0) entered forwarding state
Jul 28 20:22:23.365110 [  625.410948] xenbr0: port 2(vif2.0) entered forwarding state

http://logs.test-lab.xenproject.org/osstest/logs/60076/test-armhf-armhf-xl-multivcpu/arndale-metrocentre---var-log-xen-console-guest-debian.guest.osstest.log
INIT: Entering runlevel: 2

[info] Using makefile-style concurrent boot in runlevel 2.
[....] Starting enhanced syslogd: rsyslogd[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[?25l[?1c7[ ok 8[?25h[?0c. 



Debian GNU/Linux 7 debian hvc0

Quoted 8 lines

debian login: Debian GNU/Linux 7 debian hvc0

debian login:

--- ---

Can it be that things are "just" slow, since we're creating a 4 vcpus guest on a 1 pcpu (not so powerful, I guess) host?

The arndale board has a 2 physical CPUs. Although it looks like that the secondary cpu is never coming up:

Jul 28 01:35:39.057076 (XEN) Adding cpu 1 to runqueue 0
Jul 28 01:35:39.057104 (XEN) Bringing up CPU1
Jul 28 01:35:39.064998 (XEN) CPU1 never came online
Jul 28 01:35:40.065133 (XEN) Removing cpu 1 from runqueue 0
Jul 28 01:35:40.065176 (XEN) Failed to bring up CPU 1 (error -5)

This has been broken at some point in Xen 4.6. Xen 4.5 is booting with the right number of physical on the Arndale.

Nonetheless, we are aware on the multi-vcpu test failing time to time on the arndale. It seems only happen with Xen-unstable.

osstest is waiting 40s to get the network ready in the guest. When the test pass, the osstest is likely waiting ~20s to pass it. I took the time between

guest debian.guest.osstest 5a:36:0e:06:00:20 22 link/ip/tcp: waiting 40s...

and the first

executing ssh ... [email protected] echo guest debian.guest.osstest: ok guest debian.guest.osstest: ok

For instance see
http://logs.test-lab.xenproject.org/osstest/logs/59910/test-armhf-armhf-xl-multivcpu/14.ts-guest-start.log

I will do more test once we get the 2 pCPUs case fixed.

Regards,

Signature · 1 line
Julien Grall
#3 lore raw
Quoted 77 lines · Julien Grall

Hi Dario,

Quoted 44 lines · Dario Faggioli
Quoted 10 lines · osstest service owner

flight 60076 xen-unstable real [real]
http://logs.test-lab.xenproject.org/osstest/logs/60076/

Regressions :-(

Tests which did not succeed and are blocking,
including tests which could not be run:
test-amd64-amd64-xl-qemuu-ovmf-amd64 9 debian-hvm-install fail REGR. vs. 59817
test-armhf-armhf-xl-multivcpu 14 guest-start.2 fail REGR. vs. 59817

I gave a quick look at the logs, and didn't spot any obvious issues.

AFAICT, it seems it was actually working:

--- ---
http://logs.test-lab.xenproject.org/osstest/logs/60076/test-armhf-armhf-xl-multivcpu/serial-arndale-metrocentre.log

Jul 28 20:22:21.525058 [  623.706988] device vif2.0 entered promiscuous mode
Jul 28 20:22:21.669108 [  623.713782] IPv6: ADDRCONF(NETDEV_UP): vif2.0: link is not ready
Jul 28 20:22:21.677039 [  625.296200] xen-blkback:ring-ref 8, event-channel 3, protocol 1 (arm-abi) persistent grants
Jul 28 20:22:23.261086 [  625.325256] xen-blkback:ring-ref 9, event-channel 4, protocol 1 (arm-abi) persistent grants
Jul 28 20:22:23.293017 [  625.400219] IPv6: ADDRCONF(NETDEV_CHANGE): vif2.0: link becomes ready
Jul 28 20:22:23.365065 [  625.405368] xenbr0: port 2(vif2.0) entered forwarding state
Jul 28 20:22:23.365110 [  625.410948] xenbr0: port 2(vif2.0) entered forwarding state

http://logs.test-lab.xenproject.org/osstest/logs/60076/test-armhf-armhf-xl-multivcpu/arndale-metrocentre---var-log-xen-console-guest-debian.guest.osstest.log
INIT: Entering runlevel: 2

[info] Using makefile-style concurrent boot in runlevel 2.
[....] Starting enhanced syslogd: rsyslogd[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[?25l[?1c7[ ok 8[?25h[?0c. 



Debian GNU/Linux 7 debian hvc0

Quoted 8 lines

debian login: Debian GNU/Linux 7 debian hvc0

debian login:

--- ---

Can it be that things are "just" slow, since we're creating a 4 vcpus guest on a 1 pcpu (not so powerful, I guess) host?

The arndale board has a 2 physical CPUs. Although it looks like that the secondary cpu is never coming up:

Jul 28 01:35:39.057076 (XEN) Adding cpu 1 to runqueue 0
Jul 28 01:35:39.057104 (XEN) Bringing up CPU1
Jul 28 01:35:39.064998 (XEN) CPU1 never came online
Jul 28 01:35:40.065133 (XEN) Removing cpu 1 from runqueue 0
Jul 28 01:35:40.065176 (XEN) Failed to bring up CPU 1 (error -5)

This has been broken at some point in Xen 4.6. Xen 4.5 is booting with the right number of physical on the Arndale.

Nonetheless, we are aware on the multi-vcpu test failing time to time on the arndale. It seems only happen with Xen-unstable.

osstest is waiting 40s to get the network ready in the guest. When the test pass, the osstest is likely waiting ~20s to pass it. I took the time between

guest debian.guest.osstest 5a:36:0e:06:00:20 22 link/ip/tcp: waiting 40s...

Quoted 7 lines

and the first

executing ssh ... [email protected] echo guest debian.guest.osstest: ok guest debian.guest.osstest: ok

For instance see
http://logs.test-lab.xenproject.org/osstest/logs/59910/test-armhf-armhf-xl-multivcpu/14.ts-guest-start.log

FWIW, there is also worth case where the waiting time very close to 40s (exactly 38s):

http://logs.test-lab.xenproject.org/osstest/logs/59721/test-armhf-armhf-xl-multivcpu/14.ts-guest-start.log

Signature · 1 line
Julien Grall
#4 lore raw

Arndale secondary CPU boot issue Was Re: [xen-unstable test] 60076: regressions - FAIL

Quoted 6 lines · Julien Grall
Quoted 6 lines
Quoted 2 lines

Can it be that things are "just" slow, since we're creating a 4 vcpus guest on a 1 pcpu (not so powerful, I guess) host?

The arndale board has a 2 physical CPUs. Although it looks like that the secondary cpu is never coming up:

Quoted 8 lines
Quoted 8 lines
Jul 28 01:35:39.057076 (XEN) Adding cpu 1 to runqueue 0
Jul 28 01:35:39.057104 (XEN) Bringing up CPU1
Jul 28 01:35:39.064998 (XEN) CPU1 never came online
Jul 28 01:35:40.065133 (XEN) Removing cpu 1 from runqueue 0
Jul 28 01:35:40.065176 (XEN) Failed to bring up CPU 1 (error -5)

This has been broken at some point in Xen 4.6. Xen 4.5 is booting with the right number of physical on the Arndale.

I figured out what's going on. The problem interestingly came after the commit which added the support of the ticket lock [1] in Xen.

While the problem is solved by reverting this patch, the source of the issue is not because of a ticket lock issue with ARM (thanks god!).

The old implementation of spinlock is sending an event (via the assembly instruction SEV) to the other physical CPUs. This will wake up the others CPUs waiting on the assembly instruction WFE (Wait For Event).

It appears to be required on the Arndale to boot secondaries CPUs. Although, depending on where I put the sev I don't have the same behavior:
- sev in smp_init callback: the CPU is not coming up
- sev before or after arch_cpu_up: the CPU is booting but not in HYP
mode [2]

I haven't yet figured out where the "sev" should be placed in order to get the CPU boot correctly.

What I don't understand is how the placement of "sev" would affect the secondary processor to boot in HYP mode or Kernel mode or nothing at all

This platform seems very picky and I don't remember having a documentation about how the SMP boot works for this platform. Linux seems to avoid the SEV for this platform.

Regards,

[1] e10784ac424405c82accd0542fcc84cf468c53dc "use ticket locks for spin locks".
[2] - CPU 00000001 booting -
- Xen must be entered in NS Hyp mode -
- Boot failed -

Signature · 1 line
Julien Grall
#11 lore raw
In reply to Julien Grall
Quoted 13 lines · Julien Grall
Quoted 10 lines · Julien Grall

osstest is waiting 40s to get the network ready in the guest. When the test pass, the osstest is likely waiting ~20s to pass it. I took the time between

guest debian.guest.osstest 5a:36:0e:06:00:20 22 link/ip/tcp: waiting 40s...

and the first

executing ssh ... [email protected] echo guest debian.guest.osstest: ok guest debian.guest.osstest: ok

Quoted 8 lines
Quoted 2 lines

For instance see
http://logs.test-lab.xenproject.org/osstest/logs/59910/test-armhf-armhf-xl-multivcpu/14.ts-guest-start.log

FWIW, there is also worth case where the waiting time very close to 40s (exactly 38s):

http://logs.test-lab.xenproject.org/osstest/logs/59721/test-armhf-armhf-xl-multivcpu/14.ts-guest-start.log

Exactly my point, together with this:

http://logs.test-lab.xenproject.org/osstest/logs/60076/test-armhf-armhf-xl-multivcpu/arndale-metrocentre---var-log-xen-console-guest-debian.guest.osstest.log

It show two instances of full guest boot, which makes sense as it is the second attempt that "fails".

Look at the second one and note:
- that it actually boots fine
- for some reason, we have:

    [    1.196443] udevd[69]: starting version 175
    Begin: Loading essential drivers ... done.
    Begin: Running /scripts/init-premount ... done.
    Begin: Mounting root file system ... Begin:     
    Running /scripts/local-top ... done.
    Begin: Running /scripts/local-premount ... done.
    Begin: Running /scripts/local-premount ... done.
    [   20.741128] EXT4-fs (xvda2): mounting ext3 file system using the ext4 subsystem
    [   20.755723] EXT4-fs (xvda2): mounted filesystem with ordered data mode. Opts: (null)
    ... ... ... ...
    [   47.329342] EXT4-fs (xvda2): re-mounted. Opts: (null)
    [....] Checking root file system...fsck from util-linux 2.20.1
    /dev/xvda2: clean, 14689/262144 files, 124109/1048576 blocks
    ... ... ... ...
    [   47.803550] EXT4-fs (xvda2): re-mounted. Opts: errors=remount-ro

so it looks like it did take quite a bit to start. Yes, that's in guest time, but stil...

In first instance, we have this:

[    1.221159] udevd[69]: starting version 175

Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.

[    2.275805] EXT4-fs (xvda2): mounting ext3 file system using the ext4 subsystem
[    2.300418] EXT4-fs (xvda2): mounted filesystem with ordered data mode. Opts: (null)
... ... ... ...
[    5.958201] EXT4-fs (xvda2): re-mounted. Opts: (null)
[....] Checking root file system...fsck from util-linux 2.20.1
... ... ... ...
[    6.424911] EXT4-fs (xvda2): re-mounted. Opts: errors=remount-ro

Then, no, I don't think I see why the pre-mount activities (I don't even know what those are, although, I don't think it matters) already is ~10x slower, and then the mounting and the fsck check ~6x...

The host is certainly overloaded, in terms of number of vcpus vs. number of pcpus, but it's not that all those vcpus should be super busy at this point... Perhaps, the host being practically UP matters (I don't think I've actually ever run Xen on an UP system! :-P)

Dario

Signature · 4 lines
<<This happens because I choose it to happen!>> (Raistlin Majere)
-----------------------------------------------------------------
Dario Faggioli, Ph.D, http://about.me/dario.faggioli
Senior Software Engineer, Citrix Systems R&D Ltd., Cambridge (UK)

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

#5 lore raw

Re: Arndale secondary CPU boot issue Was Re: [xen-unstable test] 60076: regressions - FAIL

In reply to Julien Grall

On Wed, 2015-07-29 at 19:18 +0100, Julien Grall wrote:

As an aside from the issue you are seeing:

Quoted 3 lines

The old implementation of spinlock is sending an event (via the assembly instruction SEV) to the other physical CPUs. This will wake up the others CPUs waiting on the assembly instruction WFE (Wait For Event).

Uh, I didn't notice this about the new implementation, sorry I should have done.

IMHO we should investigate (probably with some urgency) inserting a WFE and SEV pair into the lock/unlock paths, else power consumption will suck.

I think that probably means using something new to replace the cpu_relax() calls in the spinlocks with a WFE on ARM (we don't just want to change relax) and to add a arch specific hook for the SEV on the release path.

If it is too late for 4.6 (which would depend on the eventual complexity of the actual fix) then we should fix this ASAP in 4.7 and backport for 4.6.1.

Quoted 10 lines

It appears to be required on the Arndale to boot secondaries CPUs. Although, depending on where I put the sev I don't have the same behavior:
- sev in smp_init callback: the CPU is not coming up
- sev before or after arch_cpu_up: the CPU is booting but not in
HYP
mode [2]

I haven't yet figured out where the "sev" should be placed in order to get the CPU boot correctly.

Does the arndale end up using
.cpu_up = cpu_up_send_sgi,
or
.cpu_up = exynos5_cpu_up,
?

Quoted 6 lines

What I don't understand is how the placement of "sev" would affect the secondary processor to boot in HYP mode or Kernel mode or nothing at all

This platform seems very picky and I don't remember having a documentation about how the SMP boot works for this platform. Linux seems to avoid the SEV for this platform.

32-bit Linux has some in common code paths IIRC, which are not always apparent at first glance.

Ian.

#10 lore raw

Re: Arndale secondary CPU boot issue Was Re: [xen-unstable test] 60076: regressions - FAIL

In reply to Julien Grall
Quoted 12 lines · Julien Grall
Quoted 11 lines · Julien Grall
Quoted 11 lines
Quoted 2 lines

Can it be that things are "just" slow, since we're creating a 4 vcpus guest on a 1 pcpu (not so powerful, I guess) host?

The arndale board has a 2 physical CPUs. Although it looks like that the secondary cpu is never coming up:

Jul 28 01:35:39.057076 (XEN) Adding cpu 1 to runqueue 0
Jul 28 01:35:39.057104 (XEN) Bringing up CPU1
Jul 28 01:35:39.064998 (XEN) CPU1 never came online
Jul 28 01:35:40.065133 (XEN) Removing cpu 1 from runqueue 0
Jul 28 01:35:40.065176 (XEN) Failed to bring up CPU 1 (error -5)
Quoted 7 lines
Quoted 2 lines
Quoted 2 lines

This has been broken at some point in Xen 4.6. Xen 4.5 is booting with the right number of physical on the Arndale.

I figured out what's going on. The problem interestingly came after the commit which added the support of the ticket lock [1] in Xen.

While the problem is solved by reverting this patch, the source of the issue is not because of a ticket lock issue with ARM (thanks god!).

As an aside, why is failing to bring up a cpu not fatal under ARM?

I admit that x86 isn't much better in this regard - it will spin in an infinite loop waiting for the upcoming cpu to call in, but it least it doesn't proceed booting with some cpus unexpectedly missing.

~Andrew

#6 lore raw

Re: Arndale secondary CPU boot issue Was Re: [xen-unstable test] 60076: regressions - FAIL

In reply to Ian Campbell
Quoted 11 lines · Ian Campbell

On Wed, 2015-07-29 at 19:18 +0100, Julien Grall wrote:

As an aside from the issue you are seeing:

Quoted 3 lines

The old implementation of spinlock is sending an event (via the assembly instruction SEV) to the other physical CPUs. This will wake up the others CPUs waiting on the assembly instruction WFE (Wait For Event).

Uh, I didn't notice this about the new implementation, sorry I should have done.

Quoted 6 lines

IMHO we should investigate (probably with some urgency) inserting a WFE and SEV pair into the lock/unlock paths, else power consumption will suck.

I think that probably means using something new to replace the cpu_relax() calls in the spinlocks with a WFE on ARM (we don't just want to change relax) and to add a arch specific hook for the SEV on the release path.

I agree: adding a WFE in cpu_relax() is too risky at this point.

Quoted 2 lines

If it is too late for 4.6 (which would depend on the eventual complexity of the actual fix) then we should fix this ASAP in 4.7 and backport for 4.6.1.

I don't think we can release 4.6 without a WFE in the locks. We might want to consider reverting to spin_locks on ARM (although I am aware that the code is common at the moment).

#7 lore raw

Re: Arndale secondary CPU boot issue Was Re: [xen-unstable test] 60076: regressions - FAIL

Quoted 26 lines · Stefano Stabellini
Quoted 13 lines · Ian Campbell

On Wed, 2015-07-29 at 19:18 +0100, Julien Grall wrote:

As an aside from the issue you are seeing:

Quoted 4 lines

The old implementation of spinlock is sending an event (via the assembly
instruction SEV) to the other physical CPUs. This will wake up the others CPUs waiting on the assembly instruction WFE (Wait For Event).

Uh, I didn't notice this about the new implementation, sorry I should have
done.

Quoted 8 lines

IMHO we should investigate (probably with some urgency) inserting a WFE and
SEV pair into the lock/unlock paths, else power consumption will suck.

I think that probably means using something new to replace the cpu_relax()
calls in the spinlocks with a WFE on ARM (we don't just want to change relax) and to add a arch specific hook for the SEV on the release path.

I agree: adding a WFE in cpu_relax() is too risky at this point.

Quoted 8 lines
Quoted 4 lines

If it is too late for 4.6 (which would depend on the eventual complexity of
the actual fix) then we should fix this ASAP in 4.7 and backport for 4.6.1.

I don't think we can release 4.6 without a WFE in the locks. We might want to consider reverting to spin_locks on ARM (although I am aware that the code is common at the moment).

It turns out we were missing the WFE even in the old code (I vaguely recall having to refactor the Linux original to fit in with our arch/common split and leaving myself a TODO item).

So I don't think we can justify changing this was 4.6. Investigating for 4.7 would be nice. Needs some careful though about races of the evt bit vs the tickets changing though.

Ian.

#8 lore raw

Re: Arndale secondary CPU boot issue Was Re: [xen-unstable test] 60076: regressions - FAIL

In reply to Stefano Stabellini
Quoted 12 lines · Stefano Stabellini
Quoted 11 lines · Ian Campbell

On Wed, 2015-07-29 at 19:18 +0100, Julien Grall wrote:

As an aside from the issue you are seeing:

Quoted 3 lines

The old implementation of spinlock is sending an event (via the assembly instruction SEV) to the other physical CPUs. This will wake up the others CPUs waiting on the assembly instruction WFE (Wait For Event).

Uh, I didn't notice this about the new implementation, sorry I should have done.

Quoted 8 lines
Quoted 6 lines

IMHO we should investigate (probably with some urgency) inserting a WFE and SEV pair into the lock/unlock paths, else power consumption will suck.

I think that probably means using something new to replace the cpu_relax() calls in the spinlocks with a WFE on ARM (we don't just want to change relax) and to add a arch specific hook for the SEV on the release path.

I agree: adding a WFE in cpu_relax() is too risky at this point.

WFE in cpu_relax() would be broken.

However, adding two hooks for spin_relax() (using this instead of cpu_relax()) and spin_signal() that do the WFE/SEV seems low risk to me.

For x86 use:

#define spin_relax() cpu_relax()
#define spin_signal()

Quoted 6 lines
Quoted 2 lines

If it is too late for 4.6 (which would depend on the eventual complexity of the actual fix) then we should fix this ASAP in 4.7 and backport for 4.6.1.

I don't think we can release 4.6 without a WFE in the locks. We might want to consider reverting to spin_locks on ARM (although I am aware that the code is common at the moment).

You can't revert the ticket locks for one architecture only.

David

#9 lore raw

Re: Arndale secondary CPU boot issue Was Re: [xen-unstable test] 60076: regressions - FAIL

In reply to Ian Campbell

Hi Ian,

Quoted 9 lines · Ian Campbell
Quoted 8 lines · Julien Grall

It appears to be required on the Arndale to boot secondaries CPUs. Although, depending on where I put the sev I don't have the same behavior:
- sev in smp_init callback: the CPU is not coming up
- sev before or after arch_cpu_up: the CPU is booting but not in
HYP
mode [2]

Quoted 8 lines
Quoted 2 lines

I haven't yet figured out where the "sev" should be placed in order to get the CPU boot correctly.

Does the arndale end up using
.cpu_up = cpu_up_send_sgi,
or
.cpu_up = exynos5_cpu_up,
?

The first one given that the arndale is an exynos5250. I'm not sure why we didn't use exynos5_cpu_up. Although it doesn't seem to fix the problem.

Quoted 9 lines
Quoted 6 lines

What I don't understand is how the placement of "sev" would affect the secondary processor to boot in HYP mode or Kernel mode or nothing at all

This platform seems very picky and I don't remember having a documentation about how the SMP boot works for this platform. Linux seems to avoid the SEV for this platform.

32-bit Linux has some in common code paths IIRC, which are not always apparent at first glance.

Good to know.

Regards,

Signature · 1 line
Julien Grall