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 02FA7A0567; Wed, 11 Mar 2020 08:23:32 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id BE1CE1BF7F; Wed, 11 Mar 2020 08:23:32 +0100 (CET) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id D73D82BE6 for ; Wed, 11 Mar 2020 08:23:31 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 11 Mar 2020 00:23:30 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,540,1574150400"; d="scan'208";a="415470823" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by orsmga005.jf.intel.com with ESMTP; 11 Mar 2020 00:23:27 -0700 Received: from fmsmsx605.amr.corp.intel.com (10.18.126.85) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 11 Mar 2020 00:22:07 -0700 Received: from fmsmsx605.amr.corp.intel.com (10.18.126.85) by fmsmsx605.amr.corp.intel.com (10.18.126.85) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Wed, 11 Mar 2020 00:21:45 -0700 Received: from shsmsx153.ccr.corp.intel.com (10.239.6.53) by fmsmsx605.amr.corp.intel.com (10.18.126.85) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.1713.5 via Frontend Transport; Wed, 11 Mar 2020 00:21:45 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.43]) by SHSMSX153.ccr.corp.intel.com ([169.254.12.96]) with mapi id 14.03.0439.000; Wed, 11 Mar 2020 15:21:43 +0800 From: "Tu, Lijuan" To: "Xiao, QimaiX" , "dts@dpdk.org" , "Wang, Yinan" CC: "Xiao, QimaiX" Thread-Topic: [dts] [PATCH V1]tests/TestSuite_vm2vm_virtio_net_perf: add two cases and reduce runtime Thread-Index: AQHV8so0NtkZ4YZqyUWougX1q7TIP6hC/v3w Date: Wed, 11 Mar 2020 07:21:42 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BBEBB74@SHSMSX101.ccr.corp.intel.com> References: <1583397516-362964-1-git-send-email-qimaix.xiao@intel.com> In-Reply-To: <1583397516-362964-1-git-send-email-qimaix.xiao@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/TestSuite_vm2vm_virtio_net_perf: add two cases and reduce runtime 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" Could you please review it? thanks > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Xiao Qimai > Sent: Thursday, March 5, 2020 4:39 PM > To: dts@dpdk.org > Cc: Xiao, QimaiX > Subject: [dts] [PATCH V1]tests/TestSuite_vm2vm_virtio_net_perf: add two > cases and reduce runtime >=20 > *. add two cases and reduce runtime >=20 > Signed-off-by: Xiao Qimai > --- > tests/TestSuite_vm2vm_virtio_net_perf.py | 31 > +++++++++++++++++++++++++------ > 1 file changed, 25 insertions(+), 6 deletions(-) >=20 > diff --git a/tests/TestSuite_vm2vm_virtio_net_perf.py > b/tests/TestSuite_vm2vm_virtio_net_perf.py > index cc48905..5b7f3e9 100644 > --- a/tests/TestSuite_vm2vm_virtio_net_perf.py > +++ b/tests/TestSuite_vm2vm_virtio_net_perf.py > @@ -88,7 +88,7 @@ class TestVM2VMVirtioNetPerf(TestCase): > vdev1 =3D "--vdev 'net_vhost0,iface=3D%s/vhost-net0,queues=3D1%s= ' " % > (self.base_dir, zerocopy_arg) > vdev2 =3D "--vdev 'net_vhost1,iface=3D%s/vhost-net1,queues=3D1%s= ' " % > (self.base_dir, zerocopy_arg) > eal_params =3D self.dut.create_eal_parameters(cores=3Dself.cores= _list, > prefix=3D'vhost', no_pci=3DTrue) > - para =3D " -- -i --nb-cores=3D1 --txd=3D1024 --rxd=3D1024" > + para =3D " -- -i --nb-cores=3D2 --txd=3D1024 --rxd=3D1024" > self.command_line =3D testcmd + eal_params + vdev1 + vdev2 + par= a > self.pmd_vhost.execute_cmd(self.command_line, timeout=3D30) > self.pmd_vhost.execute_cmd('start', timeout=3D30) @@ -118,7 +118= ,7 > @@ class TestVM2VMVirtioNetPerf(TestCase): > vm_info.set_vm_device(**vm_params) > time.sleep(3) > try: > - vm_dut =3D vm_info.start() > + vm_dut =3D vm_info.start(set_target=3DFalse) > if vm_dut is None: > raise Exception("Set up VM ENV failed") > except Exception as e: > @@ -155,12 +155,12 @@ class TestVM2VMVirtioNetPerf(TestCase): > # clear the port xstats before iperf > self.vhost.send_expect("clear port xstats all", "testpmd> ", 10) >=20 > - if mode =3D=3D "tso": > - iperf_server =3D "iperf -s -i 1" > - iperf_client =3D "iperf -c 1.1.1.2 -i 1 -t 30" > - elif mode =3D=3D "ufo": > + if mode =3D=3D "ufo": > iperf_server =3D "iperf -s -u -i 1" > iperf_client =3D "iperf -c 1.1.1.2 -i 1 -t 30 -P 4 -u -b 1G = -l 9000" > + else: > + iperf_server =3D "iperf -s -i 1" > + iperf_client =3D "iperf -c 1.1.1.2 -i 1 -t 30" > self.vm_dut[0].send_expect("%s > iperf_server.log &" % iperf_ser= ver, "", > 10) > self.vm_dut[1].send_expect("%s > iperf_client.log &" % iperf_cli= ent, "", > 60) > time.sleep(90) > @@ -273,6 +273,15 @@ class TestVM2VMVirtioNetPerf(TestCase): > self.prepare_test_env(zerocopy, path_mode) > self.start_iperf_and_verify_vhost_xstats_info(mode=3D"tso") >=20 > + def test_vm2vm_split_ring_dequeue_zero_copy_with_tso(self): > + """ > + VM2VM split ring vhost-user/virtio-net zero copy test with tcp t= raffic > + """ > + zerocopy =3D True > + path_mode =3D "tso" > + self.prepare_test_env(zerocopy, path_mode) > + self.start_iperf_and_verify_vhost_xstats_info(mode=3D"tso") > + > def test_vm2vm_packed_ring_iperf_with_tso(self): > """ > VM2VM packed ring vhost-user/virtio-net test with tcp traffic @@= - > 283,6 +292,16 @@ class TestVM2VMVirtioNetPerf(TestCase): > self.prepare_test_env(zerocopy, path_mode, packed_mode) > self.start_iperf_and_verify_vhost_xstats_info(mode=3D"tso") >=20 > + def test_vm2vm_packed_ring_dequeue_zero_copy_with_tso(self): > + """ > + VM2VM packed ring vhost-user/virtio-net zero copy test with tcp = traffic > + """ > + zerocopy =3D True > + path_mode =3D "tso" > + packed_mode =3D True > + self.prepare_test_env(zerocopy, path_mode, packed_mode) > + self.start_iperf_and_verify_vhost_xstats_info(mode=3D"tso") > + > def test_vm2vm_split_ring_iperf_with_ufo(self): > """ > VM2VM split ring vhost-user/virtio-net test with udp traffic > -- > 1.8.3.1