[dpdk-dev] [PATCH v3] mem: calculate space left in a hugetlbfs
michael.qiu at intel.com
Mon Dec 21 09:34:05 CET 2015
On 2015/11/18 17:42, Jianfeng Tan wrote:
> Currently DPDK does not respect the quota of a hugetblfs mount.
> It will fail to init the EAL because it tries to map the number of
> free hugepages in the system rather than using the number specified
> in the quota for that mount.
> To solve this issue, we take the quota into consideration when
> calculating the number of hugepages to map. We use either the number
> specified in the quota, or number of available hugepages, whichever
> is lower.
> There are possible race conditions when multiple applications
> allocate hugepages in different hugetlbfs mounts of the same size,
> so the suggested system would have a pool with enough hugepages for
> all hugetlbfs mount quotas.
> There is, however, still an open issue with
> CONFIG_RTE_EAL_SINGLE_FILE_SEGMENTS. When this option is enabled
> (IVSHMEM target does this by default), having hugetlbfs mounts with
> quota will fail to remap hugepages because it relies on having
> mapped all free hugepages in the system.
> Signed-off-by: Jianfeng Tan <jianfeng.tan at intel.com>
Acked-by: Michael Qiu <michael.qiu at intel.com>
More information about the dev