Re: [dpdk-dev] [PATCH] eal: fix mem alloc from control thread if socket 0 is unused

2021-11-05 Thread David Marchand
On Thu, Nov 4, 2021 at 9:54 AM Olivier Matz wrote: > > > From: Ilyes Ben Hamouda > > > > > > When using rte_malloc() from a control thread, the used heap is the one > > > from numa socket 0, which may not have available memory. > > > > > > Fix this by selecting the first socket which has availabl

Re: [dpdk-dev] [PATCH] eal: fix mem alloc from control thread if socket 0 is unused

2021-11-04 Thread Olivier Matz
On Wed, Nov 03, 2021 at 09:26:02PM +0100, David Marchand wrote: > On Fri, Oct 29, 2021 at 11:49 AM Olivier Matz wrote: > > > > From: Ilyes Ben Hamouda > > > > When using rte_malloc() from a control thread, the used heap is the one > > from numa socket 0, which may not have available memory. > > >

Re: [dpdk-dev] [PATCH] eal: fix mem alloc from control thread if socket 0 is unused

2021-11-03 Thread David Marchand
On Fri, Oct 29, 2021 at 11:49 AM Olivier Matz wrote: > > From: Ilyes Ben Hamouda > > When using rte_malloc() from a control thread, the used heap is the one > from numa socket 0, which may not have available memory. > > Fix this by selecting the first socket which has available memory. > > Note:

[dpdk-dev] [PATCH] eal: fix mem alloc from control thread if socket 0 is unused

2021-10-29 Thread Olivier Matz
From: Ilyes Ben Hamouda When using rte_malloc() from a control thread, the used heap is the one from numa socket 0, which may not have available memory. Fix this by selecting the first socket which has available memory. Note: malloc_get_numa_socket() is only used from one .c file, so move it th