From: Thomas Monjalon <thomas@monjalon.net>
To: "Burakov, Anatoly" <anatoly.burakov@intel.com>
Cc: dev@dpdk.org, Olivier Matz <olivier.matz@6wind.com>,
konstantin.ananyev@intel.com, arybchenko@solarflare.com,
shreyansh.jain@nxp.com
Subject: Re: [dpdk-dev] [PATCH] mempool: fix virt address mempool population
Date: Tue, 15 May 2018 16:32:11 +0200 [thread overview]
Message-ID: <2093442.vzybzRF3xW@xps> (raw)
In-Reply-To: <20180515112817.2et5csjsktr7c6xu@glumotte.dev.6wind.com>
15/05/2018 13:28, Olivier Matz:
> On Tue, May 15, 2018 at 08:58:06AM +0100, Burakov, Anatoly wrote:
> > On 14-May-18 7:48 PM, Thomas Monjalon wrote:
> > > 14/05/2018 18:06, Anatoly Burakov:
> > > > Currently, populate_virt will check if mempool is already populated.
> > > > This will cause inability to reserve multi-chunk mempools if
> > > > contiguous memory is not a hard requirement, because if allocating
> > > > all-contiguous memory fails, mempool will retry with virtual addresses
> > > > and will call populate_virt. It seems that the original code never
> > > > anticipated more than one non-physically contiguous area.
> > > >
> > > > Fix it by removing the check in populate virt. populate_anon() function
> > > > calls populate_virt() also, and it can be reasonably inferred that it is
> > > > expecting that virtual area is not already populated. Even though a
> > > > similar check is already in place there, also add the check that was
> > > > part of populate_virt() just in case.
> > > >
> > > > Fixes: aab4f62d6c1c ("mempool: support no hugepage mode")
>
> Acked-by: Olivier Matz <olivier.matz@6wind.com>
>
> > > If it is really the root cause, you need to add Cc: stable@dpdk.org.
> >
> > Yes. It's not as pressing for previous DPDK versions because this codepath
> > wasn't triggered unless --no-huge was used, but it's still a bug.
>
> Agree we should queue it for stable, even if it's not that critical.
Applied, thanks
next prev parent reply other threads:[~2018-05-15 14:32 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-05-14 16:06 Anatoly Burakov
2018-05-14 18:48 ` Thomas Monjalon
2018-05-15 7:58 ` Burakov, Anatoly
2018-05-15 11:28 ` Olivier Matz
2018-05-15 14:32 ` Thomas Monjalon [this message]
2018-05-15 13:04 ` Andrew Rybchenko
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=2093442.vzybzRF3xW@xps \
--to=thomas@monjalon.net \
--cc=anatoly.burakov@intel.com \
--cc=arybchenko@solarflare.com \
--cc=dev@dpdk.org \
--cc=konstantin.ananyev@intel.com \
--cc=olivier.matz@6wind.com \
--cc=shreyansh.jain@nxp.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).