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 EB4C1A0567; Fri, 13 Mar 2020 12:05:18 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id D8D0E1C01F; Fri, 13 Mar 2020 12:05:18 +0100 (CET) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id E53861C01F for ; Fri, 13 Mar 2020 12:05:16 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 13 Mar 2020 04:05:16 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,548,1574150400"; d="scan'208";a="236927815" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by fmsmga008.fm.intel.com with ESMTP; 13 Mar 2020 04:05:16 -0700 Received: from shsmsx601.ccr.corp.intel.com (10.109.6.141) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.439.0; Fri, 13 Mar 2020 04:05:15 -0700 Received: from shsmsx603.ccr.corp.intel.com (10.109.6.143) by SHSMSX601.ccr.corp.intel.com (10.109.6.141) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Fri, 13 Mar 2020 19:05:13 +0800 Received: from shsmsx603.ccr.corp.intel.com ([10.109.6.143]) by SHSMSX603.ccr.corp.intel.com ([10.109.6.143]) with mapi id 15.01.1713.004; Fri, 13 Mar 2020 19:05:13 +0800 From: "Wang, Yinan" To: "Tu, Lijuan" , "Xiao, QimaiX" , "dts@dpdk.org" CC: "Xiao, QimaiX" Thread-Topic: [dts] [PATCH V1]tests/TestSuite_vm2vm_virtio_net_perf: add two cases and reduce runtime Thread-Index: AQHV8so0NtkZ4YZqyUWougX1q7TIP6hC/v3wgANp4rA= Date: Fri, 13 Mar 2020 11:05:13 +0000 Message-ID: References: <1583397516-362964-1-git-send-email-qimaix.xiao@intel.com> <8CE3E05A3F976642AAB0F4675D0AD20E0BBEBB74@SHSMSX101.ccr.corp.intel.com> In-Reply-To: <8CE3E05A3F976642AAB0F4675D0AD20E0BBEBB74@SHSMSX101.ccr.corp.intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-reaction: no-action dlp-version: 11.2.0.6 dlp-product: dlpe-windows x-originating-ip: [10.239.127.36] Content-Type: text/plain; charset="iso-2022-jp" 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" Acked-by: Wang, Yinan > -----Original Message----- > From: Tu, Lijuan > Sent: 2020=1B$BG/=1B(B3=1B$B7n=1B(B11=1B$BF|=1B(B 15:22 > To: Xiao, QimaiX ; dts@dpdk.org; Wang, Yinan > > Cc: Xiao, QimaiX > Subject: RE: [dts] [PATCH V1]tests/TestSuite_vm2vm_virtio_net_perf: add t= wo > cases and reduce runtime >=20 > Could you please review it? >=20 > thanks >=20 > > -----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 > > > > *. add two cases and reduce runtime > > > > Signed-off-by: Xiao Qimai > > --- > > tests/TestSuite_vm2vm_virtio_net_perf.py | 31 > > +++++++++++++++++++++++++------ > > 1 file changed, 25 insertions(+), 6 deletions(-) > > > > 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 + > para > > 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) > > > > - 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 1= G -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_server, "", > > 10) > > self.vm_dut[1].send_expect("%s > iperf_client.log &" % > > iperf_client, "", > > 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") > > > > + def test_vm2vm_split_ring_dequeue_zero_copy_with_tso(self): > > + """ > > + VM2VM split ring vhost-user/virtio-net zero copy test with tcp > traffic > > + """ > > + 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") > > > > + def test_vm2vm_packed_ring_dequeue_zero_copy_with_tso(self): > > + """ > > + VM2VM packed ring vhost-user/virtio-net zero copy test with tc= p > 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