* [dts] [PATCH v1] tests: update test commonds for vectorized cases in TestSuite_pvp_multi_paths_virtio_single_core_performance.py
@ 2020-04-29 22:10 Yinan
2020-05-06 3:25 ` Tu, Lijuan
0 siblings, 1 reply; 2+ messages in thread
From: Yinan @ 2020-04-29 22:10 UTC (permalink / raw)
To: dts; +Cc: Wang Yinan
From: Wang Yinan <yinan.wang@intel.com>
Signed-off-by: Wang Yinan <yinan.wang@intel.com>
---
...i_paths_virtio_single_core_performance.cfg | 2 +-
...ti_paths_virtio_single_core_performance.py | 31 ++++++++++++++-----
2 files changed, 24 insertions(+), 9 deletions(-)
diff --git a/conf/pvp_multi_paths_virtio_single_core_performance.cfg b/conf/pvp_multi_paths_virtio_single_core_performance.cfg
index f7703a3..ae25ed3 100644
--- a/conf/pvp_multi_paths_virtio_single_core_performance.cfg
+++ b/conf/pvp_multi_paths_virtio_single_core_performance.cfg
@@ -3,4 +3,4 @@ update_expected = True
test_parameters = {64: [1024], 1518: [1024]}
test_duration = 60
accepted_tolerance = 2
-expected_throughput = {'test_perf_virtio_single_core_virtio11_mergeable': {64: {1024: 0.0}, 1518: {1024: 0.0}}, 'test_perf_virtio_single_core_virtio11_normal': {64: {1024: 0.0}, 1518: {1024: 0.0}}, 'test_perf_virtio_single_core_virtio11_inorder_mergeable': {64: {1024: 0.0}, 1518: {1024: 0.0}}, 'test_perf_virtio_single_core_virtio11_inorder_normal': {64: {1024: 0.0}, 1518: {1024: 0.0}}, 'test_perf_virtio_single_core_inorder_mergeable': {64: {1024: 0.0}, 1518: {1024: 0.0}}, 'test_perf_virtio_single_core_inorder_no_mergeable': {64: {1024: 0.0}, 1518: {1024: 0.0}}, 'test_perf_virtio_single_core_mergeable': {64: {1024: 0.0}, 1518: {1024: 0.0}}, 'test_perf_virtio_single_core_normal': {64: {1024: 0.0}, 1518: {1024: 0.0}}, 'test_perf_virtio_single_core_vector_rx': {64: {1024: 0.0}, 1518: {1024: 0.0}}}
+expected_throughput = {'test_perf_virtio_single_core_virtio11_vectorized': {64: {1024: 0.00}, 1518: {1024: 0.00}},'test_perf_virtio_single_core_virtio11_inorder_normal': {64: {1024: 0.00}, 1518: {1024: 0.00}},'test_perf_virtio_single_core_virtio11_mergeable': {64: {1024: 0.0}, 1518: {1024: 0.0}}, 'test_perf_virtio_single_core_virtio11_normal': {64: {1024: 0.0}, 1518: {1024: 0.0}}, 'test_perf_virtio_single_core_virtio11_inorder_mergeable': {64: {1024: 0.0}, 1518: {1024: 0.0}}, 'test_perf_virtio_single_core_virtio11_inorder_normal': {64: {1024: 0.0}, 1518: {1024: 0.0}}, 'test_perf_virtio_single_core_inorder_mergeable': {64: {1024: 0.0}, 1518: {1024: 0.0}}, 'test_perf_virtio_single_core_inorder_normal': {64: {1024: 0.0}, 1518: {1024: 0.0}}, 'test_perf_virtio_single_core_mergeable': {64: {1024: 0.0}, 1518: {1024: 0.0}}, 'test_perf_virtio_single_core_normal': {64: {1024: 0.0}, 1518: {1024: 0.0}}, 'test_perf_virtio_single_core_vector_rx': {64: {1024: 0.0}, 1518: {1024: 0.0}}}
diff --git a/tests/TestSuite_pvp_multi_paths_virtio_single_core_performance.py b/tests/TestSuite_pvp_multi_paths_virtio_single_core_performance.py
index ccf14fc..b98048b 100644
--- a/tests/TestSuite_pvp_multi_paths_virtio_single_core_performance.py
+++ b/tests/TestSuite_pvp_multi_paths_virtio_single_core_performance.py
@@ -115,11 +115,9 @@ class TestPVPMultiPathVirtioPerformance(TestCase):
self.dut_ports[0])
destination_mac = self.dut.get_mac_address(
self.dut_ports[0])
-
pkt = Packet(pkt_type='UDP', pkt_len=frame_size)
pkt.config_layer('ether', {'dst': '%s' % destination_mac})
pkt.save_pcapfile(self.tester, "%s/multi_path.pcap" % (self.out_path))
-
tgen_input.append((tx_port, rx_port, "%s/multi_path.pcap" % (self.out_path)))
self.tester.pktgen.clear_streams()
@@ -342,8 +340,25 @@ class TestPVPMultiPathVirtioPerformance(TestCase):
"""
self.test_target = self.running_case
self.expected_throughput = self.get_suite_cfg()['expected_throughput'][self.test_target]
- virtio_pmd_arg = {"version": "packed_vq=1,in_order=1,mrg_rxbuf=0",
- "path": "--tx-offloads=0x0 --enable-hw-vlan-strip"}
+ virtio_pmd_arg = {"version": "packed_vq=1,in_order=1,mrg_rxbuf=0,vectorized=0",
+ "path": "--enable-hw-vlan-strip"}
+ self.start_vhost_testpmd()
+ self.start_virtio_testpmd(virtio_pmd_arg)
+ self.send_and_verify("virtio_1.1_inorder_normal")
+ self.close_all_testpmd()
+ self.logger.info('result of all framesize result')
+ self.result_table_print()
+ self.handle_expected()
+ self.handle_results()
+
+ def test_perf_virtio_single_core_virtio11_vectorized(self):
+ """
+ performance for Vhost PVP virtio1.1 vectorized Path.
+ """
+ self.test_target = self.running_case
+ self.expected_throughput = self.get_suite_cfg()['expected_throughput'][self.test_target]
+ virtio_pmd_arg = {"version": "packed_vq=1,in_order=1,mrg_rxbuf=0,vectorized=1",
+ "path": "--enable-hw-vlan-strip"}
self.start_vhost_testpmd()
self.start_virtio_testpmd(virtio_pmd_arg)
self.send_and_verify("virtio_1.1_inorder_normal")
@@ -370,9 +385,9 @@ class TestPVPMultiPathVirtioPerformance(TestCase):
self.handle_expected()
self.handle_results()
- def test_perf_virtio_single_core_inorder_no_mergeable(self):
+ def test_perf_virtio_single_core_inorder_normal(self):
"""
- performance for Vhost PVP In_order no_mergeable Path.
+ performance for Vhost PVP In_order normal Path.
"""
self.test_target = self.running_case
self.expected_throughput = self.get_suite_cfg()['expected_throughput'][self.test_target]
@@ -410,7 +425,7 @@ class TestPVPMultiPathVirtioPerformance(TestCase):
"""
self.test_target = self.running_case
self.expected_throughput = self.get_suite_cfg()['expected_throughput'][self.test_target]
- virtio_pmd_arg = {"version": "packed_vq=0,in_order=0,mrg_rxbuf=0",
+ virtio_pmd_arg = {"version": "packed_vq=0,in_order=0,mrg_rxbuf=0,vectorized=1",
"path": "--tx-offloads=0x0 --enable-hw-vlan-strip"}
self.start_vhost_testpmd()
self.start_virtio_testpmd(virtio_pmd_arg)
@@ -427,7 +442,7 @@ class TestPVPMultiPathVirtioPerformance(TestCase):
"""
self.test_target = self.running_case
self.expected_throughput = self.get_suite_cfg()['expected_throughput'][self.test_target]
- virtio_pmd_arg = {"version": "packed_vq=0,in_order=0,mrg_rxbuf=0",
+ virtio_pmd_arg = {"version": "packed_vq=0,in_order=0,mrg_rxbuf=0,vectorized=1",
"path": "--tx-offloads=0x0"}
self.start_vhost_testpmd()
self.start_virtio_testpmd(virtio_pmd_arg)
--
2.17.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [dts] [PATCH v1] tests: update test commonds for vectorized cases in TestSuite_pvp_multi_paths_virtio_single_core_performance.py
2020-04-29 22:10 [dts] [PATCH v1] tests: update test commonds for vectorized cases in TestSuite_pvp_multi_paths_virtio_single_core_performance.py Yinan
@ 2020-05-06 3:25 ` Tu, Lijuan
0 siblings, 0 replies; 2+ messages in thread
From: Tu, Lijuan @ 2020-05-06 3:25 UTC (permalink / raw)
To: Wang, Yinan, dts; +Cc: Wang, Yinan
Applied, thanks
> -----Original Message-----
> From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Yinan
> Sent: Thursday, April 30, 2020 6:10 AM
> To: dts@dpdk.org
> Cc: Wang, Yinan <yinan.wang@intel.com>
> Subject: [dts] [PATCH v1] tests: update test commonds for vectorized cases in
> TestSuite_pvp_multi_paths_virtio_single_core_performance.py
>
> From: Wang Yinan <yinan.wang@intel.com>
>
> Signed-off-by: Wang Yinan <yinan.wang@intel.com>
> ---
> ...i_paths_virtio_single_core_performance.cfg | 2 +-
> ...ti_paths_virtio_single_core_performance.py | 31 ++++++++++++++-----
> 2 files changed, 24 insertions(+), 9 deletions(-)
>
> diff --git a/conf/pvp_multi_paths_virtio_single_core_performance.cfg
> b/conf/pvp_multi_paths_virtio_single_core_performance.cfg
> index f7703a3..ae25ed3 100644
> --- a/conf/pvp_multi_paths_virtio_single_core_performance.cfg
> +++ b/conf/pvp_multi_paths_virtio_single_core_performance.cfg
> @@ -3,4 +3,4 @@ update_expected = True
> test_parameters = {64: [1024], 1518: [1024]} test_duration = 60
> accepted_tolerance = 2 -expected_throughput =
> {'test_perf_virtio_single_core_virtio11_mergeable': {64: {1024: 0.0}, 1518:
> {1024: 0.0}}, 'test_perf_virtio_single_core_virtio11_normal': {64: {1024: 0.0},
> 1518: {1024: 0.0}}, 'test_perf_virtio_single_core_virtio11_inorder_mergeable':
> {64: {1024: 0.0}, 1518: {1024: 0.0}},
> 'test_perf_virtio_single_core_virtio11_inorder_normal': {64: {1024: 0.0}, 1518:
> {1024: 0.0}}, 'test_perf_virtio_single_core_inorder_mergeable': {64: {1024:
> 0.0}, 1518: {1024: 0.0}}, 'test_perf_virtio_single_core_inorder_no_mergeable':
> {64: {1024: 0.0}, 1518: {1024: 0.0}}, 'test_perf_virtio_single_core_mergeable':
> {64: {1024: 0.0}, 1518: {1024: 0.0}}, 'test_perf_virtio_single_core_normal': {64:
> {1024: 0.0}, 1518: {1024: 0.0}}, 'test_perf_virtio_single_core_vector_rx': {64:
> {1024: 0.0}, 1518: {1024: 0.0}}}
> +expected_throughput =
> +{'test_perf_virtio_single_core_virtio11_vectorized': {64: {1024: 0.00},
> +1518: {1024:
> +0.00}},'test_perf_virtio_single_core_virtio11_inorder_normal': {64:
> +{1024: 0.00}, 1518: {1024:
> +0.00}},'test_perf_virtio_single_core_virtio11_mergeable': {64: {1024:
> +0.0}, 1518: {1024: 0.0}},
> +'test_perf_virtio_single_core_virtio11_normal': {64: {1024: 0.0}, 1518:
> +{1024: 0.0}},
> +'test_perf_virtio_single_core_virtio11_inorder_mergeable': {64: {1024:
> +0.0}, 1518: {1024: 0.0}},
> +'test_perf_virtio_single_core_virtio11_inorder_normal': {64: {1024:
> +0.0}, 1518: {1024: 0.0}},
> +'test_perf_virtio_single_core_inorder_mergeable': {64: {1024: 0.0},
> +1518: {1024: 0.0}}, 'test_perf_virtio_single_core_inorder_normal': {64:
> +{1024: 0.0}, 1518: {1024: 0.0}},
> +'test_perf_virtio_single_core_mergeable': {64: {1024: 0.0}, 1518:
> +{1024: 0.0}}, 'test_perf_virtio_single_core_normal': {64: {1024: 0.0},
> +1518: {1024: 0.0}}, 'test_perf_virtio_single_core_vector_rx': {64:
> +{1024: 0.0}, 1518: {1024: 0.0}}}
> diff --git
> a/tests/TestSuite_pvp_multi_paths_virtio_single_core_performance.py
> b/tests/TestSuite_pvp_multi_paths_virtio_single_core_performance.py
> index ccf14fc..b98048b 100644
> --- a/tests/TestSuite_pvp_multi_paths_virtio_single_core_performance.py
> +++ b/tests/TestSuite_pvp_multi_paths_virtio_single_core_performance.py
> @@ -115,11 +115,9 @@ class TestPVPMultiPathVirtioPerformance(TestCase):
> self.dut_ports[0])
> destination_mac = self.dut.get_mac_address(
> self.dut_ports[0])
> -
> pkt = Packet(pkt_type='UDP', pkt_len=frame_size)
> pkt.config_layer('ether', {'dst': '%s' % destination_mac})
> pkt.save_pcapfile(self.tester, "%s/multi_path.pcap" % (self.out_path))
> -
> tgen_input.append((tx_port, rx_port, "%s/multi_path.pcap" %
> (self.out_path)))
>
> self.tester.pktgen.clear_streams()
> @@ -342,8 +340,25 @@ class TestPVPMultiPathVirtioPerformance(TestCase):
> """
> self.test_target = self.running_case
> self.expected_throughput =
> self.get_suite_cfg()['expected_throughput'][self.test_target]
> - virtio_pmd_arg = {"version": "packed_vq=1,in_order=1,mrg_rxbuf=0",
> - "path": "--tx-offloads=0x0 --enable-hw-vlan-strip"}
> + virtio_pmd_arg = {"version":
> "packed_vq=1,in_order=1,mrg_rxbuf=0,vectorized=0",
> + "path": "--enable-hw-vlan-strip"}
> + self.start_vhost_testpmd()
> + self.start_virtio_testpmd(virtio_pmd_arg)
> + self.send_and_verify("virtio_1.1_inorder_normal")
> + self.close_all_testpmd()
> + self.logger.info('result of all framesize result')
> + self.result_table_print()
> + self.handle_expected()
> + self.handle_results()
> +
> + def test_perf_virtio_single_core_virtio11_vectorized(self):
> + """
> + performance for Vhost PVP virtio1.1 vectorized Path.
> + """
> + self.test_target = self.running_case
> + self.expected_throughput =
> self.get_suite_cfg()['expected_throughput'][self.test_target]
> + virtio_pmd_arg = {"version":
> "packed_vq=1,in_order=1,mrg_rxbuf=0,vectorized=1",
> + "path": "--enable-hw-vlan-strip"}
> self.start_vhost_testpmd()
> self.start_virtio_testpmd(virtio_pmd_arg)
> self.send_and_verify("virtio_1.1_inorder_normal")
> @@ -370,9 +385,9 @@ class TestPVPMultiPathVirtioPerformance(TestCase):
> self.handle_expected()
> self.handle_results()
>
> - def test_perf_virtio_single_core_inorder_no_mergeable(self):
> + def test_perf_virtio_single_core_inorder_normal(self):
> """
> - performance for Vhost PVP In_order no_mergeable Path.
> + performance for Vhost PVP In_order normal Path.
> """
> self.test_target = self.running_case
> self.expected_throughput =
> self.get_suite_cfg()['expected_throughput'][self.test_target]
> @@ -410,7 +425,7 @@ class TestPVPMultiPathVirtioPerformance(TestCase):
> """
> self.test_target = self.running_case
> self.expected_throughput =
> self.get_suite_cfg()['expected_throughput'][self.test_target]
> - virtio_pmd_arg = {"version": "packed_vq=0,in_order=0,mrg_rxbuf=0",
> + virtio_pmd_arg = {"version":
> + "packed_vq=0,in_order=0,mrg_rxbuf=0,vectorized=1",
> "path": "--tx-offloads=0x0 --enable-hw-vlan-strip"}
> self.start_vhost_testpmd()
> self.start_virtio_testpmd(virtio_pmd_arg)
> @@ -427,7 +442,7 @@ class TestPVPMultiPathVirtioPerformance(TestCase):
> """
> self.test_target = self.running_case
> self.expected_throughput =
> self.get_suite_cfg()['expected_throughput'][self.test_target]
> - virtio_pmd_arg = {"version": "packed_vq=0,in_order=0,mrg_rxbuf=0",
> + virtio_pmd_arg = {"version":
> + "packed_vq=0,in_order=0,mrg_rxbuf=0,vectorized=1",
> "path": "--tx-offloads=0x0"}
> self.start_vhost_testpmd()
> self.start_virtio_testpmd(virtio_pmd_arg)
> --
> 2.17.1
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-05-06 3:25 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-29 22:10 [dts] [PATCH v1] tests: update test commonds for vectorized cases in TestSuite_pvp_multi_paths_virtio_single_core_performance.py Yinan
2020-05-06 3:25 ` Tu, Lijuan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).