diff options
| author | Qi Wang <interwq@gwu.edu> | 2017-05-15 13:50:42 -0700 |
|---|---|---|
| committer | Qi Wang <interwq@gmail.com> | 2017-05-23 12:26:20 -0700 |
| commit | 44559e7cf179d1e9eddcc681d961e076511ee857 (patch) | |
| tree | 55ddb25047e078815f5829d6877fea9fef5665f1 | |
| parent | 5f5ed2198e47f3e904cbf1aff7c124e196855272 (diff) | |
| download | platform_external_jemalloc_new-44559e7cf179d1e9eddcc681d961e076511ee857.tar.gz platform_external_jemalloc_new-44559e7cf179d1e9eddcc681d961e076511ee857.tar.bz2 platform_external_jemalloc_new-44559e7cf179d1e9eddcc681d961e076511ee857.zip | |
Add documentation for background_thread related options.
| -rw-r--r-- | doc/jemalloc.xml.in | 78 |
1 files changed, 78 insertions, 0 deletions
diff --git a/doc/jemalloc.xml.in b/doc/jemalloc.xml.in index be018bfb..57f5b0ba 100644 --- a/doc/jemalloc.xml.in +++ b/doc/jemalloc.xml.in @@ -737,6 +737,25 @@ mallctl("arena." STRINGIFY(MALLCTL_ARENAS_ALL) ".decay", detecting whether another thread caused a refresh.</para></listitem> </varlistentry> + <varlistentry id="background_thread"> + <term> + <mallctl>background_thread</mallctl> + (<type>bool</type>) + <literal>rw</literal> + </term> + <listitem><para>Enable/disable internal background worker threads. When + set to true, background threads are created on demand (the number of + background threads will be no more than the number of CPUs or active + arenas). Threads run periodically, and handle <link + linkend="arena.i.decay">purging</link> asynchronously. When switching + off, background threads are terminated synchronously. See <link + linkend="stats.background_thread.num_threads"><mallctl>stats.background_thread</mallctl></link> + for related stats. <link + linkend="opt.background_thread"><mallctl>opt.background_thread</mallctl></link> + can be used to set the default option. This option is only available on + selected pthread-based platforms.</para></listitem> + </varlistentry> + <varlistentry id="config.cache_oblivious"> <term> <mallctl>config.cache_oblivious</mallctl> @@ -937,6 +956,18 @@ mallctl("arena." STRINGIFY(MALLCTL_ARENAS_ALL) ".decay", <quote>percpu</quote>. </para></listitem> </varlistentry> + <varlistentry id="opt.background_thread"> + <term> + <mallctl>opt.background_thread</mallctl> + (<type>const bool</type>) + <literal>r-</literal> + </term> + <listitem><para>Internal background worker threads enabled/disabled. See + <link linkend="background_thread">background_thread</link> for dynamic + control options and details. This option is disabled by + default.</para></listitem> + </varlistentry> + <varlistentry id="opt.dirty_decay_ms"> <term> <mallctl>opt.dirty_decay_ms</mallctl> @@ -2158,6 +2189,39 @@ struct extent_hooks_s { </para></listitem> </varlistentry> + <varlistentry id="stats.background_thread.num_threads"> + <term> + <mallctl>stats.background_thread.num_threads</mallctl> + (<type>size_t</type>) + <literal>r-</literal> + [<option>--enable-stats</option>] + </term> + <listitem><para> Number of <link linkend="background_thread">background + threads</link> running currently.</para></listitem> + </varlistentry> + + <varlistentry id="stats.background_thread.num_runs"> + <term> + <mallctl>stats.background_thread.num_runs</mallctl> + (<type>uint64_t</type>) + <literal>r-</literal> + [<option>--enable-stats</option>] + </term> + <listitem><para> Total number of runs from all <link + linkend="background_thread">background threads</link>.</para></listitem> + </varlistentry> + + <varlistentry id="stats.background_thread.run_interval"> + <term> + <mallctl>stats.background_thread.run_interval</mallctl> + (<type>uint64_t</type>) + <literal>r-</literal> + [<option>--enable-stats</option>] + </term> + <listitem><para> Average run interval in nanoseconds of <link + linkend="background_thread">background threads</link>.</para></listitem> + </varlistentry> + <varlistentry id="stats.mutexes.ctl"> <term> <mallctl>stats.mutexes.ctl.{counter};</mallctl> @@ -2210,6 +2274,20 @@ struct extent_hooks_s { </listitem> </varlistentry> + <varlistentry id="stats.mutexes.background_thread"> + <term> + <mallctl>stats.mutexes.background_thread.{counter}</mallctl> + (<type>counter specific type</type>) <literal>r-</literal> + [<option>--enable-stats</option>] + </term> + <listitem><para>Statistics on <varname>background_thread</varname> mutex + (global scope; <link + linkend="background_thread"><mallctl>background_thread</mallctl></link> + related). <mallctl>{counter}</mallctl> is one of the counters in <link + linkend="mutex_counters">mutex profiling + counters</link>.</para></listitem> + </varlistentry> + <varlistentry id="stats.mutexes.prof"> <term> <mallctl>stats.mutexes.prof.{counter}</mallctl> |
