<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 03:03:13 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-13669] improve mmap performances</title>
                <link>https://jira.whamcloud.com/browse/LU-13669</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;We have observed slow performance on mmap read on some applications.&lt;/p&gt;

&lt;p&gt;The problem is if access pattern is neither sequential nor stride reading, but&lt;br/&gt;
still adjacent in a small range and then seek a random position.&lt;/p&gt;

&lt;p&gt;So the pattern could be something like this:&lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;1M data&amp;#93;&lt;/span&gt; &lt;span class=&quot;error&quot;&gt;&amp;#91;hole..&amp;#93;&lt;/span&gt; &lt;span class=&quot;error&quot;&gt;&amp;#91;0.5M data&amp;#93;&lt;/span&gt; &lt;span class=&quot;error&quot;&gt;&amp;#91;hole&amp;#93;&lt;/span&gt;......&lt;span class=&quot;error&quot;&gt;&amp;#91;0.7M data&amp;#93;&lt;/span&gt;......&lt;span class=&quot;error&quot;&gt;&amp;#91;1M data&amp;#93;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;So every time application want to access some data, the data is not only 4K but&lt;br/&gt;
cosed to let&apos;s say 1M range, so if we could predict this kind of behavior and next time we hit page miss, we use last time range for prefetching.&lt;/p&gt;</description>
                <environment></environment>
        <key id="59548">LU-13669</key>
            <summary>improve mmap performances</summary>
                <type id="4" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11310&amp;avatarType=issuetype">Improvement</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="wshilong">Wang Shilong</assignee>
                                    <reporter username="wshilong">Wang Shilong</reporter>
                        <labels>
                    </labels>
                <created>Fri, 12 Jun 2020 07:19:26 +0000</created>
                <updated>Sat, 4 Dec 2021 13:08:15 +0000</updated>
                            <resolved>Mon, 28 Jun 2021 23:50:32 +0000</resolved>
                                                    <fixVersion>Lustre 2.14.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>7</watches>
                                                                            <comments>
                            <comment id="272727" author="gerrit" created="Fri, 12 Jun 2020 07:23:19 +0000"  >&lt;p&gt;Wang Shilong (wshilong@ddn.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/38916&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/38916&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-13669&quot; title=&quot;improve mmap performances&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-13669&quot;&gt;&lt;del&gt;LU-13669&lt;/del&gt;&lt;/a&gt; llite: try to improve mmap performance&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 84116d4451917e861671079ddf7ef57c722565c2&lt;/p&gt;</comment>
                            <comment id="274874" author="wshilong" created="Thu, 9 Jul 2020 14:05:53 +0000"  >&lt;p&gt;Here is a benchmarking from Ihara:&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;master
[root@amd01 ~]#  echo 3 &amp;gt; /proc/sys/vm/drop_caches; fio --name=randread --directory=/ai400/fio --rw=randread --ioengine=mmap --bs=128K --numjobs=32 --filesize=200G --filename=randread --time_based --status-interval=10s --runtime=30s --allow_file_create=1 --group_reporting --disable_lat=1 --disable_clat=1 --disable_slat=1 --disk_util=0 --aux-path=/tmp --randrepeat=0 --unique_filename=0 --fallocate=0 
[root@amd01 ~]# lctl get_param llite.*.stats
llite.ai400-ffff8d855cf6a800.stats=
snapshot_time             1594299686.416386775 secs.nsecs
open                      49 samples [usec] 0 1401 22183
close                     49 samples [usec] 6 246 1117
mmap                      32 samples [usec] 7 17 381
page_fault                1867904 samples [usec] 0 37698 956414944
getattr                   34 samples [usec] 1 25 107
inode_permission          214 samples [usec] 0 22 407
master + patch
[root@amd01 ~]# echo 3 &amp;gt; /proc/sys/vm/drop_caches; fio --name=randread --directory=/ai400/fio --rw=randread --ioengine=mmap --bs=128K --numjobs=32 --filesize=200G --filename=randread --time_based --status-interval=10s --runtime=30s --allow_file_create=1 --group_reporting --disable_lat=1 --disable_clat=1 --disable_slat=1 --disk_util=0 --aux-path=/tmp --randrepeat=0 --unique_filename=0 --fallocate=0
[root@amd01 ~]# lctl get_param llite.*.stats
llite.ai400-ffff8d862cbc6000.stats=
snapshot_time             1594299943.816443708 secs.nsecs
open                      63 samples [usec] 1 4007 118809
close                     63 samples [usec] 4 250 1410
mmap                      32 samples [usec] 8 51 659
page_fault                17773312 samples [usec] 0 6543 933220595
getattr                   34 samples [usec] 2 224 440
inode_permission          256 samples [usec] 0 276 1292
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;tested first 30sec, mostly no cached mmap&lt;br/&gt;
512usec vs 52usec&lt;br/&gt;
10x latency reduction.&lt;/p&gt;

&lt;p&gt;max latency 37698usec vs 6543usec&lt;br/&gt;
max latency is also very small&lt;/p&gt;</comment>
                            <comment id="279668" author="gerrit" created="Wed, 16 Sep 2020 06:25:58 +0000"  >&lt;p&gt;Wang Shilong (wshilong@whamcloud.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/39926&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/39926&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-13669&quot; title=&quot;improve mmap performances&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-13669&quot;&gt;&lt;del&gt;LU-13669&lt;/del&gt;&lt;/a&gt; readahead: increase ra window progressively&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: fc72ad754bc8fcc86ac96661329d9b074e3703e8&lt;/p&gt;</comment>
                            <comment id="287048" author="gerrit" created="Wed, 9 Dec 2020 07:48:07 +0000"  >&lt;p&gt;Oleg Drokin (green@whamcloud.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/38916/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/38916/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-13669&quot; title=&quot;improve mmap performances&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-13669&quot;&gt;&lt;del&gt;LU-13669&lt;/del&gt;&lt;/a&gt; llite: try to improve mmap performance&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 0c5ad4b6df5bf35b291842fc6d42c2720246a026&lt;/p&gt;</comment>
                            <comment id="291460" author="gerrit" created="Mon, 8 Feb 2021 21:54:59 +0000"  >&lt;p&gt;Oleg Drokin (green@whamcloud.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/41228/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/41228/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-13669&quot; title=&quot;improve mmap performances&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-13669&quot;&gt;&lt;del&gt;LU-13669&lt;/del&gt;&lt;/a&gt; llite: make readahead aware of hints&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 7542820698696ed5853ded30c9bf7fd5a78f0937&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="62270">LUDOC-485</issuekey>
        </issuelink>
                            </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|i012lr:</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>