<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:30:23 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>Whamcloud Community JIRA</title>
    <link>https://jira.whamcloud.com</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.4.14</version>
        <build-number>940014</build-number>
        <build-date>05-12-2023</build-date>
    </build-info>


<item>
            <title>[LU-9909] memory leak in lnet_discover()</title>
                <link>https://jira.whamcloud.com/browse/LU-9909</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;In &lt;tt&gt;lnet_discover()&lt;/tt&gt; the buffer allocated by &lt;tt&gt;LIBCFS_ALLOC(buf, n_ids * sizeof(*buf))&lt;/tt&gt; is never freed.&lt;/p&gt;</description>
                <environment></environment>
        <key id="47945">LU-9909</key>
            <summary>memory leak in lnet_discover()</summary>
                <type id="1" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="4" iconUrl="https://jira.whamcloud.com/images/icons/priorities/minor.svg">Minor</priority>
                        <status id="5" iconUrl="https://jira.whamcloud.com/images/icons/statuses/resolved.png" description="A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.">Resolved</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="1">Fixed</resolution>
                                        <assignee username="ashehata">Amir Shehata</assignee>
                                    <reporter username="jhammond">John Hammond</reporter>
                        <labels>
                    </labels>
                <created>Thu, 24 Aug 2017 15:17:02 +0000</created>
                <updated>Thu, 31 Aug 2017 19:45:11 +0000</updated>
                            <resolved>Thu, 31 Aug 2017 19:45:11 +0000</resolved>
                                    <version>Lustre 2.11.0</version>
                                    <fixVersion>Lustre 2.11.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>7</watches>
                                                                            <comments>
                            <comment id="206264" author="ashehata" created="Thu, 24 Aug 2017 15:19:27 +0000"  >&lt;p&gt;thanks for catching that.  Will address it.&lt;/p&gt;</comment>
                            <comment id="206266" author="jamesanunez" created="Thu, 24 Aug 2017 15:34:27 +0000"  >&lt;p&gt;I&apos;m seeing several of our tests failing with &lt;/p&gt;
&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;[13455.203067] LNetError: 14901:0:(module.c:689:libcfs_exit()) Portals memory leaked: 184 bytes
mv: cannot stat &apos;/tmp/debug&apos;: No such file or directory
Memory leaks detected
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Is this the same issue?&lt;/p&gt;

&lt;p&gt;Logs for this failure can be found at&lt;br/&gt;
&lt;a href=&quot;https://testing.hpdd.intel.com/test_sets/972a44c6-87e0-11e7-b4b0-5254006e85c2&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://testing.hpdd.intel.com/test_sets/972a44c6-87e0-11e7-b4b0-5254006e85c2&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="206272" author="ashehata" created="Thu, 24 Aug 2017 16:35:37 +0000"  >&lt;p&gt;Did that just start happening after the latest landing? or has it been happening for a while?&lt;/p&gt;</comment>
                            <comment id="206273" author="jamesanunez" created="Thu, 24 Aug 2017 16:56:00 +0000"  >&lt;p&gt;So far, the earliest date I see the &apos;Portals memory leaked&apos; error is on August 22. So, yes, they started after the last batch of patch landings to master.&lt;/p&gt;</comment>
                            <comment id="206281" author="jhammond" created="Thu, 24 Aug 2017 17:48:48 +0000"  >&lt;p&gt;I bisected this locally by running conf-sanity 35a. This was introduced by commit 0f1aaad4c1b4447ee5097b8bb79a49d09eaa23c2 &lt;a href=&quot;https://review.whamcloud.com/25789&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/25789&lt;/a&gt; &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-9480&quot; title=&quot;LNet Dynamic Discovery&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-9480&quot;&gt;&lt;del&gt;LU-9480&lt;/del&gt;&lt;/a&gt; lnet: implement Peer Discovery. Unfortunately leak finder doesn&apos;t work for LNet allocations. But the leak is most likely an LNet peer:&lt;/p&gt;
&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;m:lustre-release# gdb lnet/lnet/lnet.ko
...
(gdb) p sizeof(struct lnet_peer)
$1 = 184
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="206282" author="olaf" created="Thu, 24 Aug 2017 17:51:42 +0000"  >&lt;p&gt;If the leak is an lnet_peer then it differs from the problem for which this LU was opened.&lt;/p&gt;</comment>
                            <comment id="206318" author="jamesanunez" created="Thu, 24 Aug 2017 19:43:49 +0000"  >&lt;p&gt;I created &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-9913&quot; title=&quot;conf-sanity tests 31 and 35a fail with &#8220;LNetError: 8653:0:(module.c:689:libcfs_exit()) Portals memory leaked: 184 bytes&#8221;&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-9913&quot;&gt;&lt;del&gt;LU-9913&lt;/del&gt;&lt;/a&gt; to capture the lnet_peer memory leak error.&lt;/p&gt;</comment>
                            <comment id="206373" author="gerrit" created="Fri, 25 Aug 2017 01:08:19 +0000"  >&lt;p&gt;Amir Shehata (amir.shehata@intel.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/28702&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/28702&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-9909&quot; title=&quot;memory leak in lnet_discover()&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-9909&quot;&gt;&lt;del&gt;LU-9909&lt;/del&gt;&lt;/a&gt; lnet: fix memory leak and lnet_interfaces_max&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 52ea572d5e828584ba49f703f0161407384323a2&lt;/p&gt;</comment>
                            <comment id="207121" author="gerrit" created="Thu, 31 Aug 2017 19:17:16 +0000"  >&lt;p&gt;Oleg Drokin (oleg.drokin@intel.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/28702/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/28702/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-9909&quot; title=&quot;memory leak in lnet_discover()&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-9909&quot;&gt;&lt;del&gt;LU-9909&lt;/del&gt;&lt;/a&gt; lnet: fix memory leak and lnet_interfaces_max&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 81d4f7a253193ebfe559f675d3c0975c0899d592&lt;/p&gt;</comment>
                            <comment id="207135" author="pjones" created="Thu, 31 Aug 2017 19:45:11 +0000"  >&lt;p&gt;Landed for 2.11&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                            <customfield id="customfield_10890" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10390" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hzziyf:</customfieldvalue>

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