[dpdk-dev] [PATCH v4 1/7] ethdev: allocate max space for internal queue array
Ananyev, Konstantin
konstantin.ananyev at intel.com
Tue Oct 5 18:45:19 CEST 2021
> > At queue configure stage always allocate space for maximum possible
> > number (RTE_MAX_QUEUES_PER_PORT) of queue pointers.
> > That will allow 'fast' inline functions (eth_rx_burst, etc.) to refer
> > pointer to internal queue data without extra checking of current number
> > of configured queues.
>
> What is the memory usage overhead per port?
(2*sizeof(uintptr_t))* RTE_MAX_QUEUES_PER_PORT
With RTE_MAX_QUEUES_PER_PORT==1024 (default value) it is 16KB per port.
> We should consider cases with thousand of virtual ports.
For 1K ports (with 1K queues each) it will be 16MB.
More information about the dev
mailing list