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 BBD68A034F; Fri, 15 May 2020 04:11:37 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 817781D9C6; Fri, 15 May 2020 04:11:37 +0200 (CEST) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id 3DB701D9C4 for ; Fri, 15 May 2020 04:11:36 +0200 (CEST) IronPort-SDR: O39EOtv4VzZJEIelIkqjXn4vuGLOzqguPi/2n9okfWD2rr6kstBwkk0XNtF5x1vgWwKjJmx86j 5FuVZ4jS2jtw== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 May 2020 19:11:35 -0700 IronPort-SDR: p7sYJluS0Ow8AsQiOh7DPuo0l2Mh+HHnfoltApu7ducELMCh+4vLmf9VnmaQp7+H8P92Urtr7l L7gVG3u2g6ew== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,393,1583222400"; d="scan'208";a="298903686" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by orsmga008.jf.intel.com with ESMTP; 14 May 2020 19:11:34 -0700 Received: from shsmsx605.ccr.corp.intel.com (10.109.6.215) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 14 May 2020 19:11:34 -0700 Received: from shsmsx602.ccr.corp.intel.com (10.109.6.142) 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; Fri, 15 May 2020 10:11:32 +0800 Received: from shsmsx602.ccr.corp.intel.com ([10.109.6.142]) by SHSMSX602.ccr.corp.intel.com ([10.109.6.142]) with mapi id 15.01.1713.004; Fri, 15 May 2020 10:11:32 +0800 From: "Zhao, XinfengX" To: "dts@dpdk.org" Thread-Topic: [dts][PATCH] tests: clean and reset the hugepages to fix cryptodev perf drop Thread-Index: AQHWKlo+iE29jsRal02L1hk2Pvvmx6ioZ2Ew Date: Fri, 15 May 2020 02:11:32 +0000 Message-ID: <6f6251c62b174bd585fda2968b40659a@intel.com> References: <20200514183740.89731-1-xinfengx.zhao@intel.com> In-Reply-To: <20200514183740.89731-1-xinfengx.zhao@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] 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" Tested-by: Zhao, Xinfeng -----Original Message----- From: Zhao, XinfengX=20 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 cryptodev= perf drop Signed-off-by: xinfengx --- tests/TestSuite_crypto_perf_cryptodev_perf.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/TestSuite_crypto_perf_cryptodev_perf.py b/tests/TestSuit= e_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-cr= ypto-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/hugepa= ges-%skB/nr_hugepages' % (page_size), '# ', 5) + self.dut.send_expect('echo 16 > /sys/kernel/mm/hugepages/hugep= ages-%skB/nr_hugepages' % (page_size), '# ', 5) + if not cc.is_build_skip(self): cc.build_dpdk_with_cryptodev(self) =20 --=20 2.17.1