diff options
author | Qi Wang <interwq@gwu.edu> | 2017-08-24 21:29:28 (GMT) |
---|---|---|
committer | Qi Wang <interwq@gmail.com> | 2017-08-30 23:47:32 (GMT) |
commit | 47b20bb6544de9cdd4ca7ab870d6ad257c0ce4ff (patch) | |
tree | 0c7a06a91a4c7988b9d95cbc0595c29403395fd9 /doc/jemalloc.xml.in | |
parent | ea91dfa58e11373748f747041c3041f72c9a7658 (diff) | |
download | jemalloc-47b20bb6544de9cdd4ca7ab870d6ad257c0ce4ff.zip jemalloc-47b20bb6544de9cdd4ca7ab870d6ad257c0ce4ff.tar.gz jemalloc-47b20bb6544de9cdd4ca7ab870d6ad257c0ce4ff.tar.bz2 |
Change opt.metadata_thp to [disabled,auto,always].
To avoid the high RSS caused by THP + low usage arena (i.e. THP becomes a
significant percentage), added a new "auto" option which will only start using
THP after a base allocator used up the first THP region. Starting from the
second hugepage (in a single arena), "auto" behaves the same as "always",
i.e. madvise hugepage right away.
Diffstat (limited to 'doc/jemalloc.xml.in')
-rw-r--r-- | doc/jemalloc.xml.in | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/doc/jemalloc.xml.in b/doc/jemalloc.xml.in index f1712f0..0c95604 100644 --- a/doc/jemalloc.xml.in +++ b/doc/jemalloc.xml.in @@ -919,13 +919,15 @@ mallctl("arena." STRINGIFY(MALLCTL_ARENAS_ALL) ".decay", <varlistentry id="opt.metadata_thp"> <term> <mallctl>opt.metadata_thp</mallctl> - (<type>bool</type>) + (<type>const char *</type>) <literal>r-</literal> </term> - <listitem><para>If true, allow jemalloc to use transparent huge page - (THP) for internal metadata (see <link - linkend="stats.metadata">stats.metadata</link> for details). This - option is disabled by default.</para></listitem> + <listitem><para>Controls whether to allow jemalloc to use transparent + huge page (THP) for internal metadata (see <link + linkend="stats.metadata">stats.metadata</link>). <quote>always</quote> + allows such usage. <quote>auto</quote> uses no THP initially, but may + begin to do so when metadata usage reaches certain level. The default + is <quote>disabled</quote>.</para></listitem> </varlistentry> <varlistentry id="opt.retain"> |