<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:18:01 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>[CDRIVER-3429] Turn off libmongoc shared memory counters by default?</title>
                <link>https://jira.mongodb.org/browse/CDRIVER-3429</link>
                <project id="10030" key="CDRIVER">C Driver</project>
                    <description>&lt;p&gt;By default, if shared memory is supported, libmongoc gathers statistics about client/cursor/socket usage. See the &lt;a href=&quot;http://mongoc.org/libmongoc/current/basic-troubleshooting.html#performance-counters&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;Basic Troubleshooting&lt;/a&gt; page for more info.&lt;/p&gt;

&lt;p&gt;They are currently enabled by default on Linux if shared memory is supported. They may be opted-out at configuration time with &lt;tt&gt;-DENABLE_SHM_COUNTERS=OFF&lt;/tt&gt; or at runtime with the &lt;tt&gt;MONGOC_DISABLE_SHM&lt;/tt&gt;.&lt;/p&gt;

&lt;p&gt;The shared memory segment is unlinked in &lt;tt&gt;mongoc_cleanup&lt;/tt&gt;, but if a user does not call that function, or a crash occurs before that function is called, then this may result in shared memory segments being left around.&lt;/p&gt;

&lt;p&gt;Let&apos;s consider whether this should be an opt-in feature rather than opt-out. This would be a bit of a behavior change, but it&apos;s not clear to me how disruptive changing this default would be.&lt;/p&gt;</description>
                <environment></environment>
        <key id="996366">CDRIVER-3429</key>
            <summary>Turn off libmongoc shared memory counters by default?</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</type>
                                            <priority id="4" iconUrl="https://jira.mongodb.org/images/icons/priorities/minor.svg">Minor - P4</priority>
                        <status id="10038" iconUrl="https://jira.mongodb.org/images/icons/subtask.gif" description="">Backlog</status>
                    <statusCategory id="2" key="new" colorName="default"/>
                                    <resolution id="-1">Unresolved</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="kevin.albertson@mongodb.com">Kevin Albertson</reporter>
                        <labels>
                    </labels>
                <created>Mon, 11 Nov 2019 16:16:05 +0000</created>
                <updated>Mon, 5 Feb 2024 13:01:19 +0000</updated>
                                                            <fixVersion>2.0.0</fixVersion>
                                    <component>cmake</component>
                    <component>libmongoc</component>
                    <component>Performance</component>
                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="2705258" author="kevin.albertson" created="Mon, 6 Jan 2020 15:38:47 +0000"  >&lt;p&gt;In &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-3234&quot; title=&quot;ENABLE_SHM_COUNTERS, ENABLE_SRV, and ENABLE_ZSTD checks should be improved&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-3234&quot;&gt;&lt;del&gt;CDRIVER-3234&lt;/del&gt;&lt;/a&gt;, we may change how we detect if shared memory support is available.&lt;/p&gt;</comment>
                            <comment id="2574741" author="roberto.sanchez" created="Mon, 2 Dec 2019 16:33:48 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=kevin.albertson&quot; class=&quot;user-hover&quot; rel=&quot;kevin.albertson&quot;&gt;kevin.albertson&lt;/a&gt; I see no reason why it would be disruptive.  The only wrinkle that would affect packaging would be if this change resulted in a SONAME bump. That seems unlikely to be the case.&lt;/p&gt;</comment>
                            <comment id="2574632" author="kevin.albertson" created="Mon, 2 Dec 2019 15:56:59 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=roberto.sanchez&quot; class=&quot;user-hover&quot; rel=&quot;roberto.sanchez&quot;&gt;roberto.sanchez&lt;/a&gt; from a packaging perspective, do you think disabling shared memory counters by default would be disruptive?&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="855328">CDRIVER-3234</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10857" key="com.pyxis.greenhopper.jira:gh-epic-link">
                        <customfieldname>Epic Link</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>CDRIVER-4577</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hvpz7b:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>