[dpdk-dev] [PATCH v2] mbuf: reduce pktmbuf init cycles

Thomas Monjalon thomas at monjalon.net
Sat Jul 1 12:15:56 CEST 2017


30/06/2017 14:27, Olivier Matz:
> On Tue, 27 Jun 2017 17:27:51 +0530, Jerin Jacob <jerin.jacob at caviumnetworks.com> 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 <jerin.jacob at caviumnetworks.com>
> 
> Acked-by: Olivier Matz <olivier.matz at 6wind.com>

Applied, thanks



More information about the dev mailing list