[dts] [PATCH] tests/nic_single_core_perf: set burst and mbcache for ConnectX nics

Ali Alnubani alialnu at OSS.NVIDIA.COM
Thu Jun 17 17:53:24 CEST 2021


Setting burst and mbcache improves performance and reduces fluctuations.

Signed-off-by: Ali Alnubani <alialnu at nvidia.com>
---
 tests/TestSuite_nic_single_core_perf.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/tests/TestSuite_nic_single_core_perf.py b/tests/TestSuite_nic_single_core_perf.py
index 5083831d..dee189e5 100644
--- a/tests/TestSuite_nic_single_core_perf.py
+++ b/tests/TestSuite_nic_single_core_perf.py
@@ -248,6 +248,9 @@ class TestNicSingleCorePerf(TestCase):
                 param += " --rxq=1 --txq=1"
                 # workaround for that testpmd can't forward packets in io forward mode
                 param += " --port-topology=loop"
+            # improves performance and reduces fluctuations
+            elif self.nic in ['ConnectX5_MT4121', 'ConnectX4_LX_MT4117']:
+                param += " --burst=64 --mbcache=512"
 
             self.throughput[fwd_config] = dict()
             for frame_size in list(self.test_parameters[fwd_config].keys()):
-- 
2.17.1



More information about the dts mailing list