DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] shared memory statistic
@ 2017-12-15  3:39 liupan1234
  2017-12-18 11:27 ` Burakov, Anatoly
  0 siblings, 1 reply; 2+ messages in thread
From: liupan1234 @ 2017-12-15  3:39 UTC (permalink / raw)
  To: dev

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=GBK, Size: 557 bytes --]

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\x16º&%ê✖œ¡²¨–V§ºI\x1a­©Üjø®™Ê&\x16¸ƒyÍyÓŽ5ç]´×´^¶êç=«a%ê✖œ¡²¨–V§ºI\x1a­©Üjø®™Ê&Eç\x1eŠ÷~º&4\x034Ü#µ¡·¨ºÖèºwi®‹^rبž‹­–Š$r‰¦j)\£YÚ›MèŸM8ê‹­n‹§všèµç-Š‰èºÙh¢G(›]8ã¾4ã¦òv—d¢¸\x0f¢Ë_‹\x1c"¶\x11\x1213âwß<ôWè­×¯v—d¢¸\x05®-y\rç6Ó^ôãyÓí5Ó@„L2ˆ1( «n­ë

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

* Re: [dpdk-dev] shared memory statistic
  2017-12-15  3:39 [dpdk-dev] shared memory statistic liupan1234
@ 2017-12-18 11:27 ` Burakov, Anatoly
  0 siblings, 0 replies; 2+ messages in thread
From: Burakov, Anatoly @ 2017-12-18 11:27 UTC (permalink / raw)
  To: liupan1234, dev

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

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

end of thread, other threads:[~2017-12-18 11:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-12-15  3:39 [dpdk-dev] shared memory statistic liupan1234
2017-12-18 11:27 ` Burakov, Anatoly

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