<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 03:12: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-14803] Activate relaxed ordering optimization on MOFED cards</title>
                <link>https://jira.whamcloud.com/browse/LU-14803</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;IB access flags &quot;IB_ACCESS_RELAXED_ORDERING/IBV_ACCESS_RELAXED_ORDERING&quot; was added in 5.6 (commit 2233c6609c11146ed1a26eec2e4335131077a608: &quot;RDMA/uverbs: Add new relaxed ordering memory region access flag&quot;) and in MOFED-5.0-1.&lt;/p&gt;

&lt;p&gt;Since MOFED 5.1-0.6.6.0, &quot;relaxed ordering&quot; PCI feature is supported for ConnectX-4 and above:&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;Relaxed ordering is a PCIe feature which allows flexibility in the transaction order over the PCIe. This reduces the number of retransmissions on the lane, and increases performance up to 4 times.&lt;br/&gt;
 &lt;span class=&quot;error&quot;&gt;&amp;#91;...&amp;#93;&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;ref: &lt;a href=&quot;https://docs.mellanox.com/display/MLNXOFEDv531050/Release+Notes+Change+Log+History&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://docs.mellanox.com/display/MLNXOFEDv531050/Release+Notes+Change+Log+History&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The following patch add the flag IB_ACCESS_RELAXED_ORDERING to ib access flags and add ko2iblnd parameter &quot;ib_relaxed_ordering&quot; to deactivate/activate the feature (if the driver or kernel have buggy implementation).&lt;/p&gt;</description>
                <environment></environment>
        <key id="64945">LU-14803</key>
            <summary>Activate relaxed ordering optimization on MOFED cards</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="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="eaujames">Etienne Aujames</assignee>
                                    <reporter username="eaujames">Etienne Aujames</reporter>
                        <labels>
                    </labels>
                <created>Thu, 1 Jul 2021 13:14:00 +0000</created>
                <updated>Fri, 8 Oct 2021 17:34:48 +0000</updated>
                                                                                <due></due>
                            <votes>0</votes>
                                    <watches>6</watches>
                                                                            <comments>
                            <comment id="305998" author="gerrit" created="Thu, 1 Jul 2021 14:01:45 +0000"  >&lt;p&gt;Etienne AUJAMES (eaujames@ddn.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/44125&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/44125&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-14803&quot; title=&quot;Activate relaxed ordering optimization on MOFED cards&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-14803&quot;&gt;LU-14803&lt;/a&gt; o2iblnd: Activate relaxed ordering optimization&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: cc3747a2678a0ebde553a5e78b1563943c20f258&lt;/p&gt;</comment>
                            <comment id="306014" author="delbaryg" created="Thu, 1 Jul 2021 14:57:49 +0000"  >&lt;p&gt;Hello Etienne,&lt;/p&gt;

&lt;p&gt;It is useful from PCie &lt;b&gt;Gen4&lt;/b&gt; Mellanox card ie &amp;gt;= ConnectX-6. We have seen huge improvement (with large size lnet message) +40% in bandwidth (We forced &quot;relaxed ordering&quot; in burning mlx card config, because we had Mofed 4.7).&lt;br/&gt;
One question, the feature seems available from MOFED 5.1-0.6.6.0 but not from MOFED 5.0.1 (as you have mentioned in your description), can you confirm it?&lt;/p&gt;

&lt;p&gt;Gael&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</comment>
                            <comment id="315047" author="eaujames" created="Fri, 8 Oct 2021 17:34:48 +0000"  >&lt;p&gt;The patch above does not work with MOFED5.1 (IB_ACCESS_RELAXED_ORDERING flag is not supported for Fast Memory Region):&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;
[Mon Sep 27 10:36:55 2021] LNet: Added LNI 172.18.4.1@o2ib [32/1024/0/180]
[Mon Sep 27 10:37:01 2021] infiniband mlx5_0: set_reg_wr:839:(pid 17412): Fast update of atomic access &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; MR is disabled
[Mon Sep 27 10:37:01 2021] LNetError: 17412:0:(o2iblnd_cb.c:1031:kiblnd_post_tx_locked()) Error -22 posting transmit to 172.18.4.2@o2ib
[Mon Sep 27 10:37:01 2021] infiniband mlx5_0: set_reg_wr:839:(pid 17410): Fast update of atomic access &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; MR is disabled
[Mon Sep 27 10:37:01 2021] infiniband mlx5_0: set_reg_wr:839:(pid 17409): Fast update of atomic access &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; MR is disabled
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;After reading some MOFED commit, it seems that MOFED 5.2 support the flag but only for ConnectX-7 cards:&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;
    commit 896ec9735336f5adb576d372ed7e411bce2fc74c
    Author: Meir Lichtinger &amp;lt;meirl@mellanox.com&amp;gt;
    Date:   Thu Jul 16 13:52:48 2020 +0300

        RDMA/mlx5: Set mkey relaxed ordering by UMR with ConnectX-7
        
        Up to ConnectX-7 UMR is not used when user passes relaxed ordering access
        flag. ConnectX-7 supports setting relaxed ordering read/write mkey
        attribute by UMR, indicated by &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; HCA capabilities.
        
        With ConnectX-7 driver uses UMR when user set relaxed ordering access
        flag, in contrast to previous silicon models. Specifically it includes
        setting relvant flags of mkey context mask in UMR control segment, and
        relaxed ordering write and read flags in UMR mkey context segment.
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;On MOFED 5.4 relaxed ordering is activated by default for all kernel services. For this purpose flag IB_ACCESS_RELAXED_ORDERING is changed to IB_ACCESS_DISABLE_RELAXED_ORDERING.&lt;br/&gt;
&lt;a href=&quot;https://patchwork.kernel.org/project/linux-rdma/cover/cover.1621505111.git.leonro@nvidia.com/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://patchwork.kernel.org/project/linux-rdma/cover/cover.1621505111.git.leonro@nvidia.com/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;So this patch &lt;a href=&quot;https://review.whamcloud.com/44125&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/44125&lt;/a&gt; will work only for MOFED-5.2/5.3 for ConnectX-7 cards, which not really useful.&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|i01y9j:</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>