@@ -12,6 +12,8 @@
# ......
# }
#
+# - rxtx_queue_size defines the l3fwd new parameters "--rx-queue-size" and "--tx-queue-size".
+#
# - test_duration is how many seconds each combination performance will
# be recorded, default is 60s
#
@@ -56,6 +58,7 @@
update_expected = True
port_list=None
+rxtx_queue_size = None
test_duration = 12
accepted_tolerance = 1
test_parameters = {
@@ -401,4 +404,4 @@ expected_rfc2544 = {
'512': { 'rate' :'100.00', 'traffic_opt': {'min_rate': '10.0', 'max_rate': '100.0', 'pdr': '0.01', 'accuracy': '5', } },
'1024': { 'rate' :'100.00', 'traffic_opt': {'min_rate': '10.0', 'max_rate': '100.0', 'pdr': '0.01', 'accuracy': '5', } },
'1280': { 'rate' :'100.00', 'traffic_opt': {'min_rate': '10.0', 'max_rate': '100.0', 'pdr': '0.01', 'accuracy': '5', } },
- '1518': { 'rate' :'100.00', 'traffic_opt': {'min_rate': '10.0', 'max_rate': '100.0', 'pdr': '0.01', 'accuracy': '5', } } },},},}
\ No newline at end of file
+ '1518': { 'rate' :'100.00', 'traffic_opt': {'min_rate': '10.0', 'max_rate': '100.0', 'pdr': '0.01', 'accuracy': '5', } } },},},}
@@ -9,6 +9,8 @@
# ......
# }
#
+# - rxtx_queue_size defines the l3fwd new parameters "--rx-queue-size" and "--tx-queue-size".
+#
# - test_duration is how many seconds each combination performance will
# be recorded, default is 60s
#
@@ -52,6 +54,7 @@
[suite]
update_expected = True
+rxtx_queue_size = None
test_duration = 12
accepted_tolerance = 1
test_parameters = {
@@ -144,4 +147,4 @@ expected_throughput = {
'512': '0.00',
'1024': '0.00',
'1280': '0.00',
- '1518': '0.00', },},},}
\ No newline at end of file
+ '1518': '0.00', },},},}
@@ -9,6 +9,8 @@
# ......
# }
#
+# - rxtx_queue_size defines the l3fwd new parameters "--rx-queue-size" and "--tx-queue-size".
+#
# - test_duration is how many seconds each combination performance will
# be recorded, default is 60s
#
@@ -52,6 +54,7 @@
[suite]
update_expected = True
+rxtx_queue_size = None
test_duration = 60
accepted_tolerance = 1
test_parameters = {
@@ -102,4 +105,4 @@ expected_throughput = {
'512': '0.00',
'1024': '0.00',
'1280': '0.00',
- '1518': '0.00', },},}, }
\ No newline at end of file
+ '1518': '0.00', },},}, }
@@ -9,6 +9,8 @@
# ......
# }
#
+# - rxtx_queue_size defines the l3fwd new parameters "--rx-queue-size" and "--tx-queue-size".
+#
# - test_duration is how many seconds each combination performance will
# be recorded, default is 60s
#
@@ -52,6 +54,7 @@
[suite]
update_expected = True
+rxtx_queue_size = None
test_duration = 60
accepted_tolerance = 1
test_parameters = {
@@ -102,4 +105,4 @@ expected_rfc2544 = {
'512': { 'rate' :'100.00', 'traffic_opt': {'min_rate': '10.0', 'max_rate': '100.0', 'pdr': '0.01', 'accuracy': '5', } },
'1024': { 'rate' :'100.00', 'traffic_opt': {'min_rate': '10.0', 'max_rate': '100.0', 'pdr': '0.01', 'accuracy': '5', } },
'1280': { 'rate' :'100.00', 'traffic_opt': {'min_rate': '10.0', 'max_rate': '100.0', 'pdr': '0.01', 'accuracy': '5', } },
- '1518': { 'rate' :'100.00', 'traffic_opt': {'min_rate': '10.0', 'max_rate': '100.0', 'pdr': '0.01', 'accuracy': '5', } } },},},}
\ No newline at end of file
+ '1518': { 'rate' :'100.00', 'traffic_opt': {'min_rate': '10.0', 'max_rate': '100.0', 'pdr': '0.01', 'accuracy': '5', } } },},},}
@@ -9,6 +9,8 @@
# ......
# }
#
+# - rxtx_queue_size defines the l3fwd new parameters "--rx-queue-size" and "--tx-queue-size".
+#
# - test_duration is how many seconds each combination performance will
# be recorded, default is 60s
#
@@ -52,6 +54,7 @@
[suite]
update_expected = True
+rxtx_queue_size = None
test_duration = 60
accepted_tolerance = 1
test_parameters = {
@@ -102,4 +105,4 @@ expected_throughput = {
'512': '0.00',
'1024': '0.00',
'1280': '0.00',
- '1518': '0.00', },},}, }
\ No newline at end of file
+ '1518': '0.00', },},}, }
@@ -6,6 +6,7 @@
[suite]
test_duration = 60
accepted_tolerance = '1%%'
+rxtx_queue_size = None
test_parameters = {
'1C/1T-1Q': ['64', '128', '256', '512', '1024', '1280', '1518',],
@@ -9,6 +9,8 @@
# ......
# }
#
+# - rxtx_queue_size defines the l3fwd new parameters "--rx-queue-size" and "--tx-queue-size".
+#
# - test_duration is how many seconds each combination performance will
# be recorded, default is 60s
#
@@ -52,6 +54,7 @@
[suite]
test_duration = 60
accepted_tolerance = '1%%'
+rxtx_queue_size = None
test_parameters = {
'1C/1T-1Q': ['64', '128', '256', '512', '1024', '1280', '1518',],
@@ -398,4 +401,4 @@ expected_rfc2544 = {
'512': { 'rate' :'100.00', 'traffic_opt': {'min_rate': '10.0', 'max_rate': '100.0', 'pdr': '0.01', 'accuracy': '5', } },
'1024': { 'rate' :'100.00', 'traffic_opt': {'min_rate': '10.0', 'max_rate': '100.0', 'pdr': '0.01', 'accuracy': '5', } },
'1280': { 'rate' :'100.00', 'traffic_opt': {'min_rate': '10.0', 'max_rate': '100.0', 'pdr': '0.01', 'accuracy': '5', } },
- '1518': { 'rate' :'100.00', 'traffic_opt': {'min_rate': '10.0', 'max_rate': '100.0', 'pdr': '0.01', 'accuracy': '5', } } },},},}
\ No newline at end of file
+ '1518': { 'rate' :'100.00', 'traffic_opt': {'min_rate': '10.0', 'max_rate': '100.0', 'pdr': '0.01', 'accuracy': '5', } } },},},}
@@ -6,6 +6,7 @@
[suite]
test_duration = 60
accepted_tolerance = '1%%'
+rxtx_queue_size = None
test_parameters = {
'1C/1T-1Q': ['64', '128', '256', '512', '1024', '1280', '1518',],
@@ -6,6 +6,7 @@
[suite]
test_duration = 60
accepted_tolerance = '1%%'
+rxtx_queue_size = None
test_parameters = {
'1C/1T-1Q': ['64', '128', '256', '512', '1024', '1280', '1518',],
@@ -6,6 +6,7 @@
[suite]
test_duration = 60
accepted_tolerance = '1%%'
+rxtx_queue_size = None
test_parameters = {
'1C/1T-1Q': ['64', '128', '256', '512', '1024', '1280', '1518',],
@@ -146,6 +146,7 @@ class PerfTestBase(object):
self.__bin_type = bin_type or BIN_TYPE.L3FWD
self.__compile_rx_desc = None
self.__compile_avx = None
+ self.__rxtx_queue_size = None
self.__mode = mode or SUITE_TYPE.PF
self.__suite = None
self.__valports = valports
@@ -663,21 +664,9 @@ class PerfTestBase(object):
self.dut.set_build_options(compile_flags)
self.dut.build_install_dpdk(self.target)
- def __preset_l3fwd_compilation(self):
- # init l3fwd binary file
- if self.nic not in ["columbiaville_100g", "columbiaville_25g", "columbiaville_25gx2"]:
- self.logger.info(
- "Configure RX/TX descriptor to 2048, re-build ./examples/l3fwd")
- self.d_con((
- "sed -i -e 's/"
- "define RTE_TEST_RX_DESC_DEFAULT.*$/"
- "define RTE_TEST_RX_DESC_DEFAULT 2048/' "
- "./examples/l3fwd/l3fwd.h"))
- self.d_con((
- "sed -i -e 's/"
- "define RTE_TEST_TX_DESC_DEFAULT.*$/"
- "define RTE_TEST_TX_DESC_DEFAULT 2048/' "
- "./examples/l3fwd/l3fwd.h"))
+ def __preset_compilation(self):
+ # Update compile config file and rebuild to get best perf on different nics
+ self.__preset_dpdk_compilation()
if self.__mode is SUITE_TYPE.VF:
# init testpmd
if self.__pf_driver is not NIC_DRV.PCI_STUB:
@@ -685,12 +674,6 @@ class PerfTestBase(object):
self.__l3fwd_em = self.__l3fwd_init(MATCH_MODE.EM)
self.__l3fwd_lpm = self.__l3fwd_init(MATCH_MODE.LPM)
- def __preset_compilation(self):
- # Update compile config file and rebuild to get best perf on different nics
- self.__preset_dpdk_compilation()
- if self.__bin_type is BIN_TYPE.L3FWD:
- self.__preset_l3fwd_compilation()
-
def __init_host_testpmd(self):
'''
apply under vf testing scenario
@@ -847,6 +830,8 @@ class PerfTestBase(object):
"niantic",
"columbiaville_100g", "columbiaville_25g", "columbiaville_25gx2",
]
+ if self.__rxtx_queue_size:
+ command_line += " --rx-queue-size {rxtx} --tx-queue-size {rxtx}". format(rxtx= self.__rxtx_queue_size)
if self.nic in suppored_nics or self.__mode is SUITE_TYPE.VF:
command_line += " --parse-ptype"
if frame_size > 1518:
@@ -1376,6 +1361,7 @@ class PerfTestBase(object):
if self.__bin_type is BIN_TYPE.L3FWD:
self.__bin_ps_wait_up = test_content.get('l3fwd_wait_up', 0)
self.__bin_ps_restart = test_content.get('l3fwd_restart', True)
+ self.__rxtx_queue_size = test_content.get('rxtx_queue_size', None)
else:
self.__bin_ps_wait_up = test_content.get('bin_ps_wait_up', 0)
self.__bin_ps_restart = test_content.get('bin_ps_restart', True)