Is there a way to allocate contiguous physical memory from userspace in linux? At least few guaranteed contiguous memory pages. One huge page isn\'t the answer.
DPDK library's memory allocator uses approach @Wallacoloo described. eal_memory.c. The code is BSD licensed.