[dpdk-dev] [PATCH] mem: get memzone from any CPU socket when hugepages are disabled

Damien Millescamps damien.millescamps at 6wind.com
Fri Jul 26 16:56:50 CEST 2013


On 07/26/2013 04:35 PM, Adrien Mazarguil wrote:
> When huge pages are disabled, memory is allocated for a single, undefined
> CPU socket using malloc(), causing rte_memzone_reserve_aligned() to fail
> most of the time.
>
> This patch causes that memory to use SOCKET_ID_ANY instead of 0, and allow
> it to be used in place of any socket ID specified by user.
>
> Signed-off-by: Adrien Mazarguil <adrien.mazarguil at 6wind.com>
> ---
>  lib/librte_eal/common/eal_common_memzone.c | 1 +
>  lib/librte_eal/linuxapp/eal/eal_memory.c   | 2 +-
>  2 files changed, 2 insertions(+), 1 deletion(-)
>
ack


More information about the dev mailing list