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 8734CA0577; Tue, 7 Apr 2020 11:20:48 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 746961BE8E; Tue, 7 Apr 2020 11:20:48 +0200 (CEST) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 77FA32BD8 for ; Tue, 7 Apr 2020 11:20:46 +0200 (CEST) IronPort-SDR: xz1uZS76joKrYbRpR/x+xnTDakO2JzlxrZTlycEGaPs3MTsh6BkkrKCOpR+cUYygYuDMhJKPv8 hBjctAD0REDw== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Apr 2020 02:20:45 -0700 IronPort-SDR: v6C2K9nxdbUkLrApMmj6HideE5zCfpnWAaikaYWn4tN0sQ0cyaChX4KUVXcOT1gUhUfol+SnRw f1FhmoSpZ75A== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,353,1580803200"; d="scan'208";a="397795000" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by orsmga004.jf.intel.com with ESMTP; 07 Apr 2020 02:20:45 -0700 Received: from shsmsx605.ccr.corp.intel.com (10.109.6.215) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 7 Apr 2020 02:20:44 -0700 Received: from shsmsx604.ccr.corp.intel.com (10.109.6.214) by SHSMSX605.ccr.corp.intel.com (10.109.6.215) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Tue, 7 Apr 2020 17:20:42 +0800 Received: from shsmsx604.ccr.corp.intel.com ([10.109.6.214]) by SHSMSX604.ccr.corp.intel.com ([10.109.6.214]) with mapi id 15.01.1713.004; Tue, 7 Apr 2020 17:20:42 +0800 From: "Xiao, QimaiX" To: "dts@dpdk.org" Thread-Topic: [dts][PATCH V1]vhost_dequeue_zero_copy: add --single-file-segments param for 2M ENV Thread-Index: AQHWDL3HmBQzof6YwECXYhgwpGkktahtYh9Q Date: Tue, 7 Apr 2020 09:20:42 +0000 Message-ID: <787e124dcdf14d01b6a8219233250dda@intel.com> References: <1586250880-330597-1-git-send-email-qimaix.xiao@intel.com> In-Reply-To: <1586250880-330597-1-git-send-email-qimaix.xiao@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.36] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dts] [PATCH V1]vhost_dequeue_zero_copy: add --single-file-segments param for 2M ENV 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" Tested-by: Xiao, QimaiX Regards, Xiao Qimai > -----Original Message----- > From: Xiao, QimaiX > Sent: Tuesday, April 7, 2020 5:15 PM > To: dts@dpdk.org > Cc: Xiao, QimaiX > Subject: [dts][PATCH V1]vhost_dequeue_zero_copy: add --single-file- > segments param for 2M ENV >=20 > Signed-off-by: Xiao Qimai > --- > tests/TestSuite_vhost_dequeue_zero_copy.py | 7 +++++++ > 1 file changed, 7 insertions(+) >=20 > diff --git a/tests/TestSuite_vhost_dequeue_zero_copy.py > b/tests/TestSuite_vhost_dequeue_zero_copy.py > index f426fe3..e13e385 100644 > --- a/tests/TestSuite_vhost_dequeue_zero_copy.py > +++ b/tests/TestSuite_vhost_dequeue_zero_copy.py > @@ -91,6 +91,11 @@ class TestVhostDequeueZeroCopy(TestCase): > self.vm_dut =3D None > self.big_pkt_record =3D {} >=20 > + @property > + def check_2M_env(self): > + out =3D self.dut.send_expect("cat /proc/meminfo |grep > Hugepagesize|awk '{print($2)}'", "# ") > + return True if out =3D=3D '2048' else False > + > def get_core_list(self): > """ > check whether the server has enough cores to run case @@ -150,6 > +155,8 @@ class TestVhostDequeueZeroCopy(TestCase): > para =3D " -- -i --tx-offloads=3D0x0 --nb-cores=3D%d --txd=3D102= 4 --rxd=3D1024" % > self.nb_cores > eal_params =3D > self.dut.create_eal_parameters(cores=3Dcore_list[len(self.core_list):], > prefix=3D'virtio', no_pci=3DTrue) > + if self.check_2M_env: > + eal_params +=3D " --single-file-segments" > command_line =3D testcmd + eal_params + vdev + para > self.virtio_user.send_expect(command_line, 'testpmd> ', 120) > self.virtio_user.send_expect('set fwd mac', 'testpmd> ', 120) > -- > 1.8.3.1