<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:42:35 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-11290] Batch callbacks in osc_page_gang_lookup</title>
                <link>https://jira.whamcloud.com/browse/LU-11290</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;Lock cancellation can be very time consuming when there are many pages under a lock.&lt;/p&gt;

&lt;p&gt;One easy area for improvement is the osc_page_gang_lookup callback functions - These work on individual pages from an array, but they can be trivially modified to work on the entire array at once, reducing overhead.&lt;/p&gt;

&lt;p&gt;I&apos;ve got a simple patch for this, which improves performance of lock cancellation by about 10%, and truncate&#160;&lt;span class=&quot;error&quot;&gt;&amp;#91;when pages are in cache&amp;#93;&lt;/span&gt;&#160;(which also uses the call back) by about 5%.&lt;/p&gt;</description>
                <environment></environment>
        <key id="53139">LU-11290</key>
            <summary>Batch callbacks in osc_page_gang_lookup</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="dongyang">Dongyang Li</assignee>
                                    <reporter username="paf">Patrick Farrell</reporter>
                        <labels>
                    </labels>
                <created>Tue, 28 Aug 2018 19:51:39 +0000</created>
                <updated>Wed, 2 Jun 2021 23:26:35 +0000</updated>
                            <resolved>Wed, 2 Jun 2021 23:26:35 +0000</resolved>
                                                    <fixVersion>Lustre 2.15.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>8</watches>
                                                                            <comments>
                            <comment id="232695" author="gerrit" created="Tue, 28 Aug 2018 19:54:42 +0000"  >&lt;p&gt;Patrick Farrell (paf@cray.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/33089&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/33089&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-11290&quot; title=&quot;Batch callbacks in osc_page_gang_lookup&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-11290&quot;&gt;&lt;del&gt;LU-11290&lt;/del&gt;&lt;/a&gt;: Batch gang_lookup cbs&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 5c53ea14823b8fd710be967390a3bf84fc55c725&lt;/p&gt;</comment>
                            <comment id="274879" author="gerrit" created="Thu, 9 Jul 2020 14:44:35 +0000"  >&lt;p&gt;Alexander Zarochentsev (alexander.zarochentsev@hpe.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/39327&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/39327&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-11290&quot; title=&quot;Batch callbacks in osc_page_gang_lookup&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-11290&quot;&gt;&lt;del&gt;LU-11290&lt;/del&gt;&lt;/a&gt; ldlm: page discard speedup&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 7731839accebd6f1dae77ad7757a074dedbefb0f&lt;/p&gt;</comment>
                            <comment id="275264" author="zam" created="Mon, 13 Jul 2020 16:31:40 +0000"  >&lt;p&gt;pages discard speedup from &lt;a href=&quot;https://review.whamcloud.com/39327&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/39327&lt;/a&gt; can be seen in a simple test with a 30G cached file:&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;[root@c-lmo037 ~]# ls -lh /mnt/cslmo17/
total 31G
-rw-r--r-- 1 root root  31G Jun  4 17:11 20G
drwxrwxrwx 2 root root 4.0K Jun  3 18:18 d0.metabench
[root@c-lmo037 ~]# 
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;no fix: &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;[root@c-lmo037 ~]# cat /mnt/testfs/20G &amp;gt; /dev/null; time echo 1 &amp;gt;&amp;gt; /mnt/cslmo17/20G 

real	0m9.622s
user	0m0.001s
sys	0m0.000s
[root@c-lmo037 ~]# cat /mnt/testfs/20G &amp;gt; /dev/null; time echo 1 &amp;gt;&amp;gt; /mnt/cslmo17/20G 

real	0m9.421s
user	0m0.000s
sys	0m0.001s
[root@c-lmo037 ~]#
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;and with the fix:&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;[root@c-lmo037 ~]# cat /mnt/testfs/20G &amp;gt; /dev/null; time echo 1 &amp;gt;&amp;gt; /mnt/cslmo17/20G 

real	0m7.140s
user	0m0.001s
sys	0m0.000s
[root@c-lmo037 ~]# cat /mnt/testfs/20G &amp;gt; /dev/null; time echo 1 &amp;gt;&amp;gt; /mnt/cslmo17/20G 

real	0m7.240s
user	0m0.000s
sys	0m0.001s
[root@c-lmo037 ~]#
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;23% less time spent.&lt;/p&gt;</comment>
                            <comment id="285534" author="gerrit" created="Thu, 19 Nov 2020 10:19:14 +0000"  >&lt;p&gt;Oleg Drokin (green@whamcloud.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/39327/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/39327/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-11290&quot; title=&quot;Batch callbacks in osc_page_gang_lookup&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-11290&quot;&gt;&lt;del&gt;LU-11290&lt;/del&gt;&lt;/a&gt; ldlm: page discard speedup&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 0f48cd0b9856fe1ea920b8abab3579ded0b9511e&lt;/p&gt;</comment>
                            <comment id="285562" author="pjones" created="Thu, 19 Nov 2020 14:17:13 +0000"  >&lt;p&gt;Does the original patch from &lt;a href=&quot;https://jira.whamcloud.com/secure/ViewProfile.jspa?name=paf&quot; class=&quot;user-hover&quot; rel=&quot;paf&quot;&gt;paf&lt;/a&gt; still need to land or can it be abandoned?&lt;/p&gt;</comment>
                            <comment id="302727" author="adilger" created="Wed, 26 May 2021 21:28:23 +0000"  >&lt;p&gt;I think patch: &lt;a href=&quot;https://review.whamcloud.com/33089&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/33089&lt;/a&gt; &quot;&lt;tt&gt;&lt;a href=&quot;https://jira.whamcloud.com/browse/LU-11290&quot; title=&quot;Batch callbacks in osc_page_gang_lookup&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-11290&quot;&gt;&lt;del&gt;LU-11290&lt;/del&gt;&lt;/a&gt;: Batch gang_lookup cbs&lt;/tt&gt;&quot; is still useful to land, as it improves a different part of the code.&lt;/p&gt;</comment>
                            <comment id="302752" author="zam" created="Thu, 27 May 2021 05:05:29 +0000"  >&lt;p&gt;&amp;gt;Batch gang_lookup cbs&quot; is still useful to land, as it improves a different part of the code.&lt;br/&gt;
yes it gives another 5% to lock cancel speed. I will upload it soon.&lt;/p&gt;</comment>
                            <comment id="303320" author="gerrit" created="Wed, 2 Jun 2021 17:47:57 +0000"  >&lt;p&gt;Oleg Drokin (green@whamcloud.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/33089/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/33089/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-11290&quot; title=&quot;Batch callbacks in osc_page_gang_lookup&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-11290&quot;&gt;&lt;del&gt;LU-11290&lt;/del&gt;&lt;/a&gt; osc: Batch gang_lookup cbs&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 0d6d0b7bc95a82dee02d35d0a8a41d24692cad45&lt;/p&gt;</comment>
                            <comment id="303375" author="pjones" created="Wed, 2 Jun 2021 23:26:35 +0000"  >&lt;p&gt;Landed for 2.15&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                                        </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="64412">LU-14711</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="47978">LU-9920</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|i001d3:</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>