<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:31: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-10085] Memory leak from memory cache lnet_small_mds_cachep</title>
                <link>https://jira.whamcloud.com/browse/LU-10085</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;Recently I discovered the following issue when I was trying to clean up modules.&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;[50094.228576] LNet: Removed LNI 10.8.1.68@tcp                                  
[50094.236330] =============================================================================
[50094.247508] BUG kmalloc-128 (Tainted: G           OE  ------------  ): Objects remaining in kmalloc-128 on kmem_cache_close()
[50094.262048] -----------------------------------------------------------------------------
                                                                                
[50094.276429] Disabling lock debugging due to kernel taint                     
[50094.284021] INFO: Slab 0xffffea00216f7900 objects=64 used=4 fp=0xffff88085bde4e00 flags=0x2fffff00004080
[50094.296314] CPU: 67 PID: 92869 Comm: rmmod Tainted: G    B      OE  ------------   3.10.0-514.26.2.el7_lustre.x86_64 #1
[50094.309978] Hardware name: Intel Corporation S2600WT2R/S2600WT2R, BIOS SE5C610.86B.01.01.0016.033120161139 03/31/2016
[50094.323386]  ffffea00216f7900 0000000073dedcc2 ffff88072bf4fc98 ffffffff8168729f
[50094.333183]  ffff88072bf4fd70 ffffffff811da714 ffff880100000020 ffff88072bf4fd80
[50094.342911]  ffff88072bf4fd30 656a624f000000c0 616d657220737463 6e6920676e696e69
[50094.352564] Call Trace:                                                      
[50094.356605]  [&amp;lt;ffffffff8168729f&amp;gt;] dump_stack+0x19/0x1b                       
[50094.363583]  [&amp;lt;ffffffff811da714&amp;gt;] slab_err+0xb4/0xe0                         
[50094.370353]  [&amp;lt;ffffffff81002928&amp;gt;] ? calibrate_delay+0x208/0x8e0              
[50094.378162]  [&amp;lt;ffffffff811d8cf0&amp;gt;] ? arch_local_irq_save+0x20/0x20            
[50094.386167]  [&amp;lt;ffffffff81318729&amp;gt;] ? free_cpumask_var+0x9/0x10                
[50094.393769]  [&amp;lt;ffffffff810fa1bd&amp;gt;] ? on_each_cpu_cond+0xcd/0x180              
[50094.401556]  [&amp;lt;ffffffff811dc150&amp;gt;] ? kmem_cache_alloc_bulk+0x140/0x140        
[50094.409938]  [&amp;lt;ffffffff811dda13&amp;gt;] ? __kmalloc+0x1f3/0x240                    
[50094.417155]  [&amp;lt;ffffffff811e00eb&amp;gt;] ? kmem_cache_close+0x12b/0x2f0             
[50094.425038]  [&amp;lt;ffffffff811e010c&amp;gt;] kmem_cache_close+0x14c/0x2f0               
[50094.432723]  [&amp;lt;ffffffff811e02c4&amp;gt;] __kmem_cache_shutdown+0x14/0x80            
[50094.440705]  [&amp;lt;ffffffff811a5e14&amp;gt;] kmem_cache_destroy+0x44/0xf0               
[50094.448391]  [&amp;lt;ffffffffa09fd4f1&amp;gt;] lnet_unprepare+0x161/0x2f0 [lnet]          
[50094.456544]  [&amp;lt;ffffffffa0a00abd&amp;gt;] LNetNIFini+0x8d/0x110 [lnet]               
[50094.464264]  [&amp;lt;ffffffffa0cb293d&amp;gt;] ptlrpc_ni_fini+0x15d/0x1e0 [ptlrpc]        
[50094.472607]  [&amp;lt;ffffffffa0ccdd25&amp;gt;] ? ptlrpcd_free+0x145/0x2d0 [ptlrpc]        
[50094.480915]  [&amp;lt;ffffffffa0cb2c73&amp;gt;] ptlrpc_exit_portals+0x13/0x20 [ptlrpc]     
[50094.489763]  [&amp;lt;ffffffffa0d433e3&amp;gt;] ptlrpc_exit+0x22/0xc3f [ptlrpc]            
[50094.497874]  [&amp;lt;ffffffff810fe3db&amp;gt;] SyS_delete_module+0x16b/0x2d0              
[50094.505766]  [&amp;lt;ffffffff81697989&amp;gt;] system_call_fastpath+0x16/0x1b             
[50094.513724] INFO: Object 0xffff88085bde4000 @offset=0                        
[50094.520585] INFO: Object 0xffff88085bde4200 @offset=512                      
[50094.527597] INFO: Object 0xffff88085bde5400 @offset=5120                     
[50094.534679] INFO: Object 0xffff88085bde5a80 @offset=6784    
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;From the backtrace, the kernel found that there existed objects from memory cache lnet_small_mds_cachep:&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;(gdb) l *(lnet_unprepare+0x161)
0x1521 is in lnet_unprepare (/home/jinxiong/work/flr/lnet/lnet/api-ni.c:253).
248	lnet_descriptor_cleanup(void)
249	{
250	
251		&lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (lnet_small_mds_cachep) {
252			kmem_cache_destroy(lnet_small_mds_cachep);
253			lnet_small_mds_cachep = NULL;
254		}
255	
256		&lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (lnet_mes_cachep) {
257			kmem_cache_destroy(lnet_mes_cachep);
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Please investigate if there is any memory leaks in LNET for this memory cache.&lt;/p&gt;</description>
                <environment></environment>
        <key id="48615">LU-10085</key>
            <summary>Memory leak from memory cache lnet_small_mds_cachep</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="1" iconUrl="https://jira.whamcloud.com/images/icons/statuses/open.png" description="The issue is open and ready for the assignee to start work on it.">Open</status>
                    <statusCategory id="2" key="new" colorName="default"/>
                                    <resolution id="-1">Unresolved</resolution>
                                        <assignee username="sharmaso">Sonia Sharma</assignee>
                                    <reporter username="jay">Jinshan Xiong</reporter>
                        <labels>
                    </labels>
                <created>Thu, 5 Oct 2017 19:04:22 +0000</created>
                <updated>Tue, 10 Oct 2017 00:06:27 +0000</updated>
                                                                                <due></due>
                            <votes>0</votes>
                                    <watches>5</watches>
                                                                            <comments>
                            <comment id="210629" author="jgmitter" created="Mon, 9 Oct 2017 17:16:13 +0000"  >&lt;p&gt;Hi Sonia,&lt;/p&gt;

&lt;p&gt;Is this something you can look into when you have time?&lt;/p&gt;

&lt;p&gt;Thanks.&lt;br/&gt;
Joe&lt;/p&gt;</comment>
                            <comment id="210678" author="sharmaso" created="Tue, 10 Oct 2017 00:06:27 +0000"  >&lt;p&gt;It might have cropped up after the fix for &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-9203&quot; title=&quot;parallel-scale-nfsv3 test_compilebench: MDS hit BUG: unable to handle kernel paging request&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-9203&quot;&gt;&lt;del&gt;LU-9203&lt;/del&gt;&lt;/a&gt;.&#160;Investigating.&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|hzzldz:</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>
                                                                                                                                                                                                                                                                                                                                                        </customfields>
    </item>
</channel>
</rss>