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 48C47A0561; Mon, 20 Apr 2020 07:22:04 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 2C5651D14C; Mon, 20 Apr 2020 07:22:04 +0200 (CEST) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by dpdk.org (Postfix) with ESMTP id 5DD981C219 for ; Mon, 20 Apr 2020 07:22:02 +0200 (CEST) IronPort-SDR: MxGmo0xlaLeKiYURXh0d2zK3jknQE5+5IpQgPWFMyXhh3q/f+pA8aRsYk/r28iF/iAZrxvSPzq KVoO69BTao3Q== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Apr 2020 22:22:01 -0700 IronPort-SDR: PyDA7N2pOdARfTCbU0a3C5PLon7L0qK/JvSi/px6AgVV6+sKAbUBjmtWmolsvXDMixYHdgQBn9 5Ja6UfPw2GlA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,405,1580803200"; d="scan'208";a="288347331" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by orsmga008.jf.intel.com with ESMTP; 19 Apr 2020 22:22:00 -0700 Received: from fmsmsx604.amr.corp.intel.com (10.18.126.84) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.439.0; Sun, 19 Apr 2020 22:22:00 -0700 Received: from fmsmsx604.amr.corp.intel.com (10.18.126.84) by fmsmsx604.amr.corp.intel.com (10.18.126.84) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Sun, 19 Apr 2020 22:21:57 -0700 Received: from shsmsx106.ccr.corp.intel.com (10.239.4.159) by fmsmsx604.amr.corp.intel.com (10.18.126.84) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.1713.5 via Frontend Transport; Sun, 19 Apr 2020 22:21:56 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.129]) by SHSMSX106.ccr.corp.intel.com ([169.254.10.89]) with mapi id 14.03.0439.000; Mon, 20 Apr 2020 13:21:55 +0800 From: "Tu, Lijuan" To: "Jiang, YuX" , "dts@dpdk.org" CC: "Jiang, YuX" Thread-Topic: [dts] [PATCH V1] tests/TestSuite_multiple_pthread: Allocate enough streams based on the number of CPU cores Thread-Index: AQHWEuc2BQhLUvs63kijosSpZjuYPqiBgV4A Date: Mon, 20 Apr 2020 05:21:54 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BC0D293@SHSMSX101.ccr.corp.intel.com> References: <1586928265-382574-1-git-send-email-yux.jiang@intel.com> In-Reply-To: <1586928265-382574-1-git-send-email-yux.jiang@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 V1] tests/TestSuite_multiple_pthread: Allocate enough streams based on the number of CPU cores 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 Jiang, YuX > Sent: Wednesday, April 15, 2020 1:24 PM > To: dts@dpdk.org > Cc: Jiang, YuX > Subject: [dts] [PATCH V1] tests/TestSuite_multiple_pthread: Allocate enou= gh > streams based on the number of CPU cores >=20 > From: "Jiang, YuX" >=20 > Add queue number for allocating enough streams according to the count of > CPU cores >=20 > Signed-off-by: Jiang, YuX > --- > tests/TestSuite_multiple_pthread.py | 9 +++++++-- > 1 file changed, 7 insertions(+), 2 deletions(-) >=20 > diff --git a/tests/TestSuite_multiple_pthread.py > b/tests/TestSuite_multiple_pthread.py > index fb55de2..8825628 100644 > --- a/tests/TestSuite_multiple_pthread.py > +++ b/tests/TestSuite_multiple_pthread.py > @@ -124,7 +124,12 @@ class TestMultiplePthread(TestCase): > self.result_table_create(header_row) > self.out_view['data'] =3D [] >=20 > - cmdline =3D './%s/app/testpmd --lcores=3D"%s" -n 4 -- -i' % (sel= f.target, > lcores) > + # Allocate enough streams based on the number of CPUs > + if len(cpu_list) > 2: > + queue_num =3D len(cpu_list) > + cmdline =3D './%s/app/testpmd --lcores=3D"%s" -n 4 -- -i --t= xq=3D%d -- > rxq=3D%d' % (self.target, lcores, queue_num, queue_num) > + else: > + cmdline =3D './%s/app/testpmd --lcores=3D"%s" -n 4 -- -i' % = (self.target, > lcores) > # start application > self.dut.send_expect(cmdline, "testpmd", 60) >=20 > @@ -178,7 +183,7 @@ class TestMultiplePthread(TestCase): > "cpu_list":n[2:4], > "core_list":n[4:]}, > {"lcores": "(%s,%s,%s,%s)@(%s,%s)" % (n[0], n[1], n= [2], n[3], n[4], > n[5]), > - "cpu_list":n[1:3], > + "cpu_list":n[1:4], > "core_list":n[4:6]}, > {"lcores": "%s,(%s,%s,%s)@%s" % (n[0], n[1], n[2], = n[3], n[4]), > "cpu_list":n[1:4], > -- > 2.7.4