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 6E66CA0093; Tue, 19 May 2020 03:53:53 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 329871D54F; Tue, 19 May 2020 03:53:53 +0200 (CEST) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 6B64C1D515 for ; Tue, 19 May 2020 03:53:50 +0200 (CEST) IronPort-SDR: r9A2SsiCBqu5BkKIqsqOpyuXO3YBEUwcIQV3DimzssmRjrJEklWIlt/u2I+fOemE6N2XJp9yFg 4o3XLrQLE8Ng== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 May 2020 18:53:50 -0700 IronPort-SDR: SIpkXzCaHni4CRQm861GRC21BDD+5qfB75g/o3/vYhXuAIrN79P4a40MbNWcda8lxf3aGnPaBb g8MAJgqwGFgw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,408,1583222400"; d="scan'208";a="282170971" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by orsmga002.jf.intel.com with ESMTP; 18 May 2020 18:53:49 -0700 Received: from fmsmsx114.amr.corp.intel.com (10.18.116.8) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 18 May 2020 18:53:23 -0700 Received: from shsmsx107.ccr.corp.intel.com (10.239.4.96) by FMSMSX114.amr.corp.intel.com (10.18.116.8) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 18 May 2020 18:53:23 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.178]) by SHSMSX107.ccr.corp.intel.com ([169.254.9.110]) with mapi id 14.03.0439.000; Tue, 19 May 2020 09:53:21 +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+6dE6iuq1cQ Date: Tue, 19 May 2020 01:53:19 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BC3ED4D@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" Why do you add this? Is there anyone occupied many hugepages and don't rele= ase them? > -----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