[PATCH v2] eal: change alloc_sz calculation which may cause unnecessarily allocation

David Marchand david.marchand at redhat.com
Mon Sep 26 11:20:11 CEST 2022


On Thu, Jul 28, 2022 at 8:03 PM Dmitry Kozlyuk <dmitry.kozliuk at gmail.com> wrote:
>
> 2022-07-28 14:41 (UTC+0500), Fidaullah Noonari:
> > The amount of memory to allocate from the system for heap expansion
> > was calculated in a way that may yield one page more than needed.
> > This could hit the allocation limit from the system or EAL.
> > The allocation would fail despite enough memory being available.
> >
> > In response to mail:
> > http://inbox.dpdk.org/dev/CAEYuUWCnRZNwxiOHEeTHw0Gy9aFJRLZtvAG9g=smuUvUEMcFXg@mail.gmail.com/

Cc: stable at dpdk.org

> >
> > Signed-off-by: Fidaullah Noonari <fidaullah.noonari at emumba.com>
> Acked-by: Dmitry Kozlyuk <dmitry.kozliuk at gmail.com>

I added a note about the reproducer (for testers) and applied.
Thanks!


-- 
David Marchand



More information about the dev mailing list