[dpdk-dev] Memory allocation in libraries
Morten Brørup
mb at smartsharesystems.com
Wed Oct 9 10:13:07 CEST 2019
Hi all,
I just noticed an inconsistency in the use of memory allocation:
Some libraries allocate their data structures using the rte_memzone library,
e.g. the rte_ring library:
http://code.dpdk.org/dpdk/latest/source/lib/librte_ring/rte_ring.c#L163
And some libraries allocate their data structures using the rte_malloc library,
e.g. the rte_hash library:
http://code.dpdk.org/dpdk/latest/source/lib/librte_hash/rte_cuckoo_hash.c#L273
These are data structures being used in the data plane,
so I would like to know if this was given any deeper thoughts,
and if there are any performance differences.
Med venlig hilsen / kind regards
- Morten Brørup
More information about the dev
mailing list