DPDK usage discussions
 help / color / mirror / Atom feed
* [dpdk-users] DPDK Memory in GDB
@ 2017-10-03  9:41 Kumaraparameshwaran Rathnavel
  2017-10-03 15:49 ` Stephen Hemminger
  0 siblings, 1 reply; 2+ messages in thread
From: Kumaraparameshwaran Rathnavel @ 2017-10-03  9:41 UTC (permalink / raw)
  To: users

Hi All,

We have been using the mempool of the DPDK for our application. Whenever there is a core dump and if I try to print the contents of the pointer allocated from rte_malloc gdb is throwing an error saying cannot access the memory at address. During run time this is working fine . This happens only when examining a core. I replaced rte_mallloc with malloc and in this case I am able to print the contents of the pointer. I have built DPDK with -g option. Am I doing anything wrong here?

Thanking You,
Param.

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

* Re: [dpdk-users] DPDK Memory in GDB
  2017-10-03  9:41 [dpdk-users] DPDK Memory in GDB Kumaraparameshwaran Rathnavel
@ 2017-10-03 15:49 ` Stephen Hemminger
  0 siblings, 0 replies; 2+ messages in thread
From: Stephen Hemminger @ 2017-10-03 15:49 UTC (permalink / raw)
  To: Kumaraparameshwaran Rathnavel; +Cc: users

On Tue, 3 Oct 2017 15:11:32 +0530
Kumaraparameshwaran Rathnavel <krath@cloudsimple.com> wrote:

> Hi All,
> 
> We have been using the mempool of the DPDK for our application. Whenever there is a core dump and if I try to print the contents of the pointer allocated from rte_malloc gdb is throwing an error saying cannot access the memory at address. During run time this is working fine . This happens only when examining a core. I replaced rte_mallloc with malloc and in this case I am able to print the contents of the pointer. I have built DPDK with -g option. Am I doing anything wrong here?
> 
> Thanking You,
> Param.

That is probably intentional. Core dumps don't dump huge page memory (to save space). A 16G core file would not work well.
Also hugepages are shared between multiple processes.

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

end of thread, other threads:[~2017-10-03 15:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-03  9:41 [dpdk-users] DPDK Memory in GDB Kumaraparameshwaran Rathnavel
2017-10-03 15:49 ` Stephen Hemminger

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