DPDK patches and discussions
 help / color / mirror / Atom feed
From: Baruch Even <baruch@weka.io>
To: Bruce Richardson <bruce.richardson@intel.com>
Cc: dpdk-dev <dev@dpdk.org>
Subject: Re: Hugepage migration
Date: Tue, 30 May 2023 16:53:14 +0300	[thread overview]
Message-ID: <CAKye4QbGfmFRf5YH-PeoEMnOmtEdXAux8ddNcHTjhUNaFWo+NA@mail.gmail.com> (raw)
In-Reply-To: <ZHWuEaH/PenRW5+I@bricha3-MOBL.ger.corp.intel.com>

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

On Tue, May 30, 2023 at 11:04 AM Bruce Richardson <
bruce.richardson@intel.com> wrote:

> On Sun, May 28, 2023 at 11:07:40PM +0300, Baruch Even wrote:
> >    Hi,
> >    We found an issue with newer kernels (5.13+) that are found on newer
> >    OSes (Ubuntu22, Rocky9, Ubuntu20 with kernel 5.15) where a 2M page
> that
> >    was allocated for DPDK was migrated (moved into another physical page)
> >    when a 1G page was allocated.
> >    From our reading of the kernel commits this started with commit
> >    ae37c7ff79f1f030e28ec76c46ee032f8fd07607
> >        mm: make alloc_contig_range handle in-use hugetlb pages
> >    This caused what looked like memory corruptions to us and cases where
> >    the rings were moved from their physical location and communication
> was
> >    no longer possible.
> >    I wanted to ask if anyone else hit this issue and what mitigations are
> >    available?
> >    We are currently looking at using a kernel driver to pin the pages but
> >    I expect that this issue will affect others and that a more general
> >    approach is needed.
> >    Thanks,
> >    Baruch
> >    --
>
> Hi,
>
> what kernel driver was being used for the device I/O part? Was it a UIO
> based driver or "vfio-pci"? When using vfio-pci and configuring IOMMU
> mappings, the pages mapped should be pinned by the kernel, I would have
> thought, since the kernel knows they are being used by devices.
>
> /Bruce
>

This was using igb_uio on an AWS instance with their ena driver.

Baruch

-- 
Baruch Even
Platform Technical Lead,  WEKA
E baruch@weka.io* ­*W www.weka.io
<https://www.weka.io?utm_source=WiseStamp&utm_medium=email&utm_term=&utm_content=&utm_campaign=signature>*
­* * ­*
<https://www.weka.io/lp/weka-named-a-2023-customers-choice-by-gartner-peer-insights/?utm_source=signature&utm_medium=email>

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

  reply	other threads:[~2023-05-30 13:53 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-28 20:07 Baruch Even
2023-05-30  1:35 ` Stephen Hemminger
2023-05-30 13:51   ` Baruch Even
2023-05-30  3:11 ` Stephen Hemminger
2023-05-30  8:04 ` Bruce Richardson
2023-05-30 13:53   ` Baruch Even [this message]
2023-05-30 15:33     ` 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=CAKye4QbGfmFRf5YH-PeoEMnOmtEdXAux8ddNcHTjhUNaFWo+NA@mail.gmail.com \
    --to=baruch@weka.io \
    --cc=bruce.richardson@intel.com \
    --cc=dev@dpdk.org \
    /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).