[PATCH] tester: Limit simultaneous QEMU jobs to 1

Kinsey Moore kinsey.moore at oarcorp.com
Tue Aug 24 18:45:16 UTC 2021


There is an emulation problem between RTEMS and QEMU that causes several
sets of tests to fail in circumstances where there is high load on the
host machine. Running multiple instances of QEMU simultaneously
exacerbates this problem which includes all of the spintrcritical tests,
psx12, and some of the other sp* tests. Limiting QEMU to one job at a
time increases test duration, but minimizes the number of tests that
fail this way. This affects at least ARM and AArch64 emulation so those
testing environments have been targeted here.
---
 tester/rtems/testing/bsps/a53_ilp32_qemu.ini              | 1 +
 tester/rtems/testing/bsps/a53_lp64_qemu-cov.ini           | 1 +
 tester/rtems/testing/bsps/a53_lp64_qemu.ini               | 1 +
 tester/rtems/testing/bsps/a72_lp64_qemu.ini               | 1 +
 tester/rtems/testing/bsps/realview_pbx_a9_qemu.ini        | 1 +
 tester/rtems/testing/bsps/xilinx_versal_lp64_qemu.ini     | 1 +
 tester/rtems/testing/bsps/xilinx_zynq_a9_qemu-cov.ini     | 1 +
 tester/rtems/testing/bsps/xilinx_zynq_a9_qemu.ini         | 1 +
 tester/rtems/testing/bsps/xilinx_zynq_a9_qemu_smp.ini     | 2 +-
 tester/rtems/testing/bsps/xilinx_zynq_zc706_qemu.ini      | 1 +
 tester/rtems/testing/bsps/xilinx_zynqmp_ilp32_qemu.ini    | 1 +
 tester/rtems/testing/bsps/xilinx_zynqmp_lp64_qemu-cov.ini | 1 +
 tester/rtems/testing/bsps/xilinx_zynqmp_lp64_qemu.ini     | 1 +
 13 files changed, 13 insertions(+), 1 deletion(-)

diff --git a/tester/rtems/testing/bsps/a53_ilp32_qemu.ini b/tester/rtems/testing/bsps/a53_ilp32_qemu.ini
index 3beba06..581c59c 100644
--- a/tester/rtems/testing/bsps/a53_ilp32_qemu.ini
+++ b/tester/rtems/testing/bsps/a53_ilp32_qemu.ini
@@ -36,3 +36,4 @@ bsp           = a53_ilp32_qemu
 arch          = aarch64
 tester        = %{_rtscripts}/qemu.cfg
 bsp_qemu_opts = %{qemu_opts_base} -serial mon:stdio -machine virt,gic-version=3 -cpu cortex-a53 -m 4096
+jobs          = 1
diff --git a/tester/rtems/testing/bsps/a53_lp64_qemu-cov.ini b/tester/rtems/testing/bsps/a53_lp64_qemu-cov.ini
index 231bd7a..1acf61e 100644
--- a/tester/rtems/testing/bsps/a53_lp64_qemu-cov.ini
+++ b/tester/rtems/testing/bsps/a53_lp64_qemu-cov.ini
@@ -38,3 +38,4 @@ tester            = %{_rtscripts}/qemu.cfg
 bsp_qemu_opts     = %{qemu_opts_base} -serial mon:stdio -machine virt,gic-version=3 -cpu cortex-a53 -m 4096
 bsp_qemu_cov_opts = -exec-trace %{test_executable}.cov
 bsp_covoar_cmd    = -S %{bsp_symbol_path} -E %{cov_explanations}
+jobs              = 1
diff --git a/tester/rtems/testing/bsps/a53_lp64_qemu.ini b/tester/rtems/testing/bsps/a53_lp64_qemu.ini
index 1b89284..ee6cd81 100644
--- a/tester/rtems/testing/bsps/a53_lp64_qemu.ini
+++ b/tester/rtems/testing/bsps/a53_lp64_qemu.ini
@@ -36,3 +36,4 @@ bsp           = a53_lp64_qemu
 arch          = aarch64
 tester        = %{_rtscripts}/qemu.cfg
 bsp_qemu_opts = %{qemu_opts_base} -serial mon:stdio -machine virt,gic-version=3 -cpu cortex-a53 -m 4096
+jobs          = 1
diff --git a/tester/rtems/testing/bsps/a72_lp64_qemu.ini b/tester/rtems/testing/bsps/a72_lp64_qemu.ini
index 9b1eb8e..0a24429 100644
--- a/tester/rtems/testing/bsps/a72_lp64_qemu.ini
+++ b/tester/rtems/testing/bsps/a72_lp64_qemu.ini
@@ -36,3 +36,4 @@ bsp           = a72_lp64_qemu
 arch          = aarch64
 tester        = %{_rtscripts}/qemu.cfg
 bsp_qemu_opts = %{qemu_opts_base} -serial mon:stdio -machine virt,gic-version=3 -cpu cortex-a72 -m 4096
+jobs          = 1
diff --git a/tester/rtems/testing/bsps/realview_pbx_a9_qemu.ini b/tester/rtems/testing/bsps/realview_pbx_a9_qemu.ini
index 68e7f31..5d0ae8d 100644
--- a/tester/rtems/testing/bsps/realview_pbx_a9_qemu.ini
+++ b/tester/rtems/testing/bsps/realview_pbx_a9_qemu.ini
@@ -36,3 +36,4 @@ bsp           = realview_pbx_a9_qemu
 arch          = arm
 tester        = %{_rtscripts}/qemu.cfg
 bsp_qemu_opts = %{qemu_opts_base} %{qemu_opts_no_net} -M realview-pbx-a9 -m 256M
+jobs          = 1
diff --git a/tester/rtems/testing/bsps/xilinx_versal_lp64_qemu.ini b/tester/rtems/testing/bsps/xilinx_versal_lp64_qemu.ini
index d440265..023f9d3 100644
--- a/tester/rtems/testing/bsps/xilinx_versal_lp64_qemu.ini
+++ b/tester/rtems/testing/bsps/xilinx_versal_lp64_qemu.ini
@@ -36,3 +36,4 @@ bsp           = xilinx_versal_lp64_qemu
 arch          = aarch64
 tester        = %{_rtscripts}/qemu.cfg
 bsp_qemu_opts = %{qemu_opts_base} -serial mon:stdio -machine xlnx-versal-virt -m 4096
+jobs          = 1
diff --git a/tester/rtems/testing/bsps/xilinx_zynq_a9_qemu-cov.ini b/tester/rtems/testing/bsps/xilinx_zynq_a9_qemu-cov.ini
index b09cf0c..3dedf50 100644
--- a/tester/rtems/testing/bsps/xilinx_zynq_a9_qemu-cov.ini
+++ b/tester/rtems/testing/bsps/xilinx_zynq_a9_qemu-cov.ini
@@ -38,3 +38,4 @@ tester        = %{_rtscripts}/qemu.cfg
 bsp_qemu_opts = %{qemu_opts_base} %{qemu_opts_no_net} %{qemu_opts_serial} -M xilinx-zynq-a9 -m 256M
 bsp_qemu_cov_opts = -exec-trace %{test_executable}.cov
 bsp_covoar_cmd    = -S %{bsp_symbol_path} -E %{cov_explanations}
+jobs          = 1
diff --git a/tester/rtems/testing/bsps/xilinx_zynq_a9_qemu.ini b/tester/rtems/testing/bsps/xilinx_zynq_a9_qemu.ini
index a7bb952..4114173 100644
--- a/tester/rtems/testing/bsps/xilinx_zynq_a9_qemu.ini
+++ b/tester/rtems/testing/bsps/xilinx_zynq_a9_qemu.ini
@@ -36,3 +36,4 @@ bsp           = xilinx_zynq_a9_qemu
 arch          = arm
 tester        = %{_rtscripts}/qemu.cfg
 bsp_qemu_opts = %{qemu_opts_base} %{qemu_opts_no_net} %{qemu_opts_serial} -M xilinx-zynq-a9 -m 256M
+jobs          = 1
diff --git a/tester/rtems/testing/bsps/xilinx_zynq_a9_qemu_smp.ini b/tester/rtems/testing/bsps/xilinx_zynq_a9_qemu_smp.ini
index 4366ffc..29d3d1a 100644
--- a/tester/rtems/testing/bsps/xilinx_zynq_a9_qemu_smp.ini
+++ b/tester/rtems/testing/bsps/xilinx_zynq_a9_qemu_smp.ini
@@ -34,6 +34,6 @@
 [xilinx_zynq_a9_qemu_smp]
 bsp           = xilinx_zynq_a9_qemu
 arch          = arm
-jobs          = half
+jobs          = 1
 tester        = %{_rtscripts}/qemu.cfg
 bsp_qemu_opts = %{qemu_opts_base} %{qemu_opts_no_net} %{qemu_opts_serial} -M xilinx-zynq-a9 -m 256M -smp cpus=2
diff --git a/tester/rtems/testing/bsps/xilinx_zynq_zc706_qemu.ini b/tester/rtems/testing/bsps/xilinx_zynq_zc706_qemu.ini
index dc635ae..960c112 100644
--- a/tester/rtems/testing/bsps/xilinx_zynq_zc706_qemu.ini
+++ b/tester/rtems/testing/bsps/xilinx_zynq_zc706_qemu.ini
@@ -36,3 +36,4 @@ bsp           = xilinx_zynq_zc706
 arch          = arm
 tester        = %{_rtscripts}/qemu.cfg
 bsp_qemu_opts = %{qemu_opts_base} %{qemu_opts_no_net} %{qemu_opts_serial} -M xilinx-zynq-a9 -m 1024M
+jobs          = 1
diff --git a/tester/rtems/testing/bsps/xilinx_zynqmp_ilp32_qemu.ini b/tester/rtems/testing/bsps/xilinx_zynqmp_ilp32_qemu.ini
index 772709b..f0cd5d2 100644
--- a/tester/rtems/testing/bsps/xilinx_zynqmp_ilp32_qemu.ini
+++ b/tester/rtems/testing/bsps/xilinx_zynqmp_ilp32_qemu.ini
@@ -36,3 +36,4 @@ bsp           = xilinx_zynqmp_ilp32_qemu
 arch          = aarch64
 tester        = %{_rtscripts}/qemu.cfg
 bsp_qemu_opts = %{qemu_opts_base} -serial mon:stdio -machine xlnx-zcu102 -m 4096
+jobs          = 1
diff --git a/tester/rtems/testing/bsps/xilinx_zynqmp_lp64_qemu-cov.ini b/tester/rtems/testing/bsps/xilinx_zynqmp_lp64_qemu-cov.ini
index d3ac25c..9b7d9c8 100644
--- a/tester/rtems/testing/bsps/xilinx_zynqmp_lp64_qemu-cov.ini
+++ b/tester/rtems/testing/bsps/xilinx_zynqmp_lp64_qemu-cov.ini
@@ -38,3 +38,4 @@ tester            = %{_rtscripts}/qemu.cfg
 bsp_qemu_opts     = %{qemu_opts_base} -serial mon:stdio -machine xlnx-zcu102 -m 4096
 bsp_qemu_cov_opts = -exec-trace %{test_executable}.cov
 bsp_covoar_cmd    = -S %{bsp_symbol_path} -E %{cov_explanations}
+jobs              = 1
diff --git a/tester/rtems/testing/bsps/xilinx_zynqmp_lp64_qemu.ini b/tester/rtems/testing/bsps/xilinx_zynqmp_lp64_qemu.ini
index 80db9c5..dcf62b8 100644
--- a/tester/rtems/testing/bsps/xilinx_zynqmp_lp64_qemu.ini
+++ b/tester/rtems/testing/bsps/xilinx_zynqmp_lp64_qemu.ini
@@ -36,3 +36,4 @@ bsp           = xilinx_zynqmp_lp64_qemu
 arch          = aarch64
 tester        = %{_rtscripts}/qemu.cfg
 bsp_qemu_opts = %{qemu_opts_base} -serial mon:stdio -machine xlnx-zcu102 -m 4096
+jobs          = 1
-- 
2.20.1



More information about the devel mailing list