Explicit superpage allocation

Alex Merritt merritt.alex at gmail.com
Fri Oct 2 14:43:43 UTC 2015

Hi all,

mmap(2) states with first use of a memory region with backing frames not
yet allocated and an appropriate alignment, the kernel will automatically
use a larger page when given MAP_ALIGNED_SUPER.

Is there a method to explicitly request a specific page size for an
anonymous memory region? I want to perform measurements using 2MB-backed
regions and 1GB-backed regions, but do not want the kernel to make
arbitrary decisions underneath me.

I am using 10.2 and Intel hardware.


More information about the freebsd-questions mailing list