From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH v2] mbuf: reduce pktmbuf init cycles Date: Sat, 01 Jul 2017 12:15:56 +0200 Message-ID: <3056703.Y1WxJnlvo4@xps> References: <20170605163807.31941-1-jerin.jacob@caviumnetworks.com> <20170627115751.4722-1-jerin.jacob@caviumnetworks.com> <20170630142751.148b6c1a@platinum> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org, Olivier Matz To: Jerin Jacob Return-path: Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by dpdk.org (Postfix) with ESMTP id 56CF72BE1 for ; Sat, 1 Jul 2017 12:15:59 +0200 (CEST) In-Reply-To: <20170630142751.148b6c1a@platinum> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 30/06/2017 14:27, Olivier Matz: > On Tue, 27 Jun 2017 17:27:51 +0530, Jerin Jacob wrote: > > There is no need for initializing the complete > > packet buffer with zero as the packet data area will be > > overwritten by the NIC Rx HW anyway. > > > > The testpmd configures the packet mempool > > with around 180k buffers with > > 2176B size. In existing scheme, the init routine > > needs to memset around ~370MB vs the proposed scheme > > requires only around ~22MB on 128B cache aligned system. > > > > Useful in running DPDK in HW simulators/emulators, > > where millions of cycles have an impact on boot time. > > > > Signed-off-by: Jerin Jacob > > Acked-by: Olivier Matz Applied, thanks