[dpdk-dev] [PATCH] eal: allow hugetlbfs sub-directories

2021-07-08 Thread John Levon
v2: fix to prefer closest match

[dpdk-dev] [PATCH] eal: allow hugetlbfs sub-directories

2021-07-08 Thread John Levon
get_hugepage_dir() was implemented in such a way that a --huge-dir option had to exactly match the mountpoint, but there's no reason for this restriction. Fix the implementation to allow a sub-directory within a suitable hugetlbfs mountpoint to be specified, preferring the closest match. Signed-of

[dpdk-dev] [PATCH] eal: allow hugetlbfs sub-directories

2021-06-10 Thread John Levon
get_hugepage_dir() was implemented in such a way that a --huge-dir option had to exactly match the mountpoint, but there's no reason for this restriction. Fix the implementation to allow a sub-directory within a suitable hugetlbfs mountpoint to be specified. Signed-off-by: John Levon --- lib/eal

[dpdk-dev] [PATCH] eal: allow hugetlbfs sub-directories

2021-08-09 Thread John Levon
get_hugepage_dir() was implemented in such a way that a --huge-dir option had to exactly match the mountpoint, but there's no reason for this restriction: DPDK might not be the only user of hugepages, and shouldn't assume it owns an entire mountpoint. For example, if I have /dev/hugepages/myapp, an

Re: [dpdk-dev] [PATCH] eal: allow hugetlbfs sub-directories

2021-10-12 Thread David Marchand
On Tue, Aug 17, 2021 at 10:05 PM John Levon wrote: > On Mon, Aug 09, 2021 at 12:24:34PM +0100, John Levon wrote: > > > get_hugepage_dir() was implemented in such a way that a --huge-dir > > option had to exactly match the mountpoint, but there's no reason for > > this restriction: DPDK might not b

Re: [dpdk-dev] [PATCH] eal: allow hugetlbfs sub-directories

2021-08-09 Thread Jerin Jacob
On Mon, Aug 9, 2021 at 4:54 PM John Levon wrote: > > get_hugepage_dir() was implemented in such a way that a --huge-dir > option had to exactly match the mountpoint, but there's no reason for > this restriction: DPDK might not be the only user of hugepages, and > shouldn't assume it owns an entire

Re: [dpdk-dev] [PATCH] eal: allow hugetlbfs sub-directories

2021-08-17 Thread John Levon
On Mon, Aug 09, 2021 at 12:24:34PM +0100, John Levon wrote: > get_hugepage_dir() was implemented in such a way that a --huge-dir > option had to exactly match the mountpoint, but there's no reason for > this restriction: DPDK might not be the only user of hugepages, and > shouldn't assume it owns