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 D2530A0538; Thu, 23 Jan 2020 07:04:53 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 9848D3253; Thu, 23 Jan 2020 07:04:53 +0100 (CET) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id A1A682A62 for ; Thu, 23 Jan 2020 07:04:51 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 22 Jan 2020 22:04:50 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,352,1574150400"; d="scan'208";a="259732536" Received: from unknown (HELO dpdk-xiaoqimai-dut.sh.intel.com) ([10.240.179.33]) by fmsmga002.fm.intel.com with ESMTP; 22 Jan 2020 22:04:49 -0800 From: Xiao Qimai To: dts@dpdk.org Cc: Xiao Qimai Date: Thu, 23 Jan 2020 14:01:46 +0800 Message-Id: <1579759306-88332-1-git-send-email-qimaix.xiao@intel.com> X-Mailer: git-send-email 1.8.3.1 Subject: [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" Signed-off-by: Xiao Qimai --- ...vp_multi_paths_vhost_single_core_performance.py | 26 +++++++++------------- 1 file changed, 11 insertions(+), 15 deletions(-) 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 = self.core_list[3:5] self.core_mask_user = utils.create_mask(self.core_list_user) self.core_mask_host = utils.create_mask(self.core_list_host) - if len(set([int(core['socket']) for core in self.dut.cores])) == 1: - self.socket_mem = '1024' - else: - self.socket_mem = '1024,1024' self.out_path = '/tmp' out = 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 = "./x86_64-native-linuxapp-gcc/app/testpmd -n %d -c %s --socket-mem " + \ - " %s --legacy-mem --no-pci --file-prefix=vhost --vdev " + \ - "'net_vhost0,iface=vhost-net,queues=1' -- -i --nb-cores=1 --txd=1024 --rxd=1024" - command_line_client = command_line_client % ( - self.dut.get_memory_channels(), self.core_mask_host, self.socket_mem) + eal_param = self.dut.create_eal_parameters(socket=self.ports_socket, prefix='vhost', + no_pci=True, + vdevs=['net_vhost0,iface=vhost-net,queues=1']) + eal_param += " --single-file-segments" + command_line_client = "./%s/app/testpmd " % self.target + eal_param + " -- -i --nb-cores=1 --txd=1024 --rxd=1024" 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 +135,12 @@ class TestPVPMultiPathVhostPerformance(TestCase): """ start testpmd on virtio """ - command_line_user = "./x86_64-native-linuxapp-gcc/app/testpmd -n %d -c %s " + \ - " --socket-mem %s --legacy-mem --file-prefix=virtio " + \ - "--vdev=virtio_user0,mac=00:01:02:03:04:05,path=./vhost-net,queues=1,%s " + \ - "-- -i %s --nb-cores=2 --txd=1024 --rxd=1024" - command_line_user = command_line_user % ( - self.dut.get_memory_channels(), self.core_mask_user, self.socket_mem, args["version"], args["path"]) + eal_param = self.dut.create_eal_parameters(socket=self.ports_socket, prefix='virtio', + vdevs=['virtio_user0,mac=00:01:02:03:04:05,path=./vhost-net,queues=1,%s' % + args["version"]]) + eal_param += " --single-file-segments" + command_line_user = "./%s/app/testpmd " % self.target + eal_param + " -- -i %s --nb-cores=2 --txd=1024 --rxd=1024" % \ + 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