diff mbox series

tests/nic_single_core_perf: set burst and mbcache for ConnectX nics

Message ID 20210617155324.9192-1-alialnu@nvidia.com (mailing list archive)
State Accepted
Headers show
Series tests/nic_single_core_perf: set burst and mbcache for ConnectX nics | expand

Commit Message

Ali Alnubani June 17, 2021, 3:53 p.m. UTC
Setting burst and mbcache improves performance and reduces fluctuations.

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

Comments

Tu, Lijuan June 25, 2021, 2:12 a.m. UTC | #1
> -----Original Message-----
> From: Ali Alnubani <alialnu@nvidia.com>
> Sent: 2021年6月17日 23:53
> To: dts@dpdk.org; Tu, Lijuan <lijuan.tu@intel.com>
> Cc: dpdklab@iol.unh.edu
> Subject: [PATCH] tests/nic_single_core_perf: set burst and mbcache for
> ConnectX nics
> 
> Setting burst and mbcache improves performance and reduces fluctuations.
> 
> Signed-off-by: Ali Alnubani <alialnu@nvidia.com>

Applied, thanks
diff mbox series

Patch

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()):