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 DA321A058A; Fri, 17 Apr 2020 11:04:57 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id CCD021DEAB; Fri, 17 Apr 2020 11:04:57 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by dpdk.org (Postfix) with ESMTP id 794461D67B for ; Fri, 17 Apr 2020 11:04:56 +0200 (CEST) IronPort-SDR: cWyg4jr6ip1i+1JG2H5grkGoSiPJuex3lmziemhMgBBvIWCKcIORPQPKebYJbVvHYJwHkr9mMU Hj5AOpetqBGw== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Apr 2020 02:04:55 -0700 IronPort-SDR: dodUvMR+TsYmh2K0q0IBMvV2yefaAwgSkIYCAb0iHWxGcSkduWLi0pBY9VYLawO4ZbfgirOv9V Tp4ca5o1emUQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,394,1580803200"; d="scan'208";a="400969547" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by orsmga004.jf.intel.com with ESMTP; 17 Apr 2020 02:04:55 -0700 Received: from fmsmsx120.amr.corp.intel.com (10.18.124.208) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.439.0; Fri, 17 Apr 2020 02:04:55 -0700 Received: from shsmsx153.ccr.corp.intel.com (10.239.6.53) by fmsmsx120.amr.corp.intel.com (10.18.124.208) with Microsoft SMTP Server (TLS) id 14.3.439.0; Fri, 17 Apr 2020 02:04:54 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.129]) by SHSMSX153.ccr.corp.intel.com ([169.254.12.89]) with mapi id 14.03.0439.000; Fri, 17 Apr 2020 17:04:52 +0800 From: "Tu, Lijuan" To: "Xiao, QimaiX" , "dts@dpdk.org" CC: "Xiao, QimaiX" Thread-Topic: [dts] [PATCH V1]vhost_dequeue_zero_copy: add --single-file-segments param for 2M ENV Thread-Index: AQHWDL3TQw2r9ySDvUO4svEcYeV5lqh9FQBA Date: Fri, 17 Apr 2020 09:04:52 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BC0BEA4@SHSMSX101.ccr.corp.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: 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]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" Applied, thanks > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Xiao Qimai > 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