[DPDK] heap memory fragmentation issue
wuchangsheng (C)
wuchangsheng2 at huawei.com
Wed Apr 12 10:44:14 CEST 2023
Hello:
When using rte_malloc and rte_free to request and release memory repeatedly, the usage of large pages gradually increases.
Checking the relevant source code shows that memory requests and releases are started from the head of the freelist chain list of the heap. Memory fragmentation seems to result from this, which is considered because the memory recently released may be in the cache, and requesting this memory at the time of allocation may achieve higher performance?
How does the community consider the heap's memory fragmentation issue? Is there a future plan for memory fragmentation optimization?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mails.dpdk.org/archives/dev/attachments/20230412/ce657d58/attachment.htm>
More information about the dev
mailing list