From: Ondrej Lichtner <olichtne(a)redhat.com>
The first '-c <value>' argument of testpmd specifies the coremask for
the whole testpmd application, this includes all pmd operations (2 dpdk
nics in our case) and the management thread. For optimal performance we
should therefore provide 3 cores. This will now be supplied by the
guest_testpmd_cores alias (default 0x7 - cores 0,1,2).
The second (after '-- ') '--coremask' argument specifies the coremask
for the pmd threads (2 in our case) where we'll specify whic 2 of the 3
cores will be used for the dpdk nics. This will be supplied by the
guest_dpdk_cores alias (default 0x6 - cores 1,2).
Signed-off-by: Ondrej Lichtner <olichtne(a)redhat.com>
---
recipes/regression_tests/phase3/ovs-dpdk-pvp.py | 5 ++++-
recipes/regression_tests/phase3/ovs-dpdk-pvp.xml | 1 +
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 10ac031..1586dc2 100644
--- a/recipes/regression_tests/phase3/ovs-dpdk-pvp.py
+++ b/recipes/regression_tests/phase3/ovs-dpdk-pvp.py
@@ -110,6 +110,7 @@ official_result = bool_it(ctl.get_alias("official_result"))
pr_user_comment = ctl.get_alias("perfrepo_comment")
host1_dpdk_cores = ctl.get_alias("host1_dpdk_cores")
host2_dpdk_cores = ctl.get_alias("host2_dpdk_cores")
+guest_testpmd_cores = ctl.get_alias("guest_testpmd_cores")
guest_dpdk_cores = ctl.get_alias("guest_dpdk_cores")
nr_hugepages = int(ctl.get_alias("nr_hugepages"))
socket_mem = int(ctl.get_alias("socket_mem"))
@@ -340,9 +341,11 @@ testpmd_shell = guest.get_transport().open_session()
testpmd_cmd = ("testpmd -c {coremask} "
"-w {pci1} -w {pci2} "
"-n 4 --socket-mem 1024,0 -- "
+ "--coremask {pmd_coremask} "
"-i --eth-peer=0,{hw1} --eth-peer=1,{hw2} "
"--forward-mode=mac").format(
- coremask=guest_dpdk_cores,
+ coremask=guest_testpmd_cores,
+ pmd_coremask=guest_dpdk_cores,
pci1=g_nic1_pci, pci2=g_nic2_pci,
hw1=h1_nic1.get_hwaddr(), hw2=h1_nic2.get_hwaddr())
diff --git a/recipes/regression_tests/phase3/ovs-dpdk-pvp.xml
b/recipes/regression_tests/phase3/ovs-dpdk-pvp.xml
index d534b94..3c2326a 100644
--- a/recipes/regression_tests/phase3/ovs-dpdk-pvp.xml
+++ b/recipes/regression_tests/phase3/ovs-dpdk-pvp.xml
@@ -5,6 +5,7 @@
<alias name="official_result" value="no" />
<alias name="host1_dpdk_cores" value="2,3,4" />
<alias name="host2_dpdk_cores" value="0x1E" />
+ <alias name="guest_testpmd_cores" value="0x7" />
<alias name="guest_dpdk_cores" value="0x6" />
<alias name="nr_hugepages" value="2048" />
<alias name="socket_mem" value="2048" />
--
2.19.0