Add huge page configuration and pages_[no}huge().

Add the --with-lg-hugepage configure option, but automatically configure
LG_HUGEPAGE even if it isn't specified.

Add the pages_[no]huge() functions, which toggle huge page state via
madvise(..., MADV_[NO]HUGEPAGE) calls.
This commit is contained in:
Jason Evans
2016-11-17 13:36:17 -08:00
parent eab3b180e5
commit c1baa0a9b7
9 changed files with 141 additions and 6 deletions

View File

@@ -227,6 +227,11 @@ any of the following arguments (not a definitive list) to 'configure':
--with-lg-page, but its primary use case is for integration with FreeBSD's
libc, wherein jemalloc is embedded.
--with-lg-hugepage=<lg-hugepage>
Specify the base 2 log of the system huge page size. This option is useful
when cross compiling, or when overriding the default for systems that do
not explicitly support huge pages.
--with-lg-size-class-group=<lg-size-class-group>
Specify the base 2 log of how many size classes to use for each doubling in
size. By default jemalloc uses <lg-size-class-group>=2, which results in