[PATCH] eal: fixes the bug where rte_malloc() fails to allocates memory

David Marchand david.marchand at redhat.com
Thu Jun 16 09:53:08 CEST 2022


On Wed, May 25, 2022 at 7:18 AM Fidaullah Noonari
<fidaullah.noonari at emumba.com> wrote:
>
> if rte malloc is called to allocate memory of size
> is between multiple of hugepage size minus malloc_header_len
> and hugepage size rte_malloc fails to allocate memory.
> this fix replaces malloc_elem_trailer_len with
> malloc_elem_overhead in try_expand_heap() to include
> malloc_elem_header_len when calculating n_seg.
>
> Bugzilla ID: 800
>
> Signed-off-by: Fidaullah Noonari <fidaullah.noonari at emumba.com>

Anatoly, Dmitry, can you have a look?
Thanks.

-- 
David Marchand



More information about the dev mailing list