eal: add option to delete hugepage backing files
authorShesha Sreenivasamurthy <shesha@cisco.com>
Wed, 28 Oct 2015 22:04:25 +0000 (15:04 -0700)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 4 Nov 2015 01:00:28 +0000 (02:00 +0100)
commit9e2167159936882a3bf9954b5f63cc37d402f4a6
tree67b26712db1f92ca5991a32eb79a6155bb2cf4c1
parent3591a83607bd1c3742001a2807bdbc6f07e254de
eal: add option to delete hugepage backing files

When an application using huge-pages crash or exists, the hugetlbfs
backing files are not cleaned up. This is a patch to clean those files.
There are multi-process DPDK applications that may be benefited by those
backing files. Therefore, I have made that configurable so that the
application that does not need those backing files can remove them, thus
not changing the current default behavior. The application itself can
clean it up, however the rationale behind DPDK cleaning it up is, DPDK
created it and therefore, it is better it unlinks it.

Signed-off-by: Shesha Sreenivasamurthy <shesha@cisco.com>
Acked-by: Sergio Gonzalez Monroy <sergio.gonzalez.monroy@intel.com>
lib/librte_eal/common/eal_common_options.c
lib/librte_eal/common/eal_internal_cfg.h
lib/librte_eal/common/eal_options.h
lib/librte_eal/linuxapp/eal/eal_memory.c