<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:12:37 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>MongoDB Jira</title>
    <link>https://jira.mongodb.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.7.1</version>
        <build-number>970001</build-number>
        <build-date>13-04-2023</build-date>
    </build-info>


<item>
            <title>[SERVER-6758] cpu profiler doesn&apos;t work with embedded tcmalloc</title>
                <link>https://jira.mongodb.org/browse/SERVER-6758</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Either --use-cpu-profiler should imply --use-system-tcmalloc or it should use the embedded copy of gperftools, and possibly build a copy of pprof.&lt;/p&gt;</description>
                <environment></environment>
        <key id="47014">SERVER-6758</key>
            <summary>cpu profiler doesn&apos;t work with embedded tcmalloc</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="3" iconUrl="https://jira.mongodb.org/images/icons/priorities/major.svg">Major - P3</priority>
                        <status id="6" iconUrl="https://jira.mongodb.org/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="9">Done</resolution>
                                        <assignee username="eliot">Eliot Horowitz</assignee>
                                    <reporter username="mathias@mongodb.com">Mathias Stearn</reporter>
                        <labels>
                    </labels>
                <created>Mon, 13 Aug 2012 22:46:17 +0000</created>
                <updated>Mon, 11 Jul 2016 17:58:20 +0000</updated>
                            <resolved>Tue, 27 Nov 2012 19:28:44 +0000</resolved>
                                                    <fixVersion>2.3.2</fixVersion>
                                    <component>Build</component>
                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="591756" author="xgen-internal-githook" created="Wed, 21 May 2014 15:53:16 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;benety&apos;, u&apos;name&apos;: u&apos;Benety Goh&apos;, u&apos;email&apos;: u&apos;benety@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-8995&quot; title=&quot;upgrade gperftools from 2.0 to 2.2&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-8995&quot;&gt;&lt;del&gt;SERVER-8995&lt;/del&gt;&lt;/a&gt; added gperftools-2.2 generated headers and SConscript files. cpu-profiler build tweaks.&lt;/p&gt;

&lt;p&gt;config-10gen_macos.h:&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;generated by: ./configure&lt;/li&gt;
	&lt;li&gt;disabled HAVE_LIBUNWIND_H&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;config-10gen_linux.h:&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;generated by: ./configure --enable-minimal&lt;/li&gt;
	&lt;li&gt;applied config-10gen_linux.h changes made in src/gperftools-2.0/src/config-10gen_linux.h in commit eee3fe4ce66c7bbda9329a3c8bd8e3549b07437c:&lt;br/&gt;
    &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-4683&quot; title=&quot;switch allocator - tcmalloc or jemalloc&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-4683&quot;&gt;&lt;del&gt;SERVER-4683&lt;/del&gt;&lt;/a&gt; Support the imported tcmalloc, ystem tcmalloc or the default system allocator library.&lt;br/&gt;
    Pass --allocator=tcmalloc (default on Linux) or --allocator=system (default elsewhere)&lt;br/&gt;
    to control which allocator is used, and -&lt;del&gt;use-system-tcmalloc to use the system&lt;/del&gt;&lt;br/&gt;
    installed tcmalloc instead of the one in the mongo source tree if you use --allocator=tcmalloc.&lt;/li&gt;
	&lt;li&gt;applied config-10gen_linux.h changes made in src/gperftools-2.0/src/config-10gen_linux.h in commit 498d9102e00e61ca2d41b7db1448969728884b50:&lt;br/&gt;
    &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-6758&quot; title=&quot;cpu profiler doesn&amp;#39;t work with embedded tcmalloc&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-6758&quot;&gt;&lt;del&gt;SERVER-6758&lt;/del&gt;&lt;/a&gt; - use third_party profiler when using --use-cpu-profiler&lt;br/&gt;
                  does require libunwind installed on system&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;SCons --use-cpu-profiler changes:&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;enabled HAVE_UNWIND_H for use-cpu-profile&lt;/li&gt;
	&lt;li&gt;excluded cpu profile commands from mongos&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/219bcdbc9b4dd1be804cf5385624fdc1557b3467&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/219bcdbc9b4dd1be804cf5385624fdc1557b3467&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
</comment>
                            <comment id="200435" author="eliot" created="Tue, 27 Nov 2012 19:28:44 +0000"  >&lt;p&gt;Note, this does require libunwind installed on system.&lt;/p&gt;</comment>
                            <comment id="200434" author="auto" created="Tue, 27 Nov 2012 19:28:29 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;date&apos;: u&apos;2012-11-27T19:26:07Z&apos;, u&apos;email&apos;: u&apos;eliot@10gen.com&apos;, u&apos;name&apos;: u&apos;Eliot Horowitz&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-6758&quot; title=&quot;cpu profiler doesn&amp;#39;t work with embedded tcmalloc&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-6758&quot;&gt;&lt;del&gt;SERVER-6758&lt;/del&gt;&lt;/a&gt; - use third_party profiler when using --use-cpu-profiler&lt;br/&gt;
              does require libunwind installed on system&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/498d9102e00e61ca2d41b7db1448969728884b50&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/498d9102e00e61ca2d41b7db1448969728884b50&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="178606" author="hin" created="Wed, 24 Oct 2012 10:52:08 +0000"  >&lt;p&gt;Not sure there is a 100% hard dependency on libunwind to use the profiler, at least the CPU profiler. FWIW, I was able to build mongo from source (on x86_64) with &quot;-&lt;del&gt;use-cpu-profiler&quot; but without a depend on libunwind.  Following the advice in the README/INSTALL files that come with gperftools 2.0, I used gperftools&apos; built-in unwind facility by (1) building gperftools with &quot;&lt;/del&gt;-enable-frame-pointers&quot; and (2) tweaked the mongo build script to compile mongo code with &quot;-fno-omit-frame-pointer&quot; when --use-cpu-profiler was on.  This was the only way I was able to get reliable call-graph profiles to work on my system.&lt;/p&gt;

&lt;p&gt;Perhaps mongo distros that bundle gperftools could set all the flags to work in harmony for the different packages&apos; compiles, based on the detected presence/absence (and/or explicitly directed use/nonuse) of libunwind.&lt;/p&gt;

&lt;p&gt;The gperftools docs seem to imply that all these unwind issues relate only to the profilers and not to tcmalloc, but I may have misread that.  I imagine there is a very big &quot;YMMV&quot; for all this &lt;img class=&quot;emoticon&quot; src=&quot;https://jira.mongodb.org/images/icons/emoticons/wink.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/p&gt;</comment>
                            <comment id="153296" author="schwerin" created="Tue, 14 Aug 2012 16:51:01 +0000"  >&lt;p&gt;FYI, pprof is a script (python or perl), so we just need to drop it in the source tree if we go this route.&lt;/p&gt;

&lt;p&gt;The profilers imply a dependency on libunwind, which is why we didn&apos;t build support for them into the tcmalloc we link by default.  Extending the build system to be able to build the tcmalloc version with profiling support seems like a reasonable approach.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>5.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Tue, 14 Aug 2012 16:51:01 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        9 years, 39 weeks ago
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18254" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Dependencies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[]]></customfieldvalue>


                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10057" key="com.atlassian.jira.toolkit:lastusercommented">
                        <customfieldname>Last comment by Customer</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>true</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10056" key="com.atlassian.jira.toolkit:lastupdaterorcommenter">
                        <customfieldname>Last commenter</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>ramon.fernandez@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            9 years, 39 weeks ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10000" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Old_Backport</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10000"><![CDATA[No]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10032" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Operating System</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10026"><![CDATA[ALL]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>schwerin@mongodb.com</customfieldvalue>
            <customfieldvalue>auto</customfieldvalue>
            <customfieldvalue>eliot</customfieldvalue>
            <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>hin</customfieldvalue>
            <customfieldvalue>mathias@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrnrxj:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hrfx2f:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>5696</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_23361" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Requested By</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10053" key="com.atlassian.jira.ext.charting:timeinstatus">
                        <customfieldname>Time In Status</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_22870" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Triagers</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrkyvr:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                    </customfields>
    </item>
</channel>
</rss>