[dpdk-dev] Memory footprint of a PMD

Burakov, Anatoly anatoly.burakov at intel.com
Fri May 3 12:02:15 CEST 2019

On 03-May-19 10:37 AM, P Smith wrote:
> Hi,     Given that a dpdk driver uses rte_malloc_xx() and friends to allocate/free its memory what is the best way to find out the runtime memory footprint of a PMD ? One can use 'malloc_info' to dump the malloc output in case of general 'malloc' ...but what is the way here since it's all hugepages ? How to know the memory /footprint of my testpmd /application at different points during run-time?Is there a tool or some API i can invoke to find out the same?
> Thanks P

I don't think there is a way to do this currently, other than tracing 
all PMD's allocations.

That said, there is an API to find total usage of DPDK memory - look int 
rte_malloc_heap_stats related API's.


More information about the dev mailing list