[dpdk-dev] [PATCH v3 2/3] mem: improve memory preallocation on 32-bit

Pattan, Reshma reshma.pattan at intel.com
Wed Apr 25 15:27:58 CEST 2018



> -----Original Message-----
> From: Burakov, Anatoly
> Sent: Tuesday, April 24, 2018 11:19 AM
> To: dev at dpdk.org
> Cc: Pattan, Reshma <reshma.pattan at intel.com>
> Subject: [PATCH v3 2/3] mem: improve memory preallocation on 32-bit
> 
> Previously, if we couldn't preallocate VA space on 32-bit for one page size, we
> simply bailed out, even though we could've tried allocating VA space with
> other page sizes.
> 
> For example, if user had both 1G and 2M pages enabled, and has asked DPDK
> to allocate memory on both sockets, DPDK would've tried to allocate VA
> space for 1x1G page on both sockets, failed and never tried again, even
> though it could've allocated the same 1G of VA space for 512x2M pages.
> 
> Fix this by retrying with different page sizes if VA space reservation failed.
> 
> Signed-off-by: Anatoly Burakov <anatoly.burakov at intel.com>
> ---
>  lib/librte_eal/common/eal_common_memory.c | 42
> +++++++++++++++++++++++++------
>  1 file changed, 35 insertions(+), 7 deletions(-)
> 

Tested-by:  Jananee Parthasarathy <jananeex.m.parthasarathy at intel.com>


More information about the dev mailing list