DPDK usage discussions
 help / color / mirror / Atom feed
* How to increase mbuf size in dpdk version 17.11
@ 2022-03-01 18:34 Lombardo, Ed
  2022-03-01 19:56 ` Stephen Hemminger
  0 siblings, 1 reply; 13+ messages in thread
From: Lombardo, Ed @ 2022-03-01 18:34 UTC (permalink / raw)
  To: users

[-- Attachment #1: Type: text/plain, Size: 851 bytes --]

Hi,
I have an application built with dpdk 17.11.
During initialization I want to change the mbuf size from 2K to 16K.
I want to receive packet sizes of 8K or more in one mbuf.

The VM running the application is configured to have 2G hugepages.

I tried many things and I get an error when a packet arrives.

I read online that there is #define DEFAULT_MBUF_DATA_SIZE that I changed from 2176 to ((2048*8)+128), where 128 is for headroom.
The call to rte_pktmbuf_pool_create() returns success with my changes.
From the rte_mempool_dump() - "rx_nombuf" - Total number of Rx mbuf allocation failures.  This value increments each time a packet arrives.

Is there any reference document explaining what causes this error?
Is there a user guide I should follow to make the mbuf size change, starting with the hugepage value?

Thanks,
Ed


[-- Attachment #2: Type: text/html, Size: 3016 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2022-03-02 14:47 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-01 18:34 How to increase mbuf size in dpdk version 17.11 Lombardo, Ed
2022-03-01 19:56 ` Stephen Hemminger
2022-03-01 21:30   ` Lombardo, Ed
2022-03-01 21:37     ` Cliff Burdick
2022-03-01 22:46       ` Stephen Hemminger
2022-03-02  1:37         ` Lombardo, Ed
2022-03-02  3:45           ` Cliff Burdick
2022-03-02  3:50             ` Lombardo, Ed
2022-03-02  3:56               ` Cliff Burdick
2022-03-02  4:40                 ` Stephen Hemminger
2022-03-02  5:48                   ` Lombardo, Ed
2022-03-02 14:47                     ` Cliff Burdick
2022-03-02 14:20                 ` Lombardo, Ed

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).