DPDK usage discussions
 help / color / mirror / Atom feed
* [dpdk-users] Memory allocation in dpdk
@ 2018-10-23  8:44 Avinash Chaurasia
  2018-10-23 15:28 ` Wiles, Keith
  0 siblings, 1 reply; 2+ messages in thread
From: Avinash Chaurasia @ 2018-10-23  8:44 UTC (permalink / raw)
  To: users

Hello,
I am trying to understand how dpdk allocate memory. I tried digging code to
understand memory allocation of DPDK. So far I understood that memory is
allocated from a heap that dpdk maintains. However, this heap must be
allocated at some place. I failed to traceback any function (called from
heap_alloc()) that calls mmap to allocate memory. Please let me know when
this heap is created, which function call does that.
Thanks
Avinash Kumar Chaurasia

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

* Re: [dpdk-users] Memory allocation in dpdk
  2018-10-23  8:44 [dpdk-users] Memory allocation in dpdk Avinash Chaurasia
@ 2018-10-23 15:28 ` Wiles, Keith
  0 siblings, 0 replies; 2+ messages in thread
From: Wiles, Keith @ 2018-10-23 15:28 UTC (permalink / raw)
  To: Avinash Chaurasia; +Cc: users, Burakov, Anatoly



> On Oct 23, 2018, at 1:44 AM, Avinash Chaurasia <avinash.aviank2003@gmail.com> wrote:
> 
> Hello,
> I am trying to understand how dpdk allocate memory. I tried digging code to
> understand memory allocation of DPDK. So far I understood that memory is
> allocated from a heap that dpdk maintains. However, this heap must be
> allocated at some place. I failed to traceback any function (called from
> heap_alloc()) that calls mmap to allocate memory. Please let me know when
> this heap is created, which function call does that.

Memory allocation is tricky in DPDK, but are you talking about rte_malloc or rte_mempool allocagtion. Each h has a different way to get memory. Look at the rte_memzone code it does the lowest level allocation of memory and use huge pages. Also look at the email list for patches submitted by Anatoly Burakov he just re-wrote the memory system and has some good explanations in the patches an in the docs for DPDK.

> Thanks
> Avinash Kumar Chaurasia

Regards,
Keith

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

end of thread, other threads:[~2018-10-23 15:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-23  8:44 [dpdk-users] Memory allocation in dpdk Avinash Chaurasia
2018-10-23 15:28 ` Wiles, Keith

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