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 41506A0093; Tue, 19 May 2020 04:20:25 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 31B591D52C; Tue, 19 May 2020 04:20:25 +0200 (CEST) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by dpdk.org (Postfix) with ESMTP id 4C8E81D515 for ; Tue, 19 May 2020 04:20:23 +0200 (CEST) IronPort-SDR: qDxO/MNgU1Cit9Rs27c1jHX7DI/wEeqT3JU1kFufUkzuOk0Rr0+LaPv4gEaUOORR3inM1/JIS4 bOt66+zgplZA== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 May 2020 19:20:22 -0700 IronPort-SDR: s8YXfRFw7fWjWOAN1U2IrhwUUV5Xalwc6bZTTMaIHBczjiXw98+MUF16iXNF+S61D4eZ4u9nRO YLavKTmMzIyw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,408,1583222400"; d="scan'208";a="288794037" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by fmsmga004.fm.intel.com with ESMTP; 18 May 2020 19:20:22 -0700 Received: from shsmsx603.ccr.corp.intel.com (10.109.6.143) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 18 May 2020 19:20:22 -0700 Received: from shsmsx602.ccr.corp.intel.com (10.109.6.142) by SHSMSX603.ccr.corp.intel.com (10.109.6.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Tue, 19 May 2020 10:20:19 +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; Tue, 19 May 2020 10:20:19 +0800 From: "Zhao, XinfengX" To: "Tu, Lijuan" , "dts@dpdk.org" Thread-Topic: [dts] [PATCH] tests: clean and reset the hugepages to fix cryptodev perf drop Thread-Index: AQHWLYBGoyLoT0F9GkyfHzgrQeGJyKiupyqg Date: Tue, 19 May 2020 02:20:19 +0000 Message-ID: References: <20200514183740.89731-1-xinfengx.zhao@intel.com> <8CE3E05A3F976642AAB0F4675D0AD20E0BC3ED4D@SHSMSX101.ccr.corp.intel.com> In-Reply-To: <8CE3E05A3F976642AAB0F4675D0AD20E0BC3ED4D@SHSMSX101.ccr.corp.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" There is enough hugepage left, but the perf of scheduler+qat dropped. and add this action, the issue disappeared. -----Original Message----- From: Tu, Lijuan=20 Sent: Tuesday, May 19, 2020 9:53 AM To: Zhao, XinfengX ; dts@dpdk.org Cc: Zhao, XinfengX Subject: RE: [dts] [PATCH] tests: clean and reset the hugepages to fix cryp= todev perf drop 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=20 > cryptodev 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=20 > "./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),=20 > '# ', 5) > + self.dut.send_expect('echo 16 > > /sys/kernel/mm/hugepages/hugepages-%skB/nr_hugepages' % (page_size),=20 > '# ', 5) > + > if not cc.is_build_skip(self): > cc.build_dpdk_with_cryptodev(self) >=20 > -- > 2.17.1