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 D39BCA0352; Wed, 6 May 2020 05:25:50 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id CBAFA1D6DD; Wed, 6 May 2020 05:25:50 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by dpdk.org (Postfix) with ESMTP id A92071D6DD for ; Wed, 6 May 2020 05:25:48 +0200 (CEST) IronPort-SDR: YVJYlTpUSLqP4d4ya0bzfSpSjrfzSWhZjizT3cgv994mwfl9f34yD3256XMtQYYxgEqotOs9OG LOiVsC0GXULA== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 May 2020 20:25:48 -0700 IronPort-SDR: As8yHgJmffFUKmmOaKbCpwIvPmzWijkjLwkpgseU2lscc1uXHP0jndACDLb1ZhneqrBWn1gEcO mQE1uVL7O9PA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,357,1583222400"; d="scan'208";a="284470704" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by fmsmga004.fm.intel.com with ESMTP; 05 May 2020 20:25:48 -0700 Received: from fmsmsx604.amr.corp.intel.com (10.18.126.84) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 5 May 2020 20:25:48 -0700 Received: from fmsmsx604.amr.corp.intel.com (10.18.126.84) by fmsmsx604.amr.corp.intel.com (10.18.126.84) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Tue, 5 May 2020 20:25:47 -0700 Received: from shsmsx153.ccr.corp.intel.com (10.239.6.53) by fmsmsx604.amr.corp.intel.com (10.18.126.84) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.1713.5 via Frontend Transport; Tue, 5 May 2020 20:25:47 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.225]) by SHSMSX153.ccr.corp.intel.com ([169.254.12.248]) with mapi id 14.03.0439.000; Wed, 6 May 2020 11:25:44 +0800 From: "Tu, Lijuan" To: "Wang, Yinan" , "dts@dpdk.org" CC: "Wang, Yinan" Thread-Topic: [dts] [PATCH v1] tests: update test commonds for vectorized cases in TestSuite_pvp_multi_paths_virtio_single_core_performance.py Thread-Index: AQHWHq6KcIuLSMrGjUifmnKoZo9eTKiabq6w Date: Wed, 6 May 2020 03:25:44 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BC21F43@SHSMSX101.ccr.corp.intel.com> References: <20200429221021.27727-1-yinan.wang@intel.com> In-Reply-To: <20200429221021.27727-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: update test commonds for vectorized cases in TestSuite_pvp_multi_paths_virtio_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: Thursday, April 30, 2020 6:10 AM > To: dts@dpdk.org > Cc: Wang, Yinan > Subject: [dts] [PATCH v1] tests: update test commonds for vectorized case= s in > TestSuite_pvp_multi_paths_virtio_single_core_performance.py >=20 > From: Wang Yinan >=20 > Signed-off-by: Wang Yinan > --- > ...i_paths_virtio_single_core_performance.cfg | 2 +- > ...ti_paths_virtio_single_core_performance.py | 31 ++++++++++++++----- > 2 files changed, 24 insertions(+), 9 deletions(-) >=20 > 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 =3D True > test_parameters =3D {64: [1024], 1518: [1024]} test_duration =3D 60 > accepted_tolerance =3D 2 -expected_throughput =3D > {'test_perf_virtio_single_core_virtio11_mergeable': {64: {1024: 0.0}, 151= 8: > {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_mergea= ble': > {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: {102= 4: > 0.0}, 1518: {1024: 0.0}}, 'test_perf_virtio_single_core_inorder_no_mergea= ble': > {64: {1024: 0.0}, 1518: {1024: 0.0}}, 'test_perf_virtio_single_core_merge= able': > {64: {1024: 0.0}, 1518: {1024: 0.0}}, 'test_perf_virtio_single_core_norma= l': {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 =3D > +{'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 =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)) > - > tgen_input.append((tx_port, rx_port, "%s/multi_path.pcap" % > (self.out_path))) >=20 > self.tester.pktgen.clear_streams() > @@ -342,8 +340,25 @@ class TestPVPMultiPathVirtioPerformance(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": "packed_vq=3D1,in_order=3D1,mrg_r= xbuf=3D0", > - "path": "--tx-offloads=3D0x0 --enable-hw-vlan-= strip"} > + virtio_pmd_arg =3D {"version": > "packed_vq=3D1,in_order=3D1,mrg_rxbuf=3D0,vectorized=3D0", > + "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 =3D self.running_case > + self.expected_throughput =3D > self.get_suite_cfg()['expected_throughput'][self.test_target] > + virtio_pmd_arg =3D {"version": > "packed_vq=3D1,in_order=3D1,mrg_rxbuf=3D0,vectorized=3D1", > + "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() >=20 > - 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 =3D self.running_case > self.expected_throughput =3D > self.get_suite_cfg()['expected_throughput'][self.test_target] > @@ -410,7 +425,7 @@ class TestPVPMultiPathVirtioPerformance(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": "packed_vq=3D0,in_order=3D0,mrg_r= xbuf=3D0", > + virtio_pmd_arg =3D {"version": > + "packed_vq=3D0,in_order=3D0,mrg_rxbuf=3D0,vectorized=3D1", > "path": "--tx-offloads=3D0x0 --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 =3D self.running_case > self.expected_throughput =3D > self.get_suite_cfg()['expected_throughput'][self.test_target] > - virtio_pmd_arg =3D {"version": "packed_vq=3D0,in_order=3D0,mrg_r= xbuf=3D0", > + virtio_pmd_arg =3D {"version": > + "packed_vq=3D0,in_order=3D0,mrg_rxbuf=3D0,vectorized=3D1", > "path": "--tx-offloads=3D0x0"} > self.start_vhost_testpmd() > self.start_virtio_testpmd(virtio_pmd_arg) > -- > 2.17.1