From mboxrd@z Thu Jan 1 00:00:00 1970 From: Olivier Matz Subject: Re: [PATCH v2] mbuf: reduce pktmbuf init cycles Date: Fri, 30 Jun 2017 14:27:51 +0200 Message-ID: <20170630142751.148b6c1a@platinum> References: <20170605163807.31941-1-jerin.jacob@caviumnetworks.com> <20170627115751.4722-1-jerin.jacob@caviumnetworks.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: dev@dpdk.org To: Jerin Jacob Return-path: Received: from mail-wr0-f176.google.com (mail-wr0-f176.google.com [209.85.128.176]) by dpdk.org (Postfix) with ESMTP id 608B15323 for ; Fri, 30 Jun 2017 14:27:54 +0200 (CEST) Received: by mail-wr0-f176.google.com with SMTP id k67so202963256wrc.2 for ; Fri, 30 Jun 2017 05:27:54 -0700 (PDT) In-Reply-To: <20170627115751.4722-1-jerin.jacob@caviumnetworks.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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