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

Burakov, Anatoly anatoly.burakov at intel.com
Fri Apr 20 17:12:25 CEST 2018


On 20-Apr-18 3:41 PM, Anatoly Burakov wrote:
> 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.
> 
> Signed-off-by: Anatoly Burakov <anatoly.burakov at intel.com>
> ---

Oops, didn't update the patch after fixing build.

-- 
Thanks,
Anatoly


More information about the dev mailing list