mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-04-14 22:51:50 +03:00
Add support for namespace pids in heap profile names
This change adds support for writing pid namespaces to the filename of a heap profile. When running with namespaces pids may reused across namespaces and if mounts are shared where profiles are written there is not a great way to differentiate profiles between pids. Signed-off-by: Daniel Hodges <hodges.daniel.scott@gmail.com> Signed-off-by: Daniel Hodges <hodgesd@fb.com>
This commit is contained in:
parent
83b075789b
commit
11038ff762
7 changed files with 93 additions and 10 deletions
|
|
@ -1514,6 +1514,23 @@ malloc_conf = "xmalloc:true";]]></programlisting>
|
|||
by default.</para></listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry id="opt.prof_pid_namespace">
|
||||
<term>
|
||||
<mallctl>opt.prof_pid_namespace</mallctl>
|
||||
(<type>bool</type>)
|
||||
<literal>r-</literal>
|
||||
[<option>--enable-prof</option>]
|
||||
</term>
|
||||
<listitem><para>Enable adding the pid namespace to the profile
|
||||
filename. Profiles are dumped to files named according to the pattern
|
||||
<filename><prefix>.<pid_namespace>.<pid>.<seq>.i<iseq>.heap</filename>,
|
||||
where <literal><prefix></literal> is controlled by the <link
|
||||
linkend="opt.prof_prefix"><mallctl>opt.prof_prefix</mallctl></link> and
|
||||
<link linkend="prof.prefix"><mallctl>prof.prefix</mallctl></link>
|
||||
options.
|
||||
</para></listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry id="opt.lg_prof_interval">
|
||||
<term>
|
||||
<mallctl>opt.lg_prof_interval</mallctl>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue