DPDK patches and discussions
 help / color / mirror / Atom feed
* Including contigmem in core dumps
@ 2024-10-22 12:41 Lewis Donzis
  2024-10-22 14:47 ` Dmitry Kozlyuk
  0 siblings, 1 reply; 8+ messages in thread
From: Lewis Donzis @ 2024-10-22 12:41 UTC (permalink / raw)
  To: dev

[-- Attachment #1: Type: text/plain, Size: 573 bytes --]

I've been wondering why we exclude memory allocated by eal_get_virtual_area() from core dumps? (More specifically, it calls eal_mem_set_dump() to call madvise() to disable core dumps from the allocated region.) 

On many occasions, when debugging after a crash, it would have been very convenient to be able to see the contents of an mbuf or other object allocated in contigmem space. And we often avoid using the rte memory allocator just because of this. 

Is there any reason for this, or could it perhaps be a compile-time configuration option not to call madvise()? 


[-- Attachment #2: Type: text/html, Size: 850 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread
* Including contigmem in core dumps
@ 2024-05-28  0:34 Lewis Donzis
  2024-05-28  6:55 ` Dmitry Kozlyuk
  0 siblings, 1 reply; 8+ messages in thread
From: Lewis Donzis @ 2024-05-28  0:34 UTC (permalink / raw)
  To: dev

[-- Attachment #1: Type: text/plain, Size: 572 bytes --]

I've been wondering why we exclude memory allocated by eal_get_virtual_area() from core dumps? (More specifically, it calls eal_mem_set_dump() to call madvise() to disable core dumps from the allocated region.) 

On many occasions, when debugging after a crash, it would have been very convenient to be able to see the contents of an mbuf or other object allocated in contigmem space. And we often avoid using the rte memory allocator just because of this. 

Is there any reason for this, or could it perhaps be a compile-time configuration option not to call madvise()? 

[-- Attachment #2: Type: text/html, Size: 771 bytes --]

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

end of thread, other threads:[~2024-10-22 16:01 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-10-22 12:41 Including contigmem in core dumps Lewis Donzis
2024-10-22 14:47 ` Dmitry Kozlyuk
2024-10-22 15:39   ` Stephen Hemminger
2024-10-22 15:57     ` Morten Brørup
2024-10-22 16:00     ` Lewis Donzis
  -- strict thread matches above, loose matches on Subject: below --
2024-05-28  0:34 Lewis Donzis
2024-05-28  6:55 ` Dmitry Kozlyuk
2024-05-28 13:19   ` Lewis Donzis

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