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 80D94A04B3; Mon, 10 Feb 2020 10:09:23 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 602661BE94; Mon, 10 Feb 2020 10:09:23 +0100 (CET) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 66D4854AE for ; Mon, 10 Feb 2020 10:09:21 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 10 Feb 2020 01:09:20 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,424,1574150400"; d="scan'208";a="233043288" Received: from fmsmsx107.amr.corp.intel.com ([10.18.124.205]) by orsmga003.jf.intel.com with ESMTP; 10 Feb 2020 01:09:19 -0800 Received: from fmsmsx117.amr.corp.intel.com (10.18.116.17) by fmsmsx107.amr.corp.intel.com (10.18.124.205) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 10 Feb 2020 01:09:19 -0800 Received: from shsmsx152.ccr.corp.intel.com (10.239.6.52) by fmsmsx117.amr.corp.intel.com (10.18.116.17) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 10 Feb 2020 01:09:19 -0800 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.222]) by SHSMSX152.ccr.corp.intel.com ([169.254.6.76]) with mapi id 14.03.0439.000; Mon, 10 Feb 2020 17:05:14 +0800 From: "Tu, Lijuan" To: "Xiao, QimaiX" , "dts@dpdk.org" CC: "Xiao, QimaiX" Thread-Topic: [dts] [PATCH V1]tests/pvp_multi_paths_vhost_single_core_performance: optimize eal parameters Thread-Index: AQHV0bMRTbhmx2WfWkWHzBqvYvuAR6gUPv9A Date: Mon, 10 Feb 2020 09:05:14 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BBC57FD@SHSMSX101.ccr.corp.intel.com> References: <1579759306-88332-1-git-send-email-qimaix.xiao@intel.com> In-Reply-To: <1579759306-88332-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/pvp_multi_paths_vhost_single_core_performance: optimize eal parameters 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, January 23, 2020 2:02 PM > To: dts@dpdk.org > Cc: Xiao, QimaiX > Subject: [dts] [PATCH > V1]tests/pvp_multi_paths_vhost_single_core_performance: optimize eal > parameters >=20 > Signed-off-by: Xiao Qimai > --- > ...vp_multi_paths_vhost_single_core_performance.py | 26 +++++++++-------= - > ----- > 1 file changed, 11 insertions(+), 15 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 160ab78..94c1759 100644 > --- a/tests/TestSuite_pvp_multi_paths_vhost_single_core_performance.py > +++ b/tests/TestSuite_pvp_multi_paths_vhost_single_core_performance.py > @@ -57,10 +57,6 @@ class TestPVPMultiPathVhostPerformance(TestCase): > self.core_list_host =3D self.core_list[3:5] > self.core_mask_user =3D utils.create_mask(self.core_list_user) > self.core_mask_host =3D utils.create_mask(self.core_list_host) > - if len(set([int(core['socket']) for core in self.dut.cores])) = =3D=3D 1: > - self.socket_mem =3D '1024' > - else: > - self.socket_mem =3D '1024,1024' >=20 > self.out_path =3D '/tmp' > out =3D self.tester.send_expect('ls -d %s' % self.out_path, '# '= ) @@ -126,11 > +122,11 @@ class TestPVPMultiPathVhostPerformance(TestCase): > self.dut.send_expect("rm -rf ./vhost-net*", "#") > self.dut.send_expect("killall -s INT testpmd", "#") > self.dut.send_expect("killall -s INT qemu-system-x86_64", "#") > - command_line_client =3D "./x86_64-native-linuxapp-gcc/app/testpm= d - > n %d -c %s --socket-mem " + \ > - " %s --legacy-mem --no-pci --file-prefix= =3Dvhost --vdev " + \ > - "'net_vhost0,iface=3Dvhost-net,queues=3D1'= -- -i --nb-cores=3D1 -- > txd=3D1024 --rxd=3D1024" > - command_line_client =3D command_line_client % ( > - self.dut.get_memory_channels(), self.core_mask_host, > self.socket_mem) > + eal_param =3D self.dut.create_eal_parameters(socket=3Dself.ports= _socket, > prefix=3D'vhost', > + no_pci=3DTrue, > + vdevs=3D['net_vhost0,= iface=3Dvhost-net,queues=3D1']) > + eal_param +=3D " --single-file-segments" > + command_line_client =3D "./%s/app/testpmd " % self.target + eal_= param > + " -- -i --nb-cores=3D1 --txd=3D1024 --rxd=3D1024" > self.vhost.send_expect(command_line_client, "testpmd> ", 120) > self.vhost.send_expect("set fwd mac", "testpmd> ", 120) > self.vhost.send_expect("start", "testpmd> ", 120) @@ -139,12 +13= 5,12 > @@ class TestPVPMultiPathVhostPerformance(TestCase): > """ > start testpmd on virtio > """ > - command_line_user =3D "./x86_64-native-linuxapp-gcc/app/testpmd = - > n %d -c %s " + \ > - " --socket-mem %s --legacy-mem --file-prefix= =3Dvirtio " + \ > - "--vdev=3Dvirtio_user0,mac=3D00:01:02:03:04:= 05,path=3D./vhost- > net,queues=3D1,%s " + \ > - "-- -i %s --nb-cores=3D2 --txd=3D1024 --rxd= =3D1024" > - command_line_user =3D command_line_user % ( > - self.dut.get_memory_channels(), self.core_mask_user, > self.socket_mem, args["version"], args["path"]) > + eal_param =3D self.dut.create_eal_parameters(socket=3Dself.ports= _socket, > prefix=3D'virtio', > + > vdevs=3D['virtio_user0,mac=3D00:01:02:03:04:05,path=3D./vhost-net,queues= =3D1,%s' % > + args["version"= ]]) > + eal_param +=3D " --single-file-segments" > + command_line_user =3D "./%s/app/testpmd " % self.target + eal_pa= ram + > " -- -i %s --nb-cores=3D2 --txd=3D1024 --rxd=3D1024" % \ > + args["path"] > self.vhost_user.send_expect(command_line_user, "testpmd> ", 120) > self.vhost_user.send_expect("set fwd io", "testpmd> ", 120) > self.vhost_user.send_expect("start", "testpmd> ", 120) > -- > 1.8.3.1