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 64160A04B3; Mon, 10 Feb 2020 10:05:13 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 569F01BF7B; Mon, 10 Feb 2020 10:05:13 +0100 (CET) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id B498C1BF7A for ; Mon, 10 Feb 2020 10:05:11 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 10 Feb 2020 01:05:10 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,424,1574150400"; d="scan'208";a="433260424" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by fmsmga006.fm.intel.com with ESMTP; 10 Feb 2020 01:05:10 -0800 Received: from fmsmsx155.amr.corp.intel.com (10.18.116.71) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 10 Feb 2020 01:05:10 -0800 Received: from shsmsx103.ccr.corp.intel.com (10.239.4.69) by FMSMSX155.amr.corp.intel.com (10.18.116.71) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 10 Feb 2020 01:05:10 -0800 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.222]) by SHSMSX103.ccr.corp.intel.com ([169.254.4.196]) with mapi id 14.03.0439.000; Mon, 10 Feb 2020 17:05:08 +0800 From: "Tu, Lijuan" To: "Xiao, QimaiX" , "dts@dpdk.org" CC: "Xiao, QimaiX" Thread-Topic: [dts] [PATCH V1]tests/pvp_multi_paths_performance: optimize eal parameters Thread-Index: AQHV0bCWCHIPqbaYbUSwkWI1ao7qOqgUPvxw Date: Mon, 10 Feb 2020 09:05:08 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BBC57F0@SHSMSX101.ccr.corp.intel.com> References: <1579758237-87003-1-git-send-email-qimaix.xiao@intel.com> In-Reply-To: <1579758237-87003-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_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 1:44 PM > To: dts@dpdk.org > Cc: Xiao, QimaiX > Subject: [dts] [PATCH V1]tests/pvp_multi_paths_performance: optimize eal > parameters >=20 > optimize eal parameters >=20 > Signed-off-by: Xiao Qimai > --- > tests/TestSuite_pvp_multi_paths_performance.py | 29 +++++++++++---------= - > ----- > 1 file changed, 12 insertions(+), 17 deletions(-) >=20 > diff --git a/tests/TestSuite_pvp_multi_paths_performance.py > b/tests/TestSuite_pvp_multi_paths_performance.py > index 4c91ebe..df24e77 100644 > --- a/tests/TestSuite_pvp_multi_paths_performance.py > +++ b/tests/TestSuite_pvp_multi_paths_performance.py > @@ -58,10 +58,6 @@ class TestPVPMultiPathPerformance(TestCase): > self.core_list_host =3D self.core_list[2:4] > 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, '# '= ) @@ -127,12 > +123,11 @@ class TestPVPMultiPathPerformance(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 "./%s/app/testpmd -n %d -c %s --socket-m= em " > + \ > - " %s --legacy-mem -w %s --file-prefix=3Dvh= ost --vdev " + \ > - "'net_vhost0,iface=3Dvhost-net,queues=3D1,= client=3D0' -- -i --nb- > cores=3D1 --txd=3D1024 --rxd=3D1024" > - command_line_client =3D command_line_client % (self.target, > - self.dut.get_memory_channels(), self.core_mask_host, > - self.socket_mem, self.dut.ports_info[self.dut_ports[0]]['pci= ']) > + eal_param =3D self.dut.create_eal_parameters(socket=3Dself.ports= _socket, > prefix=3D'vhost', > + > ports=3D[self.dut.ports_info[self.dut_ports[0]]['pci']], > + vdevs=3D['net_vhost0,= iface=3Dvhost- > net,queues=3D1,client=3D0']) > + 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) @@ -141,13 +13= 6,13 > @@ class TestPVPMultiPathPerformance(TestCase): > """ > start testpmd on virtio > """ > - command_line_user =3D "./%s/app/testpmd -n %d -c %s " + \ > - " --socket-mem %s --legacy-mem --no-pci --fi= le-prefix=3Dvirtio " > + \ > - "-- > vdev=3Dnet_virtio_user0,mac=3D00:01:02:03:04:05,path=3D./vhost-net,%s " += \ > - "-- -i %s --rss-ip --nb-cores=3D1 --txd=3D10= 24 --rxd=3D1024" > - command_line_user =3D command_line_user % (self.target, > - 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', > + no_pci=3DTrue, > + > vdevs=3D['net_virtio_user0,mac=3D00:01:02:03:04:05,path=3D./vhost-net,%s'= % > + args["version"= ]]) > + eal_param +=3D " --single-file-segments" > + command_line_user =3D "./%s/app/testpmd " % self.target + eal_pa= ram + > " -- -i %s --rss-ip --nb-cores=3D1 --txd=3D1024 --rxd=3D1024" % \ > + args["path"] > self.vhost_user =3D self.dut.new_session(suite=3D"user") > self.vhost_user.send_expect(command_line_user, "testpmd> ", 120) > self.vhost_user.send_expect("set fwd mac", "testpmd> ", 120) > -- > 1.8.3.1