[dpdk-dev] [PATCH] mem: fix how to calculate space left in a hugetlbfs

2015-11-12 Thread Thomas Monjalon
2015-11-12 09:38, Stephen Hemminger: > On Thu, 12 Nov 2015 08:17:57 +0800 > 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

[dpdk-dev] [PATCH] mem: fix how to calculate space left in a hugetlbfs

2015-11-12 Thread Stephen Hemminger
On Thu, 12 Nov 2015 08:17:57 +0800 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. >

[dpdk-dev] [PATCH] mem: fix how to 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 ---

[dpdk-dev] [PATCH] mem: fix how to calculate space left in a hugetlbfs

2015-11-12 Thread De Lara Guarch, Pablo
Hi Jianfeng, > -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Jianfeng Tan > Sent: Thursday, November 12, 2015 12:18 AM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCH] mem: fix how to calculate space left in a > hugetlbfs >