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 9A989A0559; Tue, 17 Mar 2020 06:16:32 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 76F6125D9; Tue, 17 Mar 2020 06:16:32 +0100 (CET) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by dpdk.org (Postfix) with ESMTP id 5B5EC3B5 for ; Tue, 17 Mar 2020 06:16:30 +0100 (CET) IronPort-SDR: 3tVEjiIsFJXn8gMK/dzG34hK2enkwqQKbiN4sU0+xt+v6hC0wN65sBtZJtc6jaX6enzdtm653t AtoU0a17W40Q== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Mar 2020 22:16:29 -0700 IronPort-SDR: T7gI+/Swbj2OcdBa66LszxafupGRMsxDSQ0gCOk5PIpXMN3hHVzXRHsW2RwwSDTJJrL0zzGh+j j2GqFzUQ4vCg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,563,1574150400"; d="scan'208";a="233394111" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by orsmga007.jf.intel.com with ESMTP; 16 Mar 2020 22:16:29 -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, 16 Mar 2020 22:16:28 -0700 Received: from shsmsx153.ccr.corp.intel.com (10.239.6.53) by FMSMSX157.amr.corp.intel.com (10.18.116.73) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 16 Mar 2020 22:16:28 -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; Tue, 17 Mar 2020 13:16:26 +0800 From: "Tu, Lijuan" To: "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: AQHV8so0NtkZ4YZqyUWougX1q7TIP6hMUM6A Date: Tue, 17 Mar 2020 05:16:25 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BBEE97C@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" Applied, 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