numam-dpdk/lib/librte_eal
Alejandro Lucero 1df2170287 mem: use address hint for mapping hugepages
Linux kernel uses a really high address as starting address for
serving mmaps calls. If there exist addressing limitations and
IOVA mode is VA, this starting address is likely too high for
those devices. However, it is possible to use a lower address in
the process virtual address space as with 64 bits there is a lot
of available space.

This patch adds an address hint as starting address for 64 bits
systems and increments the hint for next invocations. If the mmap
call does not use the hint address, repeat the mmap call using
the hint address incremented by page size.

Signed-off-by: Alejandro Lucero <alejandro.lucero@netronome.com>
Reviewed-by: Anatoly Burakov <anatoly.burakov@intel.com>
2018-10-28 22:06:05 +01:00
..
bsdapp eal: export function to get runtime directory 2018-10-27 12:10:24 +02:00
common mem: use address hint for mapping hugepages 2018-10-28 22:06:05 +01:00
linuxapp mem: add function for checking memseg IOVA 2018-10-28 22:04:34 +01:00
Makefile lib: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
meson.build mk: build with _GNU_SOURCE defined by default 2018-10-22 11:28:27 +02:00
rte_eal_version.map mem: add function for checking memseg IOVA 2018-10-28 22:04:34 +01:00