169199: regressions - FAIL
flight 169199 xen-4.12-testing real [real]
http://logs.test-lab.xenproject.org/osstest/logs/169199/
Regressions :-(
Tests which did not succeed and are blocking,
including tests which could not be run:
test-amd64-amd64-xl-qemut-debianhvm-i386-xsm 12 debian-hvm-install fail REGR. vs. 168480
Tests which are failing intermittently (not blocking):
test-arm64-arm64-xl-vhd 12 debian-di-install fail in 169184 pass in 169199
test-amd64-i386-xl-vhd 19 guest-localmigrate/x10 fail pass in 169184
Tests which did not succeed, but are not blocking:
test-amd64-amd64-xl-qcow2 19 guest-localmigrate/x10 fail blocked in 168480
test-amd64-i386-xl-qemuu-win7-amd64 19 guest-stop fail like 168480
test-armhf-armhf-libvirt-raw 15 saverestore-support-check fail like 168480
test-amd64-amd64-qemuu-nested-amd 20 debian-hvm-install/l1/l2 fail like 168480
test-armhf-armhf-libvirt 16 saverestore-support-check fail like 168480
test-amd64-amd64-xl-qemuu-ws16-amd64 19 guest-stop fail like 168480 test-amd64-amd64-xl-qemut-ws16-amd64 19 guest-stop fail like 168480 test-amd64-i386-xl-qemuu-ws16-amd64 19 guest-stop fail like 168480 test-amd64-amd64-xl-qemut-win7-amd64 19 guest-stop fail like 168480 test-armhf-armhf-libvirt-qcow2 15 saverestore-support-check fail like 168480 test-amd64-i386-xl-qemut-win7-amd64 19 guest-stop fail like 168480 test-amd64-amd64-xl-qemuu-win7-amd64 19 guest-stop fail like 168480 test-amd64-i386-xl-qemut-ws16-amd64 19 guest-stop fail like 168480 test-amd64-i386-libvirt-xsm 15 migrate-support-check fail never pass test-amd64-i386-xl-pvshim 14 guest-start fail never pass test-amd64-amd64-libvirt 15 migrate-support-check fail never pass test-arm64-arm64-xl 15 migrate-support-check fail never pass test-arm64-arm64-xl 16 saverestore-support-check fail never pass test-arm64-arm64-xl-seattle 15 migrate-support-check fail never pass test-arm64-arm64-xl-seattle 16 saverestore-support-check fail never pass test-amd64-amd64-libvirt-xsm 15 migrate-support-check fail never pass test-amd64-i386-libvirt 15 migrate-support-check fail never pass test-amd64-amd64-libvirt-vhd 14 migrate-support-check fail never pass test-armhf-armhf-xl-arndale 15 migrate-support-check fail never pass test-armhf-armhf-xl-arndale 16 saverestore-support-check fail never pass test-arm64-arm64-xl-credit2 15 migrate-support-check fail never pass test-arm64-arm64-xl-credit2 16 saverestore-support-check fail never pass test-arm64-arm64-xl-xsm 15 migrate-support-check fail never pass test-arm64-arm64-xl-xsm 16 saverestore-support-check fail never pass test-arm64-arm64-libvirt-xsm 15 migrate-support-check fail never pass test-arm64-arm64-libvirt-xsm 16 saverestore-support-check fail never pass test-arm64-arm64-xl-credit1 15 migrate-support-check fail never pass test-arm64-arm64-xl-credit1 16 saverestore-support-check fail never pass test-arm64-arm64-xl-thunderx 15 migrate-support-check fail never pass test-arm64-arm64-xl-thunderx 16 saverestore-support-check fail never pass test-amd64-amd64-libvirt-qemuu-debianhvm-amd64-xsm 13 migrate-support-check fail never pass test-amd64-i386-libvirt-qemuu-debianhvm-amd64-xsm 13 migrate-support-check fail never pass test-armhf-armhf-xl-credit1 15 migrate-support-check fail never pass test-armhf-armhf-xl-credit1 16 saverestore-support-check fail never pass test-armhf-armhf-xl-rtds 15 migrate-support-check fail never pass test-armhf-armhf-xl-credit2 15 migrate-support-check fail never pass test-armhf-armhf-xl-rtds 16 saverestore-support-check fail never pass test-armhf-armhf-xl-credit2 16 saverestore-support-check fail never pass test-armhf-armhf-xl-multivcpu 15 migrate-support-check fail never pass test-armhf-armhf-xl-multivcpu 16 saverestore-support-check fail never pass test-arm64-arm64-xl-vhd 14 migrate-support-check fail never pass test-arm64-arm64-xl-vhd 15 saverestore-support-check fail never pass test-amd64-i386-libvirt-raw 14 migrate-support-check fail never pass test-arm64-arm64-libvirt-raw 14 migrate-support-check fail never pass test-arm64-arm64-libvirt-raw 15 saverestore-support-check fail never pass test-armhf-armhf-xl-cubietruck 15 migrate-support-check fail never pass test-armhf-armhf-xl-cubietruck 16 saverestore-support-check fail never pass test-armhf-armhf-xl 15 migrate-support-check fail never pass test-armhf-armhf-xl 16 saverestore-support-check fail never pass test-armhf-armhf-libvirt-raw 14 migrate-support-check fail never pass test-armhf-armhf-libvirt 15 migrate-support-check fail never pass test-armhf-armhf-xl-vhd 14 migrate-support-check fail never pass test-armhf-armhf-xl-vhd 15 saverestore-support-check fail never pass
test-armhf-armhf-libvirt-qcow2 14 migrate-support-check fail never pass
version targeted for testing:
xen c633ec9451e76015c409bd5119ffcb0f2e61fe8b
baseline version:
xen 944afa38d9339a67f0164d07fb7ac8a54e9a4c60
Last test of basis 168480 2022-03-08 18:07:22 Z 29 days Testing same since 169184 2022-04-05 14:06:03 Z 1 days 2 attempts
------------------------------------------------------------
People who touched revisions under test:
Jan Beulich <[email protected]>
Roger Pau Monné <[email protected]>
jobs:
build-amd64-xsm pass build-arm64-xsm pass build-i386-xsm pass build-amd64-xtf pass build-amd64 pass build-arm64 pass build-armhf pass build-i386 pass build-amd64-libvirt pass build-arm64-libvirt pass build-armhf-libvirt pass build-i386-libvirt pass build-amd64-prev pass build-i386-prev pass build-amd64-pvops pass build-arm64-pvops pass build-armhf-pvops pass build-i386-pvops pass test-xtf-amd64-amd64-1 pass test-xtf-amd64-amd64-2 pass test-xtf-amd64-amd64-3 pass test-xtf-amd64-amd64-4 pass test-xtf-amd64-amd64-5 pass test-amd64-amd64-xl pass test-arm64-arm64-xl pass test-armhf-armhf-xl pass test-amd64-i386-xl pass test-amd64-amd64-libvirt-qemuu-debianhvm-amd64-xsm pass test-amd64-i386-libvirt-qemuu-debianhvm-amd64-xsm pass test-amd64-amd64-xl-qemut-stubdom-debianhvm-amd64-xsm pass test-amd64-i386-xl-qemut-stubdom-debianhvm-amd64-xsm pass test-amd64-amd64-xl-qemut-debianhvm-i386-xsm fail test-amd64-i386-xl-qemut-debianhvm-i386-xsm pass test-amd64-amd64-xl-qemuu-debianhvm-i386-xsm pass test-amd64-i386-xl-qemuu-debianhvm-i386-xsm pass test-amd64-amd64-libvirt-xsm pass test-arm64-arm64-libvirt-xsm pass test-amd64-i386-libvirt-xsm pass test-amd64-amd64-xl-xsm pass test-arm64-arm64-xl-xsm pass test-amd64-i386-xl-xsm pass test-amd64-amd64-qemuu-nested-amd fail test-amd64-amd64-xl-pvhv2-amd pass 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-qemuu-freebsd11-amd64 pass test-amd64-amd64-qemuu-freebsd12-amd64 pass test-amd64-amd64-xl-qemuu-ovmf-amd64 pass test-amd64-i386-xl-qemuu-ovmf-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-amd64-amd64-xl-qemut-ws16-amd64 fail test-amd64-i386-xl-qemut-ws16-amd64 fail test-amd64-amd64-xl-qemuu-ws16-amd64 fail test-amd64-i386-xl-qemuu-ws16-amd64 fail test-armhf-armhf-xl-arndale pass test-amd64-amd64-xl-credit1 pass test-arm64-arm64-xl-credit1 pass test-armhf-armhf-xl-credit1 pass test-amd64-amd64-xl-credit2 pass test-arm64-arm64-xl-credit2 pass test-armhf-armhf-xl-credit2 pass test-armhf-armhf-xl-cubietruck pass test-amd64-amd64-xl-qemuu-dmrestrict-amd64-dmrestrict pass test-amd64-i386-xl-qemuu-dmrestrict-amd64-dmrestrict pass test-amd64-i386-freebsd10-i386 pass test-amd64-amd64-qemuu-nested-intel pass test-amd64-amd64-xl-pvhv2-intel pass 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-livepatch pass test-amd64-i386-livepatch pass test-amd64-amd64-migrupgrade pass test-amd64-i386-migrupgrade pass test-amd64-amd64-xl-multivcpu pass test-armhf-armhf-xl-multivcpu pass test-amd64-amd64-pair pass test-amd64-i386-pair pass test-amd64-amd64-libvirt-pair pass test-amd64-i386-libvirt-pair pass test-amd64-amd64-xl-pvshim pass test-amd64-i386-xl-pvshim fail test-amd64-amd64-pygrub pass test-armhf-armhf-libvirt-qcow2 pass test-amd64-amd64-xl-qcow2 fail test-arm64-arm64-libvirt-raw pass test-armhf-armhf-libvirt-raw pass test-amd64-i386-libvirt-raw pass test-amd64-amd64-xl-rtds pass test-armhf-armhf-xl-rtds pass test-arm64-arm64-xl-seattle pass test-amd64-amd64-xl-qemuu-debianhvm-amd64-shadow pass test-amd64-i386-xl-qemuu-debianhvm-amd64-shadow pass test-amd64-amd64-xl-shadow pass test-amd64-i386-xl-shadow pass test-arm64-arm64-xl-thunderx pass test-amd64-amd64-libvirt-vhd pass test-arm64-arm64-xl-vhd pass test-armhf-armhf-xl-vhd pass test-amd64-i386-xl-vhd fail
------------------------------------------------------------
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 375 lines long.)
Quoted 8 lines · osstest service owner
flight 169199 xen-4.12-testing real [real]
http://logs.test-lab.xenproject.org/osstest/logs/169199/Regressions :-(
Tests which did not succeed and are blocking,
including tests which could not be run:
test-amd64-amd64-xl-qemut-debianhvm-i386-xsm 12 debian-hvm-install fail REGR. vs. 168480
While the subsequent flight passed, I thought I'd still look into the logs here since the earlier flight had failed too. The state of the machine when the debug keys were issued is somewhat odd (and similar to the earlier failure's): 11 of the 56 CPUs try to acquire (apparently) Dom0's event lock, from evtchn_move_pirqs(). All other CPUs are idle. The test failed because the sole guest didn't reboot in time. Whether the failure is actually connected to this apparent lock contention is unclear, though.
One can further see that really all about 70 ECS_PIRQ ports are bound to vCPU 0 (which makes me wonder about lack of balancing inside Dom0 itself, but that's unrelated). This means that all other vCPU-s have nothing at all to do in evtchn_move_pirqs(). Since this moving of pIRQ-s is an optimization (the value of which has been put under question in the past, iirc), I wonder whether we shouldn't add a check to the function for the list being empty prior to actually acquiring the lock. I guess I'll make a patch and post it as RFC.
And of course in a mostly idle system the other aspect here (again)
is: Why are vCPU-s moved across pCPU-s in the first place? I've observed (and reported) such seemingly over-aggressive vCPU migration before, most recently in the context of putting together 'x86: make "dom0_nodes=" work with credit2'. Is there anything that can be done about this in credit2?
A final, osstest-related question is: Does it make sense to run Dom0 on 56 vCPU-s, one each per pCPU? The bigger a system, the less useful it looks to me to actually also have a Dom0 as big, when the purpose of the system is to run guests, not meaningful other workloads in Dom0. While this is Xen's default (i.e. in the absence of command line options restricting Dom0), I don't think it's representing typical use of Xen in the field.
Jan
Quoted 19 lines · Jan Beulich
Quoted 8 lines · osstest service owner
flight 169199 xen-4.12-testing real [real]
http://logs.test-lab.xenproject.org/osstest/logs/169199/Regressions :-(
Tests which did not succeed and are blocking,
including tests which could not be run:
test-amd64-amd64-xl-qemut-debianhvm-i386-xsm 12 debian-hvm-install fail REGR. vs. 168480While the subsequent flight passed, I thought I'd still look into the logs here since the earlier flight had failed too. The state of the machine when the debug keys were issued is somewhat odd (and similar to the earlier failure's): 11 of the 56 CPUs try to acquire (apparently) Dom0's event lock, from
evtchn_move_pirqs(). All other CPUs are idle. The test failed because the sole guest didn't reboot in time. Whether the failure is actually connected to this apparent lock contention is unclear, though.
Quoted 9 lines
One can further see that really all about 70
ECS_PIRQports are bound to vCPU 0 (which makes me wonder about lack of balancing inside Dom0 itself, but that's unrelated). This means that all other vCPU-s have nothing at all to do inevtchn_move_pirqs(). Since this moving of pIRQ-s is an optimization (the value of which has been put under question in the past, iirc), I wonder whether we shouldn't add a check to the function for the list being empty prior to actually acquiring the lock. I guess I'll make a patch and post it as RFC.
Seems good to me.
I think a better model would be to migrate the PIRQs when fired, or even better when EOI is performed? So that Xen doesn't pointlessly migrate PIRQs for vCPUs that aren't running.
Quoted 7 lines
And of course in a mostly idle system the other aspect here (again)
is: Why are vCPU-s moved across pCPU-s in the first place? I've observed (and reported) such seemingly over-aggressive vCPU migration before, most recently in the context of putting together 'x86: make "dom0_nodes=" work with credit2'. Is there anything that can be done about this in credit2?
Quoted 7 lines
A final, osstest-related question is: Does it make sense to run Dom0 on 56 vCPU-s, one each per pCPU? The bigger a system, the less useful it looks to me to actually also have a Dom0 as big, when the purpose of the system is to run guests, not meaningful other workloads in Dom0. While this is Xen's default (i.e. in the absence of command line options restricting Dom0), I don't think it's representing typical use of Xen in the field.
I could add a suitable dom0_max_vcpus parameter to osstest. XenServer uses 16 for example.
Albeit not having such parameter has likely led you into figuring out this issue, so it might not be so bad. I agree however it's likely better to test scenarios closer to real world usage.
Thanks, Roger.
Quoted 30 lines · Roger Pau Monné
Quoted 19 lines · Jan Beulich
Quoted 8 lines · osstest service owner
flight 169199 xen-4.12-testing real [real]
http://logs.test-lab.xenproject.org/osstest/logs/169199/Regressions :-(
Tests which did not succeed and are blocking,
including tests which could not be run:
test-amd64-amd64-xl-qemut-debianhvm-i386-xsm 12 debian-hvm-install fail REGR. vs. 168480While the subsequent flight passed, I thought I'd still look into the logs here since the earlier flight had failed too. The state of the machine when the debug keys were issued is somewhat odd (and similar to the earlier failure's): 11 of the 56 CPUs try to acquire (apparently) Dom0's event lock, from
evtchn_move_pirqs(). All other CPUs are idle. The test failed because the sole guest didn't reboot in time. Whether the failure is actually connected to this apparent lock contention is unclear, though.Quoted 9 lines
One can further see that really all about 70
ECS_PIRQports are bound to vCPU 0 (which makes me wonder about lack of balancing inside Dom0 itself, but that's unrelated). This means that all other vCPU-s have nothing at all to do inevtchn_move_pirqs(). Since this moving of pIRQ-s is an optimization (the value of which has been put under question in the past, iirc), I wonder whether we shouldn't add a check to the function for the list being empty prior to actually acquiring the lock. I guess I'll make a patch and post it as RFC.
Quoted 5 lines
Seems good to me.
I think a better model would be to migrate the PIRQs when fired, or even better when EOI is performed? So that Xen doesn't pointlessly migrate PIRQs for vCPUs that aren't running.
Well, what the function does is mark the IRQ for migration only (IRQ_MOVE_PENDING on x86). IRQs will only ever be migrated in the process of finishing the handling of an actual instance of the IRQ, as otherwise it's not safe / race-free.
Quoted 15 lines
Quoted 7 lines
And of course in a mostly idle system the other aspect here (again)
is: Why are vCPU-s moved across pCPU-s in the first place? I've observed (and reported) such seemingly over-aggressive vCPU migration before, most recently in the context of putting together 'x86: make "dom0_nodes=" work with credit2'. Is there anything that can be done about this in credit2?Quoted 7 lines
A final, osstest-related question is: Does it make sense to run Dom0 on 56 vCPU-s, one each per pCPU? The bigger a system, the less useful it looks to me to actually also have a Dom0 as big, when the purpose of the system is to run guests, not meaningful other workloads in Dom0. While this is Xen's default (i.e. in the absence of command line options restricting Dom0), I don't think it's representing typical use of Xen in the field.
Quoted 2 lines
I could add a suitable
dom0_max_vcpusparameter to osstest. XenServer uses 16 for example.
I'm afraid a fixed number won't do, the more that iirc there are systems with just a few cores in the pool (and you don't want to over-commit by default). While for extreme cases it may not suffice, I would like to suggest to consider using ceil(sqrt(nr_cpus)). But of course this requires that osstest has a priori knowledge of how many (usable) CPUs each system (pair) has, to be able to form such a system-dependent command line option.
Quoted 3 lines
Albeit not having such parameter has likely led you into figuring out this issue, so it might not be so bad. I agree however it's likely better to test scenarios closer to real world usage.
True. One might conclude that we need both then. But of course that would make each flight yet more resource hungry.
Jan
Quoted 33 lines · Jan Beulich
Quoted 32 lines · Roger Pau Monné
Quoted 19 lines · Jan Beulich
Quoted 8 lines · osstest service owner
flight 169199 xen-4.12-testing real [real]
http://logs.test-lab.xenproject.org/osstest/logs/169199/Regressions :-(
Tests which did not succeed and are blocking,
including tests which could not be run:
test-amd64-amd64-xl-qemut-debianhvm-i386-xsm 12 debian-hvm-install fail REGR. vs. 168480While the subsequent flight passed, I thought I'd still look into the logs here since the earlier flight had failed too. The state of the machine when the debug keys were issued is somewhat odd (and similar to the earlier failure's): 11 of the 56 CPUs try to acquire (apparently) Dom0's event lock, from
evtchn_move_pirqs(). All other CPUs are idle. The test failed because the sole guest didn't reboot in time. Whether the failure is actually connected to this apparent lock contention is unclear, though.Quoted 9 lines
One can further see that really all about 70
ECS_PIRQports are bound to vCPU 0 (which makes me wonder about lack of balancing inside Dom0 itself, but that's unrelated). This means that all other vCPU-s have nothing at all to do inevtchn_move_pirqs(). Since this moving of pIRQ-s is an optimization (the value of which has been put under question in the past, iirc), I wonder whether we shouldn't add a check to the function for the list being empty prior to actually acquiring the lock. I guess I'll make a patch and post it as RFC.Seems good to me.
Quoted 8 lines
Quoted 3 lines
I think a better model would be to migrate the PIRQs when fired, or even better when EOI is performed? So that Xen doesn't pointlessly migrate PIRQs for vCPUs that aren't running.
Well, what the function does is mark the IRQ for migration only (
IRQ_MOVE_PENDINGon x86). IRQs will only ever be migrated in the process of finishing the handling of an actual instance of the IRQ, as otherwise it's not safe / race-free.
Oh, OK, so then it doesn't seem to be that different from what I had in mind.
Quoted 15 lines
Quoted 15 lines
Quoted 14 lines
And of course in a mostly idle system the other aspect here (again)
is: Why are vCPU-s moved across pCPU-s in the first place? I've observed (and reported) such seemingly over-aggressive vCPU migration before, most recently in the context of putting together 'x86: make "dom0_nodes=" work with credit2'. Is there anything that can be done about this in credit2?A final, osstest-related question is: Does it make sense to run Dom0 on 56 vCPU-s, one each per pCPU? The bigger a system, the less useful it looks to me to actually also have a Dom0 as big, when the purpose of the system is to run guests, not meaningful other workloads in Dom0. While this is Xen's default (i.e. in the absence of command line options restricting Dom0), I don't think it's representing typical use of Xen in the field.
Quoted 6 lines
Quoted 2 lines
I could add a suitable
dom0_max_vcpusparameter to osstest. XenServer uses 16 for example.I'm afraid a fixed number won't do, the more that iirc there are systems with just a few cores in the pool (and you don't want to over-commit by default).
But this won't over commit, it would just assign dom0 16 vCPUs at most, if the system has less than 16 vCPUs that's what would be assigned to dom0.
Quoted 5 lines
While for extreme cases it may not suffice,
I would like to suggest to consider using ceil(sqrt(nr_cpus)). But of course this requires that osstest has a priori knowledge of how many (usable) CPUs each system (pair) has, to be able to form such a system-dependent command line option.
Well, we could get this number when installing Xen, because at that point the system is started and running plain Linux (so can see the real topology). No need for osstest to have a priori knowledge.
Quoted 6 lines
Quoted 3 lines
Albeit not having such parameter has likely led you into figuring out this issue, so it might not be so bad. I agree however it's likely better to test scenarios closer to real world usage.
True. One might conclude that we need both then. But of course that would make each flight yet more resource hungry.
Yes, let's focus on real-world uses first.
Thanks, Roger.
Hi,
Quoted 10 lines · Roger Pau Monné
Quoted 6 lines
Quoted 2 lines
I could add a suitable
dom0_max_vcpusparameter to osstest. XenServer uses 16 for example.I'm afraid a fixed number won't do, the more that iirc there are systems with just a few cores in the pool (and you don't want to over-commit by default).
But this won't over commit, it would just assign dom0 16 vCPUs at most, if the system has less than 16 vCPUs that's what would be assigned to dom0.
AFAICT, this is not the case on Arm. If you ask 16 vCPUs, then you will get that number even if there are 8 pCPUs.
In fact, the documentation of dom0_max_vcpus suggests that the numbers of vCPUs can be more than the number of pCPUs.
Cheers,
Signature · 1 line
Julien Grall
Quoted 14 lines · Julien Grall
Hi,
Quoted 10 lines · Roger Pau Monné
Quoted 6 lines
Quoted 2 lines
I could add a suitable
dom0_max_vcpusparameter to osstest. XenServer uses 16 for example.I'm afraid a fixed number won't do, the more that iirc there are systems with just a few cores in the pool (and you don't want to over-commit by default).
But this won't over commit, it would just assign dom0 16 vCPUs at most, if the system has less than 16 vCPUs that's what would be assigned to dom0.
Quoted 5 lines
AFAICT, this is not the case on Arm. If you ask 16 vCPUs, then you will get that number even if there are 8 pCPUs.
In fact, the documentation of
dom0_max_vcpussuggests that the numbers of vCPUs can be more than the number of pCPUs.
It was my understanding that you could only achieve that by using the min-max nomenclature, so in order to force 16 vCPUs always you would have to use:
dom0_max_vcpus=16-16
Otherwise the usage of '_max_' in the option name is pointless, and it should instead be dom0_vcpus.
Anyway, I could use:
dom0_max_vcpus=1-16
Which is unambiguous and should get us 1 vCPU at least, or 16vCPUs at most.
But given Jans suggestion we might want to go for something more complex?
Thanks, Roger.
Hi Roger,
Quoted 30 lines · Roger Pau Monné
Quoted 14 lines · Julien Grall
Hi,
Quoted 10 lines · Roger Pau Monné
Quoted 6 lines
Quoted 2 lines
I could add a suitable
dom0_max_vcpusparameter to osstest. XenServer uses 16 for example.I'm afraid a fixed number won't do, the more that iirc there are systems with just a few cores in the pool (and you don't want to over-commit by default).
But this won't over commit, it would just assign dom0 16 vCPUs at most, if the system has less than 16 vCPUs that's what would be assigned to dom0.
Quoted 5 lines
AFAICT, this is not the case on Arm. If you ask 16 vCPUs, then you will get that number even if there are 8 pCPUs.
In fact, the documentation of
dom0_max_vcpussuggests that the numbers of vCPUs can be more than the number of pCPUs.It was my understanding that you could only achieve that by using the min-max nomenclature, so in order to force 16 vCPUs always you would have to use:
dom0_max_vcpus=16-16
Otherwise the usage of '_max_' in the option name is pointless, and it should instead be
dom0_vcpus.
Quoted 6 lines
Anyway, I could use:
dom0_max_vcpus=1-16
Which is unambiguous and should get us 1 vCPU at least, or 16vCPUs at most.
Unfortunately, Arm doesn't support the min-max nomenclature.
Quoted 3 lines
But given Jans suggestion we might want to go for something more complex?
I think we already have some knowledge about each HW (i.e. grub vs uboot) in Osstest. So I think it would be fine to extend the knowledge and add the number of CPUs.
Cheers,
Signature · 1 line
Julien Grall
Quoted 33 lines · Julien Grall
Hi Roger,
Quoted 30 lines · Roger Pau Monné
Quoted 14 lines · Julien Grall
Hi,
Quoted 10 lines · Roger Pau Monné
Quoted 6 lines
Quoted 2 lines
I could add a suitable
dom0_max_vcpusparameter to osstest. XenServer uses 16 for example.I'm afraid a fixed number won't do, the more that iirc there are systems with just a few cores in the pool (and you don't want to over-commit by default).
But this won't over commit, it would just assign dom0 16 vCPUs at most, if the system has less than 16 vCPUs that's what would be assigned to dom0.
Quoted 5 lines
AFAICT, this is not the case on Arm. If you ask 16 vCPUs, then you will get that number even if there are 8 pCPUs.
In fact, the documentation of
dom0_max_vcpussuggests that the numbers of vCPUs can be more than the number of pCPUs.It was my understanding that you could only achieve that by using the min-max nomenclature, so in order to force 16 vCPUs always you would have to use:
dom0_max_vcpus=16-16
Otherwise the usage of '_max_' in the option name is pointless, and it should instead be
dom0_vcpus.
Quoted 8 lines
Quoted 6 lines
Anyway, I could use:
dom0_max_vcpus=1-16
Which is unambiguous and should get us 1 vCPU at least, or 16vCPUs at most.
Unfortunately, Arm doesn't support the min-max nomenclature.
Hm, can we update the command line document then?
There's no mention that the min-max nomenclature is only available to x86. I assume it's not possible to share the logic here so that both Arm and x86 parse the option in the same way?
Quoted 7 lines
Quoted 3 lines
But given Jans suggestion we might want to go for something more complex?
I think we already have some knowledge about each HW (i.e. grub vs uboot) in Osstest. So I think it would be fine to extend the knowledge and add the number of CPUs.
We don't need to store this information anywhere I think. Since we first install plain Debian and then install Xen we can always fetch the number of physical CPUs when running plain Linux and use that to calculate the amount to give to dom0?
Jan suggested using ceil(sqrt(nr_cpus)).
Thanks, Roger.
Quoted 34 lines · Roger Pau Monne
Quoted 33 lines · Julien Grall
Hi Roger,
Quoted 30 lines · Roger Pau Monné
Quoted 8 lines · Julien Grall
Hi,
Quoted 5 lines · Roger Pau Monné
Quoted 5 lines
Quoted 2 lines
I could add a suitable
dom0_max_vcpusparameter to osstest. XenServer uses 16 for example.I'm afraid a fixed number won't do, the more that iirc there are systems with just a few cores in the pool (and you don't want to over-commit by default).
Quoted 8 lines
Quoted 3 lines
But this won't over commit, it would just assign dom0 16 vCPUs at most, if the system has less than 16 vCPUs that's what would be assigned to dom0.
AFAICT, this is not the case on Arm. If you ask 16 vCPUs, then you will get that number even if there are 8 pCPUs.
In fact, the documentation of
dom0_max_vcpussuggests that the numbers of vCPUs can be more than the number of pCPUs.It was my understanding that you could only achieve that by using the min-max nomenclature, so in order to force 16 vCPUs always you would have to use:
dom0_max_vcpus=16-16
Otherwise the usage of '_max_' in the option name is pointless, and it should instead be
dom0_vcpus.Anyway, I could use:
dom0_max_vcpus=1-16
Quoted 8 lines
Quoted 3 lines
Quoted 2 lines
Which is unambiguous and should get us 1 vCPU at least, or 16vCPUs at most.
Unfortunately, Arm doesn't support the min-max nomenclature.
Hm, can we update the command line document then?
There's no mention that the min-max nomenclature is only available to x86. I assume it's not possible to share the logic here so that both Arm and x86 parse the option in the same way?
TBH, this especially wants moving to common code. It's atrocious UX to have per-arch variations on the syntax for "how many vcpus".
Quoted 11 lines
Quoted 5 lines
Quoted 2 lines
But given Jans suggestion we might want to go for something more complex?
I think we already have some knowledge about each HW (i.e. grub vs uboot) in Osstest. So I think it would be fine to extend the knowledge and add the number of CPUs.
We don't need to store this information anywhere I think. Since we first install plain Debian and then install Xen we can always fetch the number of physical CPUs when running plain Linux and use that to calculate the amount to give to dom0?
Jan suggested using ceil(sqrt(nr_cpus)).
I'm going to play devils advocate here.
Our CI system had demonstrated that the default behaviour in Xen is broken. And we're saying "lets bodge around it in the CI system to not use the default behaviour".
The only user-friendly way of resolving this is to fix the default and leave the CI alone.
~Andrew
Quoted 38 lines · Andrew Cooper
Quoted 37 lines · Roger Pau Monne
Quoted 36 lines · Julien Grall
Hi Roger,
Quoted 26 lines · Roger Pau Monné
Quoted 8 lines · Julien Grall
Hi,
Quoted 5 lines · Roger Pau Monné
Quoted 5 lines
Quoted 2 lines
I could add a suitable
dom0_max_vcpusparameter to osstest. XenServer uses 16 for example.I'm afraid a fixed number won't do, the more that iirc there are systems with just a few cores in the pool (and you don't want to over-commit by default).
Quoted 8 lines
Quoted 3 lines
But this won't over commit, it would just assign dom0 16 vCPUs at most, if the system has less than 16 vCPUs that's what would be assigned to dom0.
AFAICT, this is not the case on Arm. If you ask 16 vCPUs, then you will get that number even if there are 8 pCPUs.
In fact, the documentation of
dom0_max_vcpussuggests that the numbers of vCPUs can be more than the number of pCPUs.It was my understanding that you could only achieve that by using the min-max nomenclature, so in order to force 16 vCPUs always you would have to use:
dom0_max_vcpus=16-16
Otherwise the usage of '_max_' in the option name is pointless, and it should instead be
dom0_vcpus.Quoted 6 lines
Anyway, I could use:
dom0_max_vcpus=1-16
Which is unambiguous and should get us 1 vCPU at least, or 16vCPUs at most.
Unfortunately, Arm doesn't support the min-max nomenclature.
Quoted 8 lines
Quoted 5 lines
Hm, can we update the command line document then?
There's no mention that the min-max nomenclature is only available to x86. I assume it's not possible to share the logic here so that both Arm and x86 parse the option in the same way?
TBH, this especially wants moving to common code. It's atrocious UX to have per-arch variations on the syntax for "how many vcpus".
In my view, it would be OK to share the code, but I would also want to retain the current behavior when e.g. dom0_max_vcpus=2 is specified. Otherwise we break existing ARM tooling. (It is actually used by Yocto and others.)
Hi,
Quoted 41 lines · Roger Pau Monné
Quoted 40 lines · Julien Grall
Hi Roger,
Quoted 36 lines · Roger Pau Monné
Quoted 14 lines · Julien Grall
Hi,
Quoted 10 lines · Roger Pau Monné
Quoted 6 lines
Quoted 2 lines
I could add a suitable
dom0_max_vcpusparameter to osstest. XenServer uses 16 for example.I'm afraid a fixed number won't do, the more that iirc there are systems with just a few cores in the pool (and you don't want to over-commit by default).
But this won't over commit, it would just assign dom0 16 vCPUs at most, if the system has less than 16 vCPUs that's what would be assigned to dom0.
Quoted 5 lines
AFAICT, this is not the case on Arm. If you ask 16 vCPUs, then you will get that number even if there are 8 pCPUs.
In fact, the documentation of
dom0_max_vcpussuggests that the numbers of vCPUs can be more than the number of pCPUs.It was my understanding that you could only achieve that by using the min-max nomenclature, so in order to force 16 vCPUs always you would have to use:
dom0_max_vcpus=16-16
Otherwise the usage of '_max_' in the option name is pointless, and it should instead be
dom0_vcpus.Anyway, I could use:
dom0_max_vcpus=1-16
Which is unambiguous and should get us 1 vCPU at least, or 16vCPUs at most.
Quoted 7 lines
Quoted 1 line
Unfortunately, Arm doesn't support the min-max nomenclature.
Hm, can we update the command line document then?
There's no mention that the min-max nomenclature is only available to x86. I assume it's not possible to share the logic here so that both Arm and x86 parse the option in the same way?
Looking at the x86 implementation, I think we can re-use everything but the pv_shim and NUMA bits.
Quoted 4 lines
We don't need to store this information anywhere I think. Since we first install plain Debian and then install Xen we can always fetch the number of physical CPUs when running plain Linux and use that to calculate the amount to give to dom0?
You will need to check how that works with U-boot. I can't remember whether the script is loaded via tftp or stored on the local disk.
Cheers,
Signature · 1 line
Julien Grall
Quoted 19 lines · Roger Pau Monné
Quoted 12 lines · Julien Grall
Quoted 10 lines · Roger Pau Monné
Quoted 6 lines
Quoted 2 lines
I could add a suitable
dom0_max_vcpusparameter to osstest. XenServer uses 16 for example.I'm afraid a fixed number won't do, the more that iirc there are systems with just a few cores in the pool (and you don't want to over-commit by default).
But this won't over commit, it would just assign dom0 16 vCPUs at most, if the system has less than 16 vCPUs that's what would be assigned to dom0.
Quoted 5 lines
AFAICT, this is not the case on Arm. If you ask 16 vCPUs, then you will get that number even if there are 8 pCPUs.
In fact, the documentation of
dom0_max_vcpussuggests that the numbers of vCPUs can be more than the number of pCPUs.
Quoted 8 lines
It was my understanding that you could only achieve that by using the min-max nomenclature, so in order to force 16 vCPUs always you would have to use:
dom0_max_vcpus=16-16
Otherwise the usage of '_max_' in the option name is pointless, and it should instead be
dom0_vcpus.
I disagree: Unlike for DomU there's no way to keep a "reserve" of vCPU-s for Dom0, except by offlining some once Dom0 runs. Hence this "max" in the name is quite applicable.
Jan
Quoted 14 lines · Julien Grall
Hi,
Quoted 10 lines · Roger Pau Monné
Quoted 6 lines
Quoted 2 lines
I could add a suitable
dom0_max_vcpusparameter to osstest. XenServer uses 16 for example.I'm afraid a fixed number won't do, the more that iirc there are systems with just a few cores in the pool (and you don't want to over-commit by default).
But this won't over commit, it would just assign dom0 16 vCPUs at most, if the system has less than 16 vCPUs that's what would be assigned to dom0.
Quoted 5 lines
AFAICT, this is not the case on Arm. If you ask 16 vCPUs, then you will get that number even if there are 8 pCPUs.
In fact, the documentation of
dom0_max_vcpussuggests that the numbers of vCPUs can be more than the number of pCPUs.
XenServer uses dom0_max_vcpus=1-16 so we dont oversubscribe (even if CPUs get turned off in firmware), but top out at 16.
It is possible to use this option to create more vcpus, but whether dom0 decides to do anything with them is up to dom0. Linux won't go any further than it can see CPUs listed in the ACPI tables (and yes, this is a host/guest laying violation for PV dom0 where dom0 sees the system ACPI tables.)
~Andrew
Quoted 11 lines · Andrew Cooper
Quoted 10 lines · Julien Grall
Hi,
Quoted 7 lines · Roger Pau Monné
Quoted 6 lines
Quoted 2 lines
I could add a suitable
dom0_max_vcpusparameter to osstest. XenServer uses 16 for example.I'm afraid a fixed number won't do, the more that iirc there are systems with just a few cores in the pool (and you don't want to over-commit by default).
Quoted 6 lines
Quoted 6 lines
Quoted 3 lines
But this won't over commit, it would just assign dom0 16 vCPUs at most, if the system has less than 16 vCPUs that's what would be assigned to dom0.
AFAICT, this is not the case on Arm. If you ask 16 vCPUs, then you will get that number even if there are 8 pCPUs.
Same on x86, afaict.
Quoted 11 lines
Quoted 2 lines
In fact, the documentation of
dom0_max_vcpussuggests that the numbers of vCPUs can be more than the number of pCPUs.XenServer uses dom0_max_vcpus=1-16 so we dont oversubscribe (even if CPUs get turned off in firmware), but top out at 16.
It is possible to use this option to create more vcpus, but whether dom0 decides to do anything with them is up to dom0. Linux won't go any further than it can see CPUs listed in the ACPI tables (and yes, this is a host/guest laying violation for PV dom0 where dom0 sees the system ACPI tables.)
That has changed not so long ago, Linux will now use all vCPU-s supplied by Xen. Since I was able to over-size Dom0 with XenoLinux, I wanted to have the ability also with the upstream version.
Jan