automation: Do not use null scheduler for boot cpupools test
Null scheduler is not enabled on non-debug Xen builds so the current test can lead to a failure on such jobs. We still want to test that we can assign the cpupool to a domU with a different scheduler than default one (credit2). Switch to credit as it is enabled by default.
---
This patch acts as a prerequisite before merging the following patch:
https://lore.kernel.org/xen-devel/[email protected]/
(to which Henry already gave RAB), that helped to find the issue described in the comment.
--- automation/scripts/qemu-smoke-arm64.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
automation/scripts/qemu-smoke-arm64.sh +3 -3
@@ -29,10 +29,10 @@ fi fi if [[ "${test_variant}" == "boot-cpupools" ]]; then - # Check if domU0 (id=1) is assigned to Pool-1 with null scheduler + # Check if domU0 (id=1) is assigned to Pool-1 with credit scheduler passed="${test_variant} test passed" dom0_check=" -if xl list -c 1 | grep -q Pool-1 && xl cpupool-list Pool-1 | grep -q Pool-1; then +if xl list -c 1 | grep -q Pool-1 && xl cpupool-list Pool-1 | grep -q credit; then echo ${passed} fi "
@@ -140,7 +140,7 @@ fi if [[ "${test_variant}" == "boot-cpupools" ]]; then echo ' -CPUPOOL[0]="cpu@1 null" +CPUPOOL[0]="cpu@1 credit" DOMU_CPUPOOL[0]=0 NUM_CPUPOOLS=1' >> binaries/config fi
Signature · 1 line
2.25.1
Quoted 7 lines · Michal Orzel
Null scheduler is not enabled on non-debug Xen builds so the current test can lead to a failure on such jobs. We still want to test that we can assign the cpupool to a domU with a different scheduler than default one (credit2). Switch to credit as it is enabled by default.
Fixes 36e3f4158778 ("automation: Add a new job for testing boot time cpupools on arm64")Signed-off-by Michal Orzel <[email protected]>
/sigh - I'm sure I nacked that stupidity to begin with. apparently not...
It is totally bogus for CONFIG_DEBUG to influence logical chunks of functionality like this. The CI script is good in its current form.
RTDS and ARINC should be default n.
NULL is more tricky. PV_SHIM is explicitly security supported, and has been for years, so the "UNSUPPORTED" is bogus, whatever the default is.
As NULL is explicitly tested in CI, it's clearly supported, and probably ought to be on default.
Please instead fix Kconfig to not be broken. That will be a far better fix overall for people.
As a more general note, tests which are using non-default pieces of logic ought to activate them explicitly.
~Andrew
Quoted 23 lines · Andrew Cooper
Quoted 7 lines · Michal Orzel
Null scheduler is not enabled on non-debug Xen builds so the current test can lead to a failure on such jobs. We still want to test that we can assign the cpupool to a domU with a different scheduler than default one (credit2). Switch to credit as it is enabled by default.
Fixes 36e3f4158778 ("automation: Add a new job for testing boot time cpupools on arm64")Signed-off-by Michal Orzel <[email protected]>/sigh - I'm sure I nacked that stupidity to begin with. apparently not...
It is totally bogus for
CONFIG_DEBUGto influence logical chunks of functionality like this. The CI script is good in its current form.RTDS and ARINC should be default n.
NULL is more tricky.
PV_SHIMis explicitly security supported, and has been for years, so the "UNSUPPORTED" is bogus, whatever the default is.As NULL is explicitly tested in CI, it's clearly supported, and probably ought to be on default.
Quoted 5 lines
Please instead fix
Kconfigto not be broken. That will be a far better fix overall for people.As a more general note, tests which are using non-default pieces of logic ought to activate them explicitly.
I agree with you, but first let me clarify the word "supported".
In Xen Project "supported" implies extra efforts to follow the security process and of course the security team should be on board with it. If we say "supported, non security supported" we don't need to follow the security process but still we sign up for backporting fixes to the stable tree. It is less extra effort but still some extra effort is involved.
So, this specific issue aside, I think that as we expand the testing capabilities of gitlab-ci, we'll have tests for things that are not necessarily neither "supported" nor "supported, non security supported".
For the NULL scheduler, it is clearly important to many users so it would be valuable to move it to "supported, non security supported" and enabling it by default in the build. I don't recall if we still have any known outstanding issues with it. I think we need a separate email thread for that discussion and I would understand if the decision is not to change NULL support status for the 4.17 release (maybe for the 4.18 release?).
In any case, we don't need CONFIG_DEBUG to enable CONFIG_UNSUPPORTED. It is just that UNSUPPORTED and NULL don't get enabled by default in the non-DEBUG build. So to fix gitlab-ci, we can simply enable CONFIG_UNSUPPORTED explicitly for the builds where we need it (alpine-3.12-gcc-arm64-boot-cpupools).
Hi Stefano,
Quoted 7 lines · Stefano Stabellini
For the NULL scheduler, it is clearly important to many users so it would be valuable to move it to "supported, non security supported" and enabling it by default in the build. I don't recall if we still have any known outstanding issues with it. I think we need a separate email thread for that discussion and I would understand if the decision is not to change NULL support status for the 4.17 release (maybe for the 4.18 release?).
At the moment, I am tracking two major issues for NULL scheduler:
- [email protected]
- alpine.DEB.2.22.394.2201051615060.2060010@ubuntu-linux-20-04-desktop
(reported by you)
Have they been fixed? If not, then I don't think can be moved to "supported, not security supported" because it would fall over basic setup.
Cheers,
Signature · 1 line
Julien Grall
Replying to all,
Quoted 57 lines · Stefano Stabellini
Quoted 23 lines · Andrew Cooper
Quoted 7 lines · Michal Orzel
Null scheduler is not enabled on non-debug Xen builds so the current test can lead to a failure on such jobs. We still want to test that we can assign the cpupool to a domU with a different scheduler than default one (credit2). Switch to credit as it is enabled by default.
Fixes 36e3f4158778 ("automation: Add a new job for testing boot time cpupools on arm64")Signed-off-by Michal Orzel <[email protected]>/sigh - I'm sure I nacked that stupidity to begin with. apparently not...
It is totally bogus for
CONFIG_DEBUGto influence logical chunks of functionality like this. The CI script is good in its current form.RTDS and ARINC should be default n.
NULL is more tricky.
PV_SHIMis explicitly security supported, and has been for years, so the "UNSUPPORTED" is bogus, whatever the default is.As NULL is explicitly tested in CI, it's clearly supported, and probably ought to be on default.
Quoted 5 lines
Please instead fix
Kconfigto not be broken. That will be a far better fix overall for people.As a more general note, tests which are using non-default pieces of logic ought to activate them explicitly.
I agree with you, but first let me clarify the word "supported".
In Xen Project "supported" implies extra efforts to follow the security process and of course the security team should be on board with it. If we say "supported, non security supported" we don't need to follow the security process but still we sign up for backporting fixes to the stable tree. It is less extra effort but still some extra effort is involved.
So, this specific issue aside, I think that as we expand the testing capabilities of gitlab-ci, we'll have tests for things that are not necessarily neither "supported" nor "supported, non security supported".
For the NULL scheduler, it is clearly important to many users so it would be valuable to move it to "supported, non security supported" and enabling it by default in the build. I don't recall if we still have any known outstanding issues with it. I think we need a separate email thread for that discussion and I would understand if the decision is not to change NULL support status for the 4.17 release (maybe for the 4.18 release?).
Quoted 5 lines
In any case, we don't need
CONFIG_DEBUGto enableCONFIG_UNSUPPORTED. It is just that UNSUPPORTED and NULL don't get enabled by default in the non-DEBUG build. So to fix gitlab-ci, we can simply enableCONFIG_UNSUPPORTEDexplicitly for the builds where we need it (alpine-3.12-gcc-arm64-boot-cpupools).
Given that there are still diverging opinions \wrt making use of DEBUG to influence enabling/disabling some functionalities in the code, I would opt for modifying the CI job to explicitly specify the required config options, just like I did for static-mem test. The necessary options to enable NULL are:CONFIG_EXPERT=yCONFIG_UNSUPPORTED=yCONFIG_SCHED_NULL=y
This will fix the issue and allow us to continue with 4.17 release. Given the outstanding issues reported by Julien, it would be challenging to try to mark the NULL scheduler as supported, not security supported for this release.
Besides that, I think that Andrew still has a valid point. We seem to use DEBUG
only in Kconfig.debug (obvious choice) and sched/Kconfig. So this is not something
common to rely on DEBUG to enable logical functionalities (why did we make this exception for schedulers?). Having said that, I think the discussion on whether to switch to default n
instead of default DEBUG or not is still valid and requires more people to give feedback.
~Michal
Quoted 74 lines · Michal Orzel
Replying to all,
Quoted 57 lines · Stefano Stabellini
Quoted 23 lines · Andrew Cooper
Quoted 7 lines · Michal Orzel
Null scheduler is not enabled on non-debug Xen builds so the current test can lead to a failure on such jobs. We still want to test that we can assign the cpupool to a domU with a different scheduler than default one (credit2). Switch to credit as it is enabled by default.
Fixes 36e3f4158778 ("automation: Add a new job for testing boot time cpupools on arm64")Signed-off-by Michal Orzel <[email protected]>/sigh - I'm sure I nacked that stupidity to begin with. apparently not...
It is totally bogus for
CONFIG_DEBUGto influence logical chunks of functionality like this. The CI script is good in its current form.RTDS and ARINC should be default n.
NULL is more tricky.
PV_SHIMis explicitly security supported, and has been for years, so the "UNSUPPORTED" is bogus, whatever the default is.As NULL is explicitly tested in CI, it's clearly supported, and probably ought to be on default.
Quoted 5 lines
Please instead fix
Kconfigto not be broken. That will be a far better fix overall for people.As a more general note, tests which are using non-default pieces of logic ought to activate them explicitly.
I agree with you, but first let me clarify the word "supported".
In Xen Project "supported" implies extra efforts to follow the security process and of course the security team should be on board with it. If we say "supported, non security supported" we don't need to follow the security process but still we sign up for backporting fixes to the stable tree. It is less extra effort but still some extra effort is involved.
So, this specific issue aside, I think that as we expand the testing capabilities of gitlab-ci, we'll have tests for things that are not necessarily neither "supported" nor "supported, non security supported".
For the NULL scheduler, it is clearly important to many users so it would be valuable to move it to "supported, non security supported" and enabling it by default in the build. I don't recall if we still have any known outstanding issues with it. I think we need a separate email thread for that discussion and I would understand if the decision is not to change NULL support status for the 4.17 release (maybe for the 4.18 release?).
Quoted 5 lines
In any case, we don't need
CONFIG_DEBUGto enableCONFIG_UNSUPPORTED. It is just that UNSUPPORTED and NULL don't get enabled by default in the non-DEBUG build. So to fix gitlab-ci, we can simply enableCONFIG_UNSUPPORTEDexplicitly for the builds where we need it (alpine-3.12-gcc-arm64-boot-cpupools).Given that there are still diverging opinions \wrt making use of DEBUG to influence enabling/disabling some functionalities in the code, I would opt for modifying the CI job to explicitly specify the required config options, just like I did for static-mem test. The necessary options to enable NULL are:
CONFIG_EXPERT=yCONFIG_UNSUPPORTED=yCONFIG_SCHED_NULL=y
Quoted 3 lines
This will fix the issue and allow us to continue with 4.17 release. Given the outstanding issues reported by Julien, it would be challenging to try to mark the NULL scheduler as supported, not security supported for this release.
Yes, sounds good
Quoted 5 lines
Besides that, I think that Andrew still has a valid point. We seem to use DEBUG
only inKconfig.debug(obvious choice) and sched/Kconfig. So this is not something
common to rely on DEBUG to enable logical functionalities (why did we make this exception for schedulers?). Having said that, I think the discussion on whether to switch to default n
instead of default DEBUG or not is still valid and requires more people to give feedback.
Yeah
Quoted 6 lines · Andrew Cooper
Quoted 5 lines · Michal Orzel
Null scheduler is not enabled on non-debug Xen builds so the current test can lead to a failure on such jobs. We still want to test that we can assign the cpupool to a domU with a different scheduler than default one (credit2). Switch to credit as it is enabled by default.
Quoted 7 lines
Quoted 2 lines
Fixes 36e3f4158778 ("automation: Add a new job for testing boot time cpupools on arm64")Signed-off-by Michal Orzel <[email protected]>/sigh - I'm sure I nacked that stupidity to begin with. apparently not...
It is totally bogus for
CONFIG_DEBUGto influence logical chunks of functionality like this. The CI script is good in its current form.
Assuming you mean defaults of settings, I'm afraid I see nothing bogus there at all. What's wrong with enabling more functionality by default in debug builds, for people to easily use/test them? Yet keeping unsupported stuff off by default in release builds? That said, ...
Quoted 7 lines
RTDS and ARINC should be default n.
NULL is more tricky.
PV_SHIMis explicitly security supported, and has been for years, so the "UNSUPPORTED" is bogus, whatever the default is.As NULL is explicitly tested in CI, it's clearly supported, and probably ought to be on default.
... the state of the NULL scheduler wrt its use by the shim has been puzzling me before.
Quoted 5 lines
Please instead fix
Kconfigto not be broken. That will be a far better fix overall for people.As a more general note, tests which are using non-default pieces of logic ought to activate them explicitly.
Imo _this_ is the immediate course of action to take. What the appropriate settings are in Kconfig may be less straightforward to determine (see also Stefano's and Julien's replies).
Jan
Quoted 7 lines · Jan Beulich
Quoted 6 lines · Andrew Cooper
Quoted 5 lines · Michal Orzel
Null scheduler is not enabled on non-debug Xen builds so the current test can lead to a failure on such jobs. We still want to test that we can assign the cpupool to a domU with a different scheduler than default one (credit2). Switch to credit as it is enabled by default.
Quoted 8 lines
Quoted 6 lines
Quoted 2 lines
Fixes 36e3f4158778 ("automation: Add a new job for testing boot time cpupools on arm64")Signed-off-by Michal Orzel <[email protected]>/sigh - I'm sure I nacked that stupidity to begin with. apparently not...
It is totally bogus for
CONFIG_DEBUGto influence logical chunks of functionality like this. The CI script is good in its current form.Assuming you mean defaults of settings, I'm afraid I see nothing bogus there at all.
It's a complete violation of any reasonable interpretation of DEBUG.
Apart from creating the bug at the centre of this thread, one does not turn on DEBUG to get at this functionality in the first place, so the options should not be interlinked.
Quoted 9 lines
Quoted 7 lines
RTDS and ARINC should be default n.
NULL is more tricky.
PV_SHIMis explicitly security supported, and has been for years, so the "UNSUPPORTED" is bogus, whatever the default is.As NULL is explicitly tested in CI, it's clearly supported, and probably ought to be on default.
... the state of the NULL scheduler wrt its use by the shim has been puzzling me before.
NULL is exactly what the shim wants, and it gets thorough testing.
The only remaining problem is the paperwork. NULL is already "security supported in pv shim", hence the unsupported tag is bogus.
~Andrew