From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 7FA50A00BE; Mon, 27 Apr 2020 09:51:14 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 7571F1C190; Mon, 27 Apr 2020 09:51:14 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by dpdk.org (Postfix) with ESMTP id 610731DB8 for ; Mon, 27 Apr 2020 09:51:12 +0200 (CEST) IronPort-SDR: I7anTddOWCw/N8+P4E7h88uj1i3ilhpK+sspgUk8iLbk8hf0wxLtihjCP2hkO/62hpZFdHgW1h vG+re7FgK6ww== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Apr 2020 00:51:11 -0700 IronPort-SDR: 4sVgCB8mh1pY5GVdr5sLRnovJMnu/sLi3fwijesYUyinvq0i6a7543eIssrdBEzMqNQJzhLzlE XjlBslhc2dFA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,323,1583222400"; d="scan'208";a="275358596" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by orsmga002.jf.intel.com with ESMTP; 27 Apr 2020 00:51:10 -0700 Received: from fmsmsx157.amr.corp.intel.com (10.18.116.73) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 27 Apr 2020 00:51:09 -0700 Received: from shsmsx103.ccr.corp.intel.com (10.239.4.69) by FMSMSX157.amr.corp.intel.com (10.18.116.73) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 27 Apr 2020 00:51:09 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.129]) by SHSMSX103.ccr.corp.intel.com ([169.254.4.146]) with mapi id 14.03.0439.000; Mon, 27 Apr 2020 15:51:07 +0800 From: "Tu, Lijuan" To: "Wang, Yinan" , "dts@dpdk.org" CC: "Wang, Yinan" Thread-Topic: [dts] [PATCH v1] tests: add packed ring vectorized ring cases in TestSuite_pvp_multi_paths_vhost_single_core_performance.py Thread-Index: AQHWG4SNKlStwumbEEOWRH/zOf2P0qiMmirQ Date: Mon, 27 Apr 2020 07:51:05 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BC12A86@SHSMSX101.ccr.corp.intel.com> References: <20200425213208.114434-1-yinan.wang@intel.com> In-Reply-To: <20200425213208.114434-1-yinan.wang@intel.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.2.0.6 dlp-reaction: no-action x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dts] [PATCH v1] tests: add packed ring vectorized ring cases in TestSuite_pvp_multi_paths_vhost_single_core_performance.py X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dts-bounces@dpdk.org Sender: "dts" Applied, thanks > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Yinan > Sent: Sunday, April 26, 2020 5:32 AM > To: dts@dpdk.org > Cc: Wang, Yinan > Subject: [dts] [PATCH v1] tests: add packed ring vectorized ring cases in > TestSuite_pvp_multi_paths_vhost_single_core_performance.py >=20 > From: Wang Yinan >=20 > Signed-off-by: Wang Yinan > --- > ...lti_paths_vhost_single_core_performance.py | 28 ++++++++++++++----- > 1 file changed, 21 insertions(+), 7 deletions(-) >=20 > diff --git > a/tests/TestSuite_pvp_multi_paths_vhost_single_core_performance.py > b/tests/TestSuite_pvp_multi_paths_vhost_single_core_performance.py > index 1da023e..c4d4081 100644 > --- a/tests/TestSuite_pvp_multi_paths_vhost_single_core_performance.py > +++ b/tests/TestSuite_pvp_multi_paths_vhost_single_core_performance.py > @@ -114,7 +114,6 @@ class TestPVPMultiPathVhostPerformance(TestCase): > self.dut_ports[0]) > destination_mac =3D self.dut.get_mac_address( > self.dut_ports[0]) > - > pkt =3D Packet(pkt_type=3D'UDP', pkt_len=3Dframe_size) > pkt.config_layer('ether', {'dst': '%s' % destination_mac}) > pkt.save_pcapfile(self.tester, "%s/multi_path.pcap" % (self.= out_path)) > @@ -122,15 +121,13 @@ class > TestPVPMultiPathVhostPerformance(TestCase): >=20 > self.tester.pktgen.clear_streams() > streams =3D > self.pktgen_helper.prepare_stream_from_tginput(tgen_input, 100, None, > self.tester.pktgen) > - traffic_opt =3D {'delay': 5} > - _, pps =3D self.tester.pktgen.measure_throughput(stream_ids= =3Dstreams, > options=3Dtraffic_opt) > + _, pps =3D > + self.tester.pktgen.measure_throughput(stream_ids=3Dstreams) > Mpps =3D pps / 1000000.0 > self.verify(Mpps > 0.0, "%s can not receive packets of frame= size %d" % > (self.running_case, frame_size)) >=20 > linerate =3D Mpps * 100 / \ > float(self.wirespeed(self.nic, frame_size, > self.number_of_ports)) > self.throughput[frame_size][self.nb_desc] =3D Mpps > - > results_row =3D [frame_size] > results_row.append(case_info) > results_row.append(Mpps) > @@ -343,7 +340,24 @@ class TestPVPMultiPathVhostPerformance(TestCase): > """ > self.test_target =3D self.running_case > self.expected_throughput =3D > self.get_suite_cfg()['expected_throughput'][self.test_target] > - virtio_pmd_arg =3D {"version": "in_order=3D1,packed_vq=3D1,mrg_r= xbuf=3D0", > + virtio_pmd_arg =3D {"version": > "in_order=3D1,packed_vq=3D1,mrg_rxbuf=3D0,vectorized=3D1", > + "path": "--rx-offloads=3D0x10 --enable-hw-vl= an-strip --rss-ip"} > + 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_vhost_single_core_virtio11_vectorized(self): > + """ > + performance for Vhost PVP virtio1.1 vectorized Path. > + """ > + self.test_target =3D self.running_case > + self.expected_throughput =3D > self.get_suite_cfg()['expected_throughput'][self.test_target] > + virtio_pmd_arg =3D {"version": > + "in_order=3D1,packed_vq=3D1,mrg_rxbuf=3D0,vectorized=3D1", > "path": "--tx-offloads=3D0x0 --enable-hw-vla= n-strip --rss-ip"} > self.start_vhost_testpmd() > self.start_virtio_testpmd(virtio_pmd_arg) > @@ -371,9 +385,9 @@ class TestPVPMultiPathVhostPerformance(TestCase): > self.handle_expected() > self.handle_results() >=20 > - def test_perf_vhost_single_core_inorder_no_mergeable(self): > + def test_perf_vhost_single_core_inorder_no_normal(self): > """ > - performance for Vhost PVP In_order no_mergeable Path. > + performance for Vhost PVP In_order normal Path. > """ > self.test_target =3D self.running_case > self.expected_throughput =3D > self.get_suite_cfg()['expected_throughput'][self.test_target] > -- > 2.17.1