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

Olivier Matz olivier.matz at 6wind.com
Fri Jun 30 14:27:51 CEST 2017


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>


More information about the dev mailing list