DPDK patches and discussions
 help / color / mirror / Atom feed
* [DPDK] heap memory fragmentation issue
@ 2023-04-12  8:44 wuchangsheng (C)
  2023-04-18 21:35 ` Dmitry Kozlyuk
  0 siblings, 1 reply; 4+ messages in thread
From: wuchangsheng (C) @ 2023-04-12  8:44 UTC (permalink / raw)
  To: anatoly.burakov
  Cc: dev, jiangheng (G), Yanan (Euler), Suweifeng (Weifeng, EulerOS)

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

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?

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

^ permalink raw reply	[flat|nested] 4+ messages in thread
* [DPDK] heap memory fragmentation issue
@ 2023-04-18  2:48 wuchangsheng (C)
  0 siblings, 0 replies; 4+ messages in thread
From: wuchangsheng (C) @ 2023-04-18  2:48 UTC (permalink / raw)
  To: anatoly.burakov
  Cc: dev, jiangheng (G), Yanan (Euler), Suweifeng (Weifeng, EulerOS)

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

ping



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?

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

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

end of thread, other threads:[~2023-04-18 22:43 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-12  8:44 [DPDK] heap memory fragmentation issue wuchangsheng (C)
2023-04-18 21:35 ` Dmitry Kozlyuk
2023-04-18 22:43   ` Stephen Hemminger
2023-04-18  2:48 wuchangsheng (C)

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).