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 E1A1CA0093; Tue, 19 May 2020 04:36:24 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 89D1E1D598; Tue, 19 May 2020 04:36:24 +0200 (CEST) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id DA27D1D590 for ; Tue, 19 May 2020 04:36:22 +0200 (CEST) IronPort-SDR: lStUcA+4jbgvKs0uYHFM5W5u5uU/xSgMeqpDlCshn04QPzskkJsYqJSIRDsu0mlmlv8NuGt/3E 6zSfOi/j6vng== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 May 2020 19:36:21 -0700 IronPort-SDR: Q8Hcp95aVoNEisJtLHlWwTUI/7n5dpviVRMEZo19JZ3N6xrbuYqR7kcnHGE50trKyxZjXejgaq MureLOtIMZ9A== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,408,1583222400"; d="scan'208";a="299966886" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by orsmga008.jf.intel.com with ESMTP; 18 May 2020 19:36:21 -0700 Received: from fmsmsx115.amr.corp.intel.com (10.18.116.19) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 18 May 2020 19:36:18 -0700 Received: from shsmsx152.ccr.corp.intel.com (10.239.6.52) by fmsmsx115.amr.corp.intel.com (10.18.116.19) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 18 May 2020 19:36:18 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.178]) by SHSMSX152.ccr.corp.intel.com ([169.254.6.177]) with mapi id 14.03.0439.000; Tue, 19 May 2020 10:36:15 +0800 From: "Tu, Lijuan" To: "Zhao, XinfengX" , "dts@dpdk.org" CC: "Zhao, XinfengX" Thread-Topic: [dts] [PATCH] tests: clean and reset the hugepages to fix cryptodev perf drop Thread-Index: AQHWKlpN+YrfdjRD20a+PopEM+6dE6iut86A Date: Tue, 19 May 2020 02:36:15 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BC3EE9A@SHSMSX101.ccr.corp.intel.com> References: <20200514183740.89731-1-xinfengx.zhao@intel.com> In-Reply-To: <20200514183740.89731-1-xinfengx.zhao@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] tests: clean and reset the hugepages to fix cryptodev perf drop 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 xinfengx > Sent: Friday, May 15, 2020 2:38 AM > To: dts@dpdk.org > Cc: Zhao, XinfengX > Subject: [dts] [PATCH] tests: clean and reset the hugepages to fix crypto= dev > perf drop >=20 > Signed-off-by: xinfengx > --- > tests/TestSuite_crypto_perf_cryptodev_perf.py | 5 +++++ > 1 file changed, 5 insertions(+) >=20 > diff --git a/tests/TestSuite_crypto_perf_cryptodev_perf.py > b/tests/TestSuite_crypto_perf_cryptodev_perf.py > index defb7c2..910c81a 100644 > --- a/tests/TestSuite_crypto_perf_cryptodev_perf.py > +++ b/tests/TestSuite_crypto_perf_cryptodev_perf.py > @@ -71,6 +71,11 @@ class PerfTestsCryptodev(TestCase): > } > self._app_path =3D "./x86_64-native-linuxapp-gcc/build/app/test-= crypto- > perf/dpdk-test-crypto-perf" >=20 > + page_size =3D self.dut.send_expect("awk '/Hugepagesize/ {print $= 2}' > /proc/meminfo", "# ") > + if int(page_size) =3D=3D 1024 * 1024: > + self.dut.send_expect('echo 0 > > /sys/kernel/mm/hugepages/hugepages-%skB/nr_hugepages' % (page_size), > '# ', 5) > + self.dut.send_expect('echo 16 > > /sys/kernel/mm/hugepages/hugepages-%skB/nr_hugepages' % (page_size), > '# ', 5) > + > if not cc.is_build_skip(self): > cc.build_dpdk_with_cryptodev(self) >=20 > -- > 2.17.1