DPDK patches and discussions
 help / color / mirror / Atom feed
From: Lewis Donzis <lew@perftech.com>
To: Dmitry Kozlyuk <dmitry.kozliuk@gmail.com>
Cc: dev <dev@dpdk.org>, anatoly burakov <anatoly.burakov@intel.com>
Subject: Re: [PATCH] eal: support including mapped memory in core dump
Date: Thu, 24 Oct 2024 07:55:36 -0500 (CDT)	[thread overview]
Message-ID: <1214738221.9418986.1729774536292.JavaMail.zimbra@donzis.com> (raw)
In-Reply-To: <20241023231859.1323727-1-kozlyuk@bifit.com>



----- On Oct 23, 2024, at 6:18 PM, Dmitry Kozlyuk dmitry.kozliuk@gmail.com wrote:
> Lewis, testing on FreeBSD would be appreciated.

Well, unfortunately, it's not working very well...  The contigmem memory was not included in the core dump.

I added logging just before the madvise() call to prove that it's calling madvise() properly, and it looks good.
I then tried forcing all madvise() calls to use EAL_DODUMP.
And finally, I tried removing the call to madvise() altogether.

None of those things changed the size of the core dump from what it was, and my test of trying to access an mbuf in the debugger still says the memory is inaccessible.

What's even worse is, it appears that I had already tried the above work-arounds back on May 28th and mentioned that in an e-mail to you.  Apparently I totally forgot about those experiments!  At the time, I wondered if it was just something fundamental about FreeBSD and contigmem.

It may take some digging through the FreeBSD source code to see how the dumper works.

So I apologize for not remembering that this wasn't entirely a DPDK issue.  That said, it's nice that this is available on Linux and maybe we'll find a way to make it work on FreeBSD.

Thanks again for the efforts,
lew

  parent reply	other threads:[~2024-10-24 12:55 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-10-23 23:18 Dmitry Kozlyuk
2024-10-24  2:19 ` Stephen Hemminger
2024-10-24  2:31 ` Stephen Hemminger
2024-10-24  7:07   ` Morten Brørup
2024-10-24  7:22 ` Morten Brørup
2024-10-24  8:25   ` Dmitry Kozlyuk
2024-10-24 12:55 ` Lewis Donzis [this message]
2024-10-24 16:38 ` Stephen Hemminger

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=1214738221.9418986.1729774536292.JavaMail.zimbra@donzis.com \
    --to=lew@perftech.com \
    --cc=anatoly.burakov@intel.com \
    --cc=dev@dpdk.org \
    --cc=dmitry.kozliuk@gmail.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).