[dpdk-dev] [PATCH v3 3/3] mem: improve autodetection of hugepage counts on 32-bit

Pattan, Reshma reshma.pattan at intel.com
Wed Apr 25 15:28:57 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 3/3] mem: improve autodetection of hugepage counts on
> 32-bit
> 
> For non-legacy mode, we are preallocating space for hugepages, so we know
> in advance which pages we will be able to allocate, and which we won't.
> However, the init procedure was using hugepage counts gathered from sysfs
> and paid no attention to hugepage sizes that were actually available for
> reservation, and failed on attempts to reserve unavailable pages.
> 
> Fix this by limiting total page counts by number of pages actually
> preallocated.
> 
> Also, VA preallocate procedure only looks at mountpoints that are available,
> and expects pages to exist if a mountpoint exists. That might not necessarily
> be the case, so also check if there are hugepages available for a particular
> page size on a particular NUMA node.
> 
> Signed-off-by: Anatoly Burakov <anatoly.burakov at intel.com>
> ---
> 

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


More information about the dev mailing list