[dpdk-dev] [PATCH v2] mem: calculate space left in a hugetlbfs

2015-11-12 Thread Sergio Gonzalez Monroy
Hi, On 12/11/2015 02:10, Jianfeng Tan wrote: > This patch enables calculating space left in a hugetlbfs. > There are three sources to get the information: 1. from > sysfs; 2. from option size specified when mount; 3. use > statfs. We should use the minimum one of these three sizes. We could improv

[dpdk-dev] [PATCH v2] mem: calculate space left in a hugetlbfs

2015-11-12 Thread Jianfeng Tan
This patch enables calculating space left in a hugetlbfs. There are three sources to get the information: 1. from sysfs; 2. from option size specified when mount; 3. use statfs. We should use the minimum one of these three sizes. Signed-off-by: Jianfeng Tan --- Changes in v2: - reword title - f

[dpdk-dev] [PATCH v2] mem: calculate space left in a hugetlbfs

2015-11-12 Thread Jianfeng Tan
This patch enables calculating space left in a hugetlbfs. There are three sources to get the information: 1. from sysfs; 2. from option size specified when mount; 3. use statfs. We should use the minimum one of these three sizes. Signed-off-by: Jianfeng Tan --- lib/librte_eal/linuxapp/eal/eal_hu