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 D0F0BA0577; Wed, 15 Apr 2020 07:31:53 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id C7B4A1D150; Wed, 15 Apr 2020 07:31:53 +0200 (CEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id 1434C1D14A for ; Wed, 15 Apr 2020 07:31:51 +0200 (CEST) IronPort-SDR: VMfpd4Q4HcREi1OrSAIdDW9+imkJigql1yliRC4vTBco+lK2EAlqpsoOK0pFb/BRaxLGhUNc7J 5IrEarxdT2aA== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Apr 2020 22:31:51 -0700 IronPort-SDR: kBrv+y6G079xwubTMLTL1yAELTs5J2KmnKCr/TqsoIr3ahxW0D77H8WbKIO8fKT38p4v5kdUes IqIvH6YtIVKA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,385,1580803200"; d="scan'208";a="332396175" Received: from unknown (HELO dpdk-zhaohy-t.localdomain) ([10.240.183.68]) by orsmga001.jf.intel.com with ESMTP; 14 Apr 2020 22:31:49 -0700 From: "Jiang, YuX" To: dts@dpdk.org Cc: "Jiang, YuX" Date: Wed, 15 Apr 2020 13:24:25 +0800 Message-Id: <1586928265-382574-1-git-send-email-yux.jiang@intel.com> X-Mailer: git-send-email 1.8.3.1 Subject: [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" From: "Jiang, YuX" Add queue number for allocating enough streams according to the count of CPU cores Signed-off-by: Jiang, YuX --- tests/TestSuite_multiple_pthread.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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'] = [] - cmdline = './%s/app/testpmd --lcores="%s" -n 4 -- -i' % (self.target, lcores) + # Allocate enough streams based on the number of CPUs + if len(cpu_list) > 2: + queue_num = len(cpu_list) + cmdline = './%s/app/testpmd --lcores="%s" -n 4 -- -i --txq=%d --rxq=%d' % (self.target, lcores, queue_num, queue_num) + else: + cmdline = './%s/app/testpmd --lcores="%s" -n 4 -- -i' % (self.target, lcores) # start application self.dut.send_expect(cmdline, "testpmd", 60) @@ -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