DPDK patches and discussions
 help / color / mirror / Atom feed
From: "Burakov, Anatoly" <anatoly.burakov@intel.com>
To: liupan1234 <liupan1234@163.com>, "dev@dpdk.org" <dev@dpdk.org>
Subject: Re: [dpdk-dev] shared memory statistic
Date: Mon, 18 Dec 2017 11:27:03 +0000	[thread overview]
Message-ID: <0685d96e-1370-1d50-d47d-2208f8eadbad@intel.com> (raw)
In-Reply-To: <7accecd7.4d04.1605841acbf.Coremail.liupan1234@163.com>

On 15-Dec-17 3:39 AM, liupan1234 wrote:
> Hi all,
> 
> 
> I have an urgent question:
> 
> 
> 1) when an app runs, how to get the really memory it used in real time? for example, it use -m param to specify 1G memory, but it only used 500 MB, how to get this info
> 2) When several apps runs with shared memory: shm 0, is there any method to get the memory used info for each process?
> 
> 
> Thanks
> Pan
> 

For 1, i'm assuming you mean "how much of allocated memory is in use by 
DPDK". I don't think there is a unified API to do that, the closest you 
can get is check heap statistics (since all DPDK memory allocation is 
done through rte_malloc one way or another) and, check them against 
physical memory layout (available via rte_eal_get_physmem_layout()), 
which will give you a list of all memsegs DPDK currently has allocated.

For question 2, DPDK processes share all memory with each other, so 
there isn't any way to tell which process owns which memory.

-- 
Thanks,
Anatoly

      reply	other threads:[~2017-12-18 11:27 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-12-15  3:39 liupan1234
2017-12-18 11:27 ` Burakov, Anatoly [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=0685d96e-1370-1d50-d47d-2208f8eadbad@intel.com \
    --to=anatoly.burakov@intel.com \
    --cc=dev@dpdk.org \
    --cc=liupan1234@163.com \
    /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).