Use 1G pages for jemalloc metadata.
commitc2dc3715de81b3d3e077ae0431c12622e4edc02d
authorQi Wang <qiwang@fb.com>
Sun, 17 Dec 2017 04:41:42 +0000 (16 20:41 -0800)
committerHhvm Bot <hhvm-bot@users.noreply.github.com>
Sun, 17 Dec 2017 05:01:28 +0000 (16 21:01 -0800)
treef8434325b21d0e65d7299dfe36ed5f173ac11158
parent090ebdb345c77fcef0d5e092e0a3773ba398e80f
Use 1G pages for jemalloc metadata.

Summary:
jemalloc now allows customized extent hooks on arena 0, which enables
us to use 1G huge pages for a0's metadata (which contains data accessed on
jemalloc fast path). This reduces TLB misses.

Reviewed By: binliu19

Differential Revision: D6138707

fbshipit-source-id: c0424d39dfd7f7c69cc648f8d4a225867f3c194a
hphp/runtime/base/program-functions.cpp
hphp/runtime/base/runtime-option.h
hphp/util/alloc.cpp
hphp/util/alloc.h