mem: count overcommit hugepages as available
authorMichał Mirosław <michal.miroslaw@atendesoftware.pl>
Mon, 25 Feb 2019 20:57:28 +0000 (21:57 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 28 Mar 2019 22:33:50 +0000 (23:33 +0100)
commita1c6b707866d82337ddb7b79e6b316840d8d9a3c
tree5c9216867611d709459c0bc18c03c5975cc628e5
parent034f1fb6165b767213483853f60eac33bd841643
mem: count overcommit hugepages as available

With nr_overcommit_hugepages > 0 application may be able to allocate
hugepages even when free_hugepages == 0. Take this into account when
counting available hugepages.

Signed-off-by: Michał Mirosław <michal.miroslaw@atendesoftware.pl>
Reviewed-by: Anatoly Burakov <anatoly.burakov@intel.com>
lib/librte_eal/linux/eal/eal_hugepage_info.c