<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:59:05 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-13182] MAP_POPULATE hangs with Linux 5.4</title>
                <link>https://jira.whamcloud.com/browse/LU-13182</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;While testing Lustre with Linux 5.4 (kernel installed on top of Ubuntu 18.04), I came across an issue with mmap_cat test utility.&lt;/p&gt;

&lt;p&gt;In this program, the call to mmap is:&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;
mmappedData = mmap(NULL, filesize, PROT_READ, MAP_PRIVATE | MAP_POPULATE, fd, 0);
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;When using mmap_cat on a file, it hangs. However, if the call to mmap is changed as following, it works:&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;
mmappedData = mmap(NULL, filesize, PROT_READ, MAP_PRIVATE, fd, 0);
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;So it seems the bug is related to the MAP_POPULATE flag, which semantic is:&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;MAP_POPULATE (since Linux 2.5.46)
              Populate (prefault) page tables for a mapping.  For a file
              mapping, this causes read-ahead on the file.  This will help
              to reduce blocking on page faults later.  MAP_POPULATE is sup&#8208;
              ported for private mappings only since Linux 2.6.23.
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
        <key id="57954">LU-13182</key>
            <summary>MAP_POPULATE hangs with Linux 5.4</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="green">Oleg Drokin</assignee>
                                    <reporter username="sebastien">Sebastien Buisson</reporter>
                        <labels>
                    </labels>
                <created>Fri, 31 Jan 2020 16:23:43 +0000</created>
                <updated>Wed, 29 Sep 2021 18:35:39 +0000</updated>
                            <resolved>Tue, 3 Nov 2020 05:18:51 +0000</resolved>
                                    <version>Lustre 2.14.0</version>
                                    <fixVersion>Lustre 2.14.0</fixVersion>
                    <fixVersion>Lustre 2.12.7</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>5</watches>
                                                                            <comments>
                            <comment id="282073" author="green" created="Mon, 12 Oct 2020 17:05:15 +0000"  >&lt;p&gt;this problem comes from the fast read patch &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-4257&quot; title=&quot;parallel dds are slower than serial dds&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-4257&quot;&gt;&lt;del&gt;LU-4257&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The hang is because there&apos;s now a loop: ll_fault0()&lt;del&gt;&amp;gt;ll_filemap_fault()&lt;/del&gt;&amp;gt;ll_readpage() return NULL-&amp;gt;filemapfault returns FAULT_RETRY -&amp;gt; ll_fault exits -&amp;gt; kernel retries.&lt;/p&gt;

&lt;p&gt;I am not100% sure why ll_readpage returns NULL yet, is it because the page is not in the mapping or some such?&lt;/p&gt;

&lt;p&gt;Either way disabling the fast read in ll_fault0() works this around for now.&lt;/p&gt;</comment>
                            <comment id="282079" author="gerrit" created="Mon, 12 Oct 2020 20:11:28 +0000"  >&lt;p&gt;Oleg Drokin (green@whamcloud.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/40221&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/40221&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-13182&quot; title=&quot;MAP_POPULATE hangs with Linux 5.4&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-13182&quot;&gt;&lt;del&gt;LU-13182&lt;/del&gt;&lt;/a&gt; llite: Do not use fast read for MAP_POPULATE faults&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 748e88027624040eead5749c2ef374f33915cec9&lt;/p&gt;</comment>
                            <comment id="284088" author="gerrit" created="Tue, 3 Nov 2020 03:41:37 +0000"  >&lt;p&gt;Oleg Drokin (green@whamcloud.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/40221/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/40221/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-13182&quot; title=&quot;MAP_POPULATE hangs with Linux 5.4&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-13182&quot;&gt;&lt;del&gt;LU-13182&lt;/del&gt;&lt;/a&gt; llite: Avoid eternel retry loops with MAP_POPULATE&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: bb50c62c6f4cdd7a31145ab81e7c166e0760ed11&lt;/p&gt;</comment>
                            <comment id="284104" author="pjones" created="Tue, 3 Nov 2020 05:18:51 +0000"  >&lt;p&gt;Landed for 2.14&lt;/p&gt;</comment>
                            <comment id="304013" author="gerrit" created="Wed, 9 Jun 2021 16:32:28 +0000"  >&lt;p&gt;Jian Yu (yujian@whamcloud.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/43958&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/43958&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-13182&quot; title=&quot;MAP_POPULATE hangs with Linux 5.4&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-13182&quot;&gt;&lt;del&gt;LU-13182&lt;/del&gt;&lt;/a&gt; llite: Avoid eternel retry loops with MAP_POPULATE&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: b2_12&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: cd2aa3e27caf988d02c721b4be4916c42cbb710d&lt;/p&gt;</comment>
                            <comment id="304595" author="gerrit" created="Tue, 15 Jun 2021 16:23:02 +0000"  >&lt;p&gt;Oleg Drokin (green@whamcloud.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/43958/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/43958/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-13182&quot; title=&quot;MAP_POPULATE hangs with Linux 5.4&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-13182&quot;&gt;&lt;del&gt;LU-13182&lt;/del&gt;&lt;/a&gt; llite: Avoid eternel retry loops with MAP_POPULATE&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: b2_12&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 21dc165991f9038aefe679cc58fdfc30d65dbaed&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="61151">LU-14021</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="61153">LU-14022</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="59812">LU-13740</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                                        </inwardlinks>
                                    </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_10390" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|i00syf:</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>