DPDK CI discussions
 help / color / mirror / Atom feed
From: Bruce Richardson <bruce.richardson@intel.com>
To: Brandon Lo <blo@iol.unh.edu>
Cc: ci@dpdk.org, dev <dev@dpdk.org>
Subject: Re: [dpdk-ci] [dpdk-dev] FreeBSD 13 Memory / Contigmem Issues With Booting
Date: Thu, 17 Jun 2021 09:07:02 +0100	[thread overview]
Message-ID: <YMsCprHUX3hcdZw4@bricha3-MOBL.ger.corp.intel.com> (raw)
In-Reply-To: <CAOeXdvY0WV2RghmaA4WCF=dhxbUQMY+QTcbNQQxnEvJLQyczLw@mail.gmail.com>

On Wed, Jun 16, 2021 at 04:24:05PM -0400, Brandon Lo wrote:
> Hi everyone,
> I have been trying to expand the UNH IOL unit testing coverage over to
> FreeBSD 13.
> Following this documentation:
> https://doc.dpdk.org/guides/freebsd_gsg/build_dpdk.html#loading-the-dpdk-contigmem-module
> I compiled the contigmem kernel module from the latest DPDK v21.05 and
> set the variables in /boot/loader.conf.
> This results in a kernel trap 12 on boot with a machine that has 4GB
> of RAM available and 1 GB assigned for contigmem.
> If I only set the loader.conf to load the contigmem kernel module
> without setting any variables, then it boots fine.
> However, using these default settings, DPDK unit tests (fast-suite)
> fail in some of the test cases.
> Is this a memory-related issue where the virtual machine does not have
> enough memory allocated (if so, how much RAM is needed?),
> or is it related to compatibility issues between the different FreeBSD versions?
Given that the defaults if you don't specify a loader.conf value is to use
is 512MB, I suspect that it is indeed the case, and that the kernel is
struggling to find a single block of 1GB for use.

In terms of how much memory is needed, I'm not sure, it may take a bit of
trial and error to determine. What tests are needing more than 512MB of
RAM? I would have thought that that should have been plenty for most cases.

Another option to try rather than allocating a single 1GB block is to
attempt to create e.g. 2x 512MB or 3x 256MB blocks and see if that works,
or helps with the unit tests.


      reply	other threads:[~2021-06-17  8:07 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-16 20:24 [dpdk-ci] " Brandon Lo
2021-06-17  8:07 ` Bruce Richardson [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:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=YMsCprHUX3hcdZw4@bricha3-MOBL.ger.corp.intel.com \
    --to=bruce.richardson@intel.com \
    --cc=blo@iol.unh.edu \
    --cc=ci@dpdk.org \
    --cc=dev@dpdk.org \


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