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 29A43A034F; Fri, 15 May 2020 03:43:30 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 1FFC61D9B9; Fri, 15 May 2020 03:43:30 +0200 (CEST) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id B16F01D9B6 for ; Fri, 15 May 2020 03:43:28 +0200 (CEST) IronPort-SDR: qzlAy7wyDmLF8XWGmb2O7cTumWt+8t2ZfGtoxGVM46qIXa6Cfcd1qQWQzmjmA+0gWEa8dNMKHX gx95PoqrxW3w== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 May 2020 18:43:27 -0700 IronPort-SDR: Rp9TuEU0KUpZQMhEOqlQEazY7a3YsFvz7ESzkPGLlf+QBvOKUAXGzlq0MhliCmfyPrpXczUNdG kyk9svDQOkbQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,393,1583222400"; d="scan'208";a="266443562" Received: from unknown (HELO dpdk-xinfengx-dut.sh.intel.com) ([10.67.117.16]) by orsmga006.jf.intel.com with ESMTP; 14 May 2020 18:43:26 -0700 From: xinfengx To: dts@dpdk.org Cc: xinfengx Date: Fri, 15 May 2020 02:37:40 +0800 Message-Id: <20200514183740.89731-1-xinfengx.zhao@intel.com> X-Mailer: git-send-email 2.17.1 Subject: [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" 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/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 = "./x86_64-native-linuxapp-gcc/build/app/test-crypto-perf/dpdk-test-crypto-perf" + page_size = self.dut.send_expect("awk '/Hugepagesize/ {print $2}' /proc/meminfo", "# ") + if int(page_size) == 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) -- 2.17.1