How do you calculate DPDK mempool requirements?
Stephen Hemminger
stephen at networkplumber.org
Tue Dec 6 17:24:57 CET 2022
On Tue, 6 Dec 2022 07:16:13 -0500
IraM <iramica at yahoo.com> wrote:
> Sent from my iPhone
>
> > On Dec 5, 2022, at 12:39, Dylan Baros <dcbaros at utexas.edu> wrote:
> >
> >
> >
> >
> > How do you figure out what settings need to be used to correctly configure a DPDK mempool for your application?
>
> I went to rough a similar exercise when I was playing around with packet ordering example.
>
> Here’s a rough formula I came up with.
> Comments are welcomed
>
> Total pool size = Sum of the following numbers
> -RX queue size x number of ports
> -TX queue size x number of ports
> -Size of ring x number of rings
> -MAX_pkt_burstsize x number of threads since each does a read of that size
>
>
>
Some drivers like Broadcom bnxt require multiple mbufs per rx descriptor.
And if you use jumbo frames and scatter/gather it gets a little more complex.
More information about the users
mailing list