From: "Wiles, Keith" <keith.wiles@intel.com>
To: Avinash Chaurasia <avinash.aviank2003@gmail.com>
Cc: users <users@dpdk.org>, "Burakov, Anatoly" <anatoly.burakov@intel.com>
Subject: Re: [dpdk-users] Memory allocation in dpdk
Date: Tue, 23 Oct 2018 15:28:56 +0000 [thread overview]
Message-ID: <53783C98-0AC0-4C3B-806E-5DD4CBF6E268@intel.com> (raw)
In-Reply-To: <CAOcaUXo3Js-Kbk1isiC6PWO10qBOA97=B5Y7Nk=bg4-eBzHceQ@mail.gmail.com>
> 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
prev parent reply other threads:[~2018-10-23 15:29 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-10-23 8:44 Avinash Chaurasia
2018-10-23 15:28 ` Wiles, Keith [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=53783C98-0AC0-4C3B-806E-5DD4CBF6E268@intel.com \
--to=keith.wiles@intel.com \
--cc=anatoly.burakov@intel.com \
--cc=avinash.aviank2003@gmail.com \
--cc=users@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).