From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by dpdk.org (Postfix) with ESMTP id A2E6EA495 for ; Tue, 16 Jan 2018 03:54:42 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 15 Jan 2018 18:54:41 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.46,366,1511856000"; d="scan'208";a="195922859" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by fmsmga006.fm.intel.com with ESMTP; 15 Jan 2018 18:54:41 -0800 Received: from fmsmsx102.amr.corp.intel.com (10.18.124.200) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.319.2; Mon, 15 Jan 2018 18:54:41 -0800 Received: from shsmsx104.ccr.corp.intel.com (10.239.4.70) by FMSMSX102.amr.corp.intel.com (10.18.124.200) with Microsoft SMTP Server (TLS) id 14.3.319.2; Mon, 15 Jan 2018 18:54:41 -0800 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.189]) by SHSMSX104.ccr.corp.intel.com ([169.254.5.152]) with mapi id 14.03.0319.002; Tue, 16 Jan 2018 10:54:28 +0800 From: "Lu, Wenzhuo" To: "wei.guo.simon@gmail.com" CC: "dev@dpdk.org" , Thomas Monjalon Thread-Topic: [PATCH v5] app/testpmd: add option ring-bind-lcpu to bind Q with CPU Thread-Index: AQHTjm89HkWJB4gUBkOhOrdUx5Jg1qN1zaPg Date: Tue, 16 Jan 2018 02:54:28 +0000 Message-ID: <6A0DE07E22DDAD4C9103DF62FEBC09093B711018@shsmsx102.ccr.corp.intel.com> References: <6A0DE07E22DDAD4C9103DF62FEBC09093B7109A8@shsmsx102.ccr.corp.intel.com> <1515810914-18762-1-git-send-email-wei.guo.simon@gmail.com> In-Reply-To: <1515810914-18762-1-git-send-email-wei.guo.simon@gmail.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: 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: [dpdk-dev] [PATCH v5] app/testpmd: add option ring-bind-lcpu to bind Q with CPU X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Jan 2018 02:54:43 -0000 Hi, > -----Original Message----- > From: wei.guo.simon@gmail.com [mailto:wei.guo.simon@gmail.com] > Sent: Saturday, January 13, 2018 10:35 AM > To: Lu, Wenzhuo > Cc: dev@dpdk.org; Thomas Monjalon ; Simon Guo > > Subject: [PATCH v5] app/testpmd: add option ring-bind-lcpu to bind Q with > CPU >=20 > From: Simon Guo >=20 > Currently the rx/tx queue is allocated from the buffer pool on socket of: > - port's socket if --port-numa-config specified > - or ring-numa-config setting per port >=20 > All the above will "bind" queue to single socket per port configuration. > But it can actually archieve better performance if one port's queue can b= e > spread across multiple NUMA nodes, and the rx/tx queue is allocated per > lcpu socket. >=20 > This patch adds a new option "--ring-bind-lcpu"(no parameter). With this= , > testpmd can utilize the PCI-e bus bandwidth on another NUMA nodes. >=20 > When --port-numa-config or --ring-numa-config option is specified, this -= - > ring-bind-lcpu option will be suppressed. >=20 > Test result: > 64bytes package, running in PowerPC with Mellanox > CX-4 card, single port(100G), with 8 cores, fw mode: > - Without this patch: 52.5Mpps throughput > - With this patch: 66Mpps throughput > ~25% improvement >=20 > Signed-off-by: Simon Guo Acked-by: Wenzhuo Lu