<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:08:56 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-7441] Memory leak in nrs_tbf_*_startup</title>
                <link>https://jira.whamcloud.com/browse/LU-7441</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;nrs_tbf_*_startup should free hash table if futher process fails.&lt;/p&gt;</description>
                <environment></environment>
        <key id="33169">LU-7441</key>
            <summary>Memory leak in nrs_tbf_*_startup</summary>
                <type id="1" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="3" iconUrl="https://jira.whamcloud.com/images/icons/priorities/major.svg">Major</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="emoly.liu">Emoly Liu</assignee>
                                    <reporter username="lixi">Li Xi</reporter>
                        <labels>
                            <label>patch</label>
                    </labels>
                <created>Tue, 17 Nov 2015 09:12:05 +0000</created>
                <updated>Fri, 7 Jul 2017 20:50:12 +0000</updated>
                            <resolved>Fri, 7 Jul 2017 20:49:55 +0000</resolved>
                                    <version>Lustre 2.8.0</version>
                                    <fixVersion>Lustre 2.10.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>6</watches>
                                                                            <comments>
                            <comment id="133680" author="gerrit" created="Tue, 17 Nov 2015 09:12:54 +0000"  >&lt;p&gt;Li Xi (lixi@ddn.com) uploaded a new patch: &lt;a href=&quot;http://review.whamcloud.com/17224&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/17224&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-7441&quot; title=&quot;Memory leak in nrs_tbf_*_startup&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-7441&quot;&gt;&lt;del&gt;LU-7441&lt;/del&gt;&lt;/a&gt; nrs: fix memory leak in nrs_tbf_*_startup&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: f1b173201d137a8acd924084d03a76d2bdcab0a1&lt;/p&gt;</comment>
                            <comment id="133691" author="pjones" created="Tue, 17 Nov 2015 14:30:31 +0000"  >&lt;p&gt;Emoly&lt;/p&gt;

&lt;p&gt;Could you please take care of this patch?&lt;/p&gt;

&lt;p&gt;Thanks&lt;/p&gt;

&lt;p&gt;Peter&lt;/p&gt;</comment>
                            <comment id="134038" author="lixi" created="Fri, 20 Nov 2015 02:39:47 +0000"  >&lt;p&gt;This problem is easy to produce:&lt;/p&gt;

&lt;p&gt;With following patch:&lt;/p&gt;

&lt;p&gt;memset(&amp;amp;start, 0, sizeof(start));&lt;br/&gt;
        start.tc_jobids_str = &quot;*&quot;;&lt;/p&gt;

&lt;p&gt;        start.tc_rpc_rate = tbf_rate;&lt;br/&gt;
        start.tc_rule_flags = NTRS_DEFAULT;&lt;br/&gt;
        start.tc_name = NRS_TBF_DEFAULT_RULE;&lt;br/&gt;
        INIT_LIST_HEAD(&amp;amp;start.tc_jobids);&lt;br/&gt;
        //rc = nrs_tbf_rule_start(policy, head, &amp;amp;start);&lt;br/&gt;
        rc = -EINVAL;&lt;br/&gt;
        return rc;&lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;root@QYJ tests&amp;#93;&lt;/span&gt;# lctl set_param ost.OSS.ost_io.nrs_policies=&quot;tbf jobid&quot;&lt;br/&gt;
ost.OSS.ost_io.nrs_policies=tbf jobid&lt;br/&gt;
error: set_param: setting /proc/fs/lustre/ost/OSS/ost_io/nrs_policies=tbf jobid: Invalid argument&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;root@QYJ tests&amp;#93;&lt;/span&gt;# sh llmountcleanup.sh &lt;br/&gt;
Stopping clients: QYJ /mnt/lustre (opts:-f)&lt;br/&gt;
Stopping client QYJ /mnt/lustre opts:-f&lt;br/&gt;
Stopping clients: QYJ /mnt/lustre2 (opts:-f)&lt;br/&gt;
Stopping /mnt/mds1 (opts:-f) on QYJ&lt;br/&gt;
Stopping /mnt/ost1 (opts:-f) on QYJ&lt;br/&gt;
Stopping /mnt/ost2 (opts:-f) on QYJ&lt;/p&gt;

&lt;p&gt;LNetError: 19587:0:(module.c:412:exit_libcfs_module()) Portals memory leaked: 131600 bytes&lt;br/&gt;
Memory leaks detected&lt;/p&gt;</comment>
                            <comment id="134042" author="emoly.liu" created="Fri, 20 Nov 2015 03:41:12 +0000"  >&lt;p&gt;Lixi, thanks for your reproducer!&lt;/p&gt;

&lt;p&gt;As we discussed, this problem exists in all NRS policies code, not only TBF, so I think it&apos;s related to NRS state setting. Your patch does work, but we need to know the root cause and then fix it.&lt;/p&gt;</comment>
                            <comment id="134054" author="lixi" created="Fri, 20 Nov 2015 07:01:26 +0000"  >&lt;p&gt;I don&apos;t think it is NRS state setting problem. If all funcitons of op_policy_start() always free all memory they allocats when failure happends, no memory will be leaked. And I checked all nrs_*_start functions. I didn&apos;t find any problem.&lt;/p&gt;</comment>
                            <comment id="183891" author="gerrit" created="Wed, 8 Feb 2017 06:23:05 +0000"  >&lt;p&gt;Emoly Liu (emoly.liu@intel.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/25319&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/25319&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-7441&quot; title=&quot;Memory leak in nrs_tbf_*_startup&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-7441&quot;&gt;&lt;del&gt;LU-7441&lt;/del&gt;&lt;/a&gt; nrs: some code cleanup in NRS policies&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 740df75fe6952bada2b505a7bd751aff09a07e94&lt;/p&gt;</comment>
                            <comment id="186547" author="gerrit" created="Wed, 1 Mar 2017 05:10:15 +0000"  >&lt;p&gt;Oleg Drokin (oleg.drokin@intel.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/17224/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/17224/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-7441&quot; title=&quot;Memory leak in nrs_tbf_*_startup&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-7441&quot;&gt;&lt;del&gt;LU-7441&lt;/del&gt;&lt;/a&gt; nrs: Free hash table if failed to start a nrs policy&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: cd362fa9186a3e4de34c7c68908e6d3d429bb087&lt;/p&gt;</comment>
                            <comment id="201406" author="jgmitter" created="Fri, 7 Jul 2017 20:49:55 +0000"  >&lt;p&gt;Issue here is resolved and landed for 2.10.0.  The code cleanup patch is moved to a separate ticket:  &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-9750&quot; title=&quot;misc code cleanups in nrs policy code&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-9750&quot;&gt;&lt;del&gt;LU-9750&lt;/del&gt;&lt;/a&gt;.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="47158">LU-9750</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <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_10490" key="com.atlassian.jira.plugin.system.customfieldtypes:datepicker">
                        <customfieldname>End date</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Fri, 20 Nov 2015 09:12:05 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10390" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hzxt9r:</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>
                                                                                            <customfield id="customfield_10060" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Severity</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10022"><![CDATA[3]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10493" key="com.atlassian.jira.plugin.system.customfieldtypes:datepicker">
                        <customfieldname>Start date</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Tue, 17 Nov 2015 09:12:05 +0000</customfieldvalue>

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