From: Ondrej Lichtner <olichtne(a)redhat.com>
This cpu will end up being used for the management of the vm, this can
improve the stability of the results. Setting the default value of the
emulator pin alias to 9 (as in core 9) as this is the next free core in
our usual setup.
Also setting the default value for guest cores to 5,6,7,8 for the same
reason.
Signed-off-by: Ondrej Lichtner <olichtne(a)redhat.com>
---
recipes/regression_tests/phase3/ovs-dpdk-pvp.py | 3 +++
recipes/regression_tests/phase3/ovs-dpdk-pvp.xml | 3 ++-
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/recipes/regression_tests/phase3/ovs-dpdk-pvp.py
b/recipes/regression_tests/phase3/ovs-dpdk-pvp.py
index fd58d0f..10ac031 100644
--- a/recipes/regression_tests/phase3/ovs-dpdk-pvp.py
+++ b/recipes/regression_tests/phase3/ovs-dpdk-pvp.py
@@ -119,6 +119,7 @@ guest_hostname = ctl.get_alias("guest_hostname")
guest_username = ctl.get_alias("guest_username")
guest_password = ctl.get_alias("guest_password")
guest_cpus = ctl.get_alias("guest_cpus")
+guest_emulatorpin = ctl.get_alias("guest_emulatorpin")
trex_dir = ctl.get_alias("trex_dir")
pkt_size = int(ctl.get_alias("pkt_size"))
test_duration = int(ctl.get_alias("test_duration"))
@@ -277,6 +278,8 @@ cputune = ET.SubElement(guest_xml, "cputune")
for i, cpu_id in enumerate(guest_cpus.split(',')):
ET.SubElement(cputune, "vcpupin", vcpu=str(i), cpuset=str(cpu_id))
+ET.SubElement(cputune, "emulatorpin", cpuset=guest_emulatorpin)
+
updated_guest_xml = NamedTemporaryFile("w+b", delete=False)
updated_guest_xml.write(ET.tostring(guest_xml))
updated_guest_xml.close()
diff --git a/recipes/regression_tests/phase3/ovs-dpdk-pvp.xml
b/recipes/regression_tests/phase3/ovs-dpdk-pvp.xml
index e9edf74..d534b94 100644
--- a/recipes/regression_tests/phase3/ovs-dpdk-pvp.xml
+++ b/recipes/regression_tests/phase3/ovs-dpdk-pvp.xml
@@ -14,7 +14,8 @@
<alias name="guest_hostname" value="" />
<alias name="guest_username" value="" />
<alias name="guest_password" value="" />
- <alias name="guest_cpus" value="" />
+ <alias name="guest_cpus" value="5,6,7,8" />
+ <alias name="guest_emulatorpin" value="9"/>
<alias name="pkt_size" value="64" />
<alias name="test_duration" value="60" />
<alias name="test_runs" value="5" />
--
2.19.0