<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 01:50:07 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-5281] Memory leak when userspace code uses mmap on lustre files</title>
                <link>https://jira.whamcloud.com/browse/LU-5281</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;We&apos;re seeing kernel a memory leak when a userspace process uses mmap&apos;d files on lustre. It looks like memory is leaked for each unique file that is mmap&apos;d. The code does not need to run as root. The same code on local disk does not cause a leak. The leak will eventually consume all system memory and take the machine down.&lt;/p&gt;

&lt;p&gt;To reproduce the bug, compile the below code and run something similar to: find /lustre/ -type f -print0 | xargs -0 -I{} ./mmap_bug &quot;{}&quot;&lt;/p&gt;

&lt;p&gt;Kernel version: 3.4.93 (also 3.2.58)&lt;br/&gt;
Lustre version: 2.5.1 (patchless client)&lt;/p&gt;


&lt;p&gt;#include &amp;lt;sys/types.h&amp;gt;&lt;br/&gt;
#include &amp;lt;sys/mman.h&amp;gt;&lt;br/&gt;
#include &amp;lt;unistd.h&amp;gt;&lt;br/&gt;
#include &amp;lt;fcntl.h&amp;gt;&lt;/p&gt;

&lt;p&gt;int main(int argc, char **argv) {&lt;br/&gt;
	int f = open(argv&lt;span class=&quot;error&quot;&gt;&amp;#91;1&amp;#93;&lt;/span&gt;, O_RDONLY);&lt;br/&gt;
	void *m = mmap(NULL, 8192, PROT_READ, MAP_SHARED, f, 0);&lt;br/&gt;
	munmap(m, 8192);&lt;br/&gt;
	close(f);&lt;/p&gt;

&lt;p&gt;	return 0;&lt;br/&gt;
}&lt;/p&gt;</description>
                <environment>Kernel version: 3.4.93 (also 3.2.58)&lt;br/&gt;
Lustre version: 2.5.1 (patchless client)</environment>
        <key id="25400">LU-5281</key>
            <summary>Memory leak when userspace code uses mmap on lustre files</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="3">Duplicate</resolution>
                                        <assignee username="wc-triage">WC Triage</assignee>
                                    <reporter username="aprout">Andrew Prout</reporter>
                        <labels>
                    </labels>
                <created>Tue, 1 Jul 2014 20:49:43 +0000</created>
                <updated>Thu, 31 Jul 2014 17:32:34 +0000</updated>
                            <resolved>Tue, 1 Jul 2014 21:39:20 +0000</resolved>
                                    <version>Lustre 2.5.1</version>
                                                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                            <comments>
                            <comment id="87921" author="jay" created="Tue, 1 Jul 2014 21:39:20 +0000"  >&lt;p&gt;This should be a reproduction of &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-5179&quot; title=&quot;Reading files from lustre results in stuck anonymous memory when JOBID is enabled&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-5179&quot;&gt;&lt;del&gt;LU-5179&lt;/del&gt;&lt;/a&gt;. Please reopen this ticket if the patch can&apos;t fix this issue.&lt;/p&gt;</comment>
                            <comment id="90564" author="aprout" created="Thu, 31 Jul 2014 17:32:34 +0000"  >&lt;p&gt;The &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-5179&quot; title=&quot;Reading files from lustre results in stuck anonymous memory when JOBID is enabled&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-5179&quot;&gt;&lt;del&gt;LU-5179&lt;/del&gt;&lt;/a&gt; patch did fix it. I had seen that bug, but we didn&apos;t match the conditions described by Oleg (we do not have the jobid functionality enabled).&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|hzwqe7:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10090" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>14741</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>