From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <wenzhuo.lu@intel.com>
Received: from mga04.intel.com (mga04.intel.com [192.55.52.120])
 by dpdk.org (Postfix) with ESMTP id 84C3E1B015
 for <dev@dpdk.org>; Mon, 15 Jan 2018 09:31:56 +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 fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;
 15 Jan 2018 00:31:55 -0800
X-ExtLoop1: 1
X-IronPort-AV: E=Sophos;i="5.46,362,1511856000"; d="scan'208";a="195521180"
Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201])
 by fmsmga006.fm.intel.com with ESMTP; 15 Jan 2018 00:31:55 -0800
Received: from fmsmsx112.amr.corp.intel.com (10.18.116.6) by
 FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS)
 id 14.3.319.2; Mon, 15 Jan 2018 00:31:55 -0800
Received: from shsmsx152.ccr.corp.intel.com (10.239.6.52) by
 FMSMSX112.amr.corp.intel.com (10.18.116.6) with Microsoft SMTP Server (TLS)
 id 14.3.319.2; Mon, 15 Jan 2018 00:31:54 -0800
Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.189]) by
 SHSMSX152.ccr.corp.intel.com ([169.254.6.93]) with mapi id 14.03.0319.002;
 Mon, 15 Jan 2018 16:31:53 +0800
From: "Lu, Wenzhuo" <wenzhuo.lu@intel.com>
To: "wei.guo.simon@gmail.com" <wei.guo.simon@gmail.com>
CC: "dev@dpdk.org" <dev@dpdk.org>
Thread-Topic: [PATCH v4] app/testpmd: add option ring-bind-lcpu to bind Q
 with CPU
Thread-Index: AQHTiekUdDeJdrTlCk+cEmrVdy1hBKN0ojKg
Date: Mon, 15 Jan 2018 08:31:52 +0000
Message-ID: <6A0DE07E22DDAD4C9103DF62FEBC09093B7109A8@shsmsx102.ccr.corp.intel.com>
References: <1515571177-24040-1-git-send-email-wei.guo.simon@gmail.com>
In-Reply-To: <1515571177-24040-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 v4] 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 <dev.dpdk.org>
List-Unsubscribe: <https://dpdk.org/ml/options/dev>,
 <mailto:dev-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://dpdk.org/ml/archives/dev/>
List-Post: <mailto:dev@dpdk.org>
List-Help: <mailto:dev-request@dpdk.org?subject=help>
List-Subscribe: <https://dpdk.org/ml/listinfo/dev>,
 <mailto:dev-request@dpdk.org?subject=subscribe>
X-List-Received-Date: Mon, 15 Jan 2018 08:31:56 -0000

Hi Simon,


> -----Original Message-----
> From: wei.guo.simon@gmail.com [mailto:wei.guo.simon@gmail.com]
> Sent: Wednesday, January 10, 2018 4:00 PM
> To: Lu, Wenzhuo <wenzhuo.lu@intel.com>
> Cc: dev@dpdk.org; Simon Guo <wei.guo.simon@gmail.com>
> Subject: [PATCH v4] app/testpmd: add option ring-bind-lcpu to bind Q with
> CPU
>=20
> From: Simon Guo <wei.guo.simon@gmail.com>
>=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 <wei.guo.simon@gmail.com>
This patch is fine. But for the new parameter, please update this doc, run_=
app.rst. Thanks.