<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:38: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-10776] Large grant requests still don&apos;t work, resulting in small write RPCs</title>
                <link>https://jira.whamcloud.com/browse/LU-10776</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;Previously, &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-2049&quot; title=&quot;add support for OBD_CONNECT_GRANT_PARAM&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-2049&quot;&gt;&lt;del&gt;LU-2049&lt;/del&gt;&lt;/a&gt; introduced a bug with older clients and larger grant requests stemming from 4 MiB RPCs.  This was resolved by a simple tweak to interop behavior, but unfortunately, there are still (at least two...) bugs in the grant handling code with 16 MiB RPCs.&lt;/p&gt;

&lt;p&gt;Specifically, the server automatically refuses grant requests &amp;gt; 2 GiB in size, which is a problem because client side grant requested is calculated like this:&lt;br/&gt;
bytes_per_page*pages_per_rpc*max_rpcs_in_flight + various padding (extent tax, etc)&lt;br/&gt;
(see osc_announce_cached)&lt;/p&gt;

&lt;p&gt;Consider 16 MiB RPCs with 128 RPCs in flight:&lt;br/&gt;
4096*4096*128 = 2 GiB, and that + tax is &amp;gt; 2 GiB.  This gets those requests refused by the server, which results in terrible performance.&lt;/p&gt;

&lt;p&gt;There is a different but also &quot;fun&quot; bug when we go higher:&lt;br/&gt;
16 MiB RPCs with 256 RPCs in flight:&lt;br/&gt;
4096*4096*256 = 4 GiB + tax is &amp;gt; 4 GiB....  Which overflows the 32 bit unsigned o_undirty which is used to communicate grant request to the server.  So we actually request, effectively, only the extent tax and other padding.  This results in a maximum grant request of ~ 19 MiB, which works quite badly.&lt;/p&gt;

&lt;p&gt;The result of all this is badly degraded performance at very high RPC sizes and max_rpcs_in_flight.&lt;/p&gt;

&lt;p&gt;Suggested patch will limit grant request to &amp;lt; 2 GiB.&lt;/p&gt;</description>
                <environment></environment>
        <key id="51130">LU-10776</key>
            <summary>Large grant requests still don&apos;t work, resulting in small write RPCs</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="paf">Patrick Farrell</assignee>
                                    <reporter username="paf">Patrick Farrell</reporter>
                        <labels>
                            <label>patch</label>
                    </labels>
                <created>Mon, 5 Mar 2018 21:17:59 +0000</created>
                <updated>Thu, 7 Nov 2019 08:39:51 +0000</updated>
                            <resolved>Mon, 9 Apr 2018 20:51:39 +0000</resolved>
                                                    <fixVersion>Lustre 2.12.0</fixVersion>
                    <fixVersion>Lustre 2.10.7</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>5</watches>
                                                                            <comments>
                            <comment id="222442" author="gerrit" created="Mon, 5 Mar 2018 21:42:34 +0000"  >&lt;p&gt;Patrick Farrell (paf@cray.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/31533&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/31533&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-10776&quot; title=&quot;Large grant requests still don&amp;#39;t work, resulting in small write RPCs&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-10776&quot;&gt;&lt;del&gt;LU-10776&lt;/del&gt;&lt;/a&gt; osc: Do not request more than 2GiB grant&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 329aa190e3790c1485c0622fc5d0a110918f5d56&lt;/p&gt;</comment>
                            <comment id="225493" author="gerrit" created="Mon, 9 Apr 2018 19:49:21 +0000"  >&lt;p&gt;Oleg Drokin (oleg.drokin@intel.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/31533/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/31533/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-10776&quot; title=&quot;Large grant requests still don&amp;#39;t work, resulting in small write RPCs&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-10776&quot;&gt;&lt;del&gt;LU-10776&lt;/del&gt;&lt;/a&gt; osc: Do not request more than 2GiB grant&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: c0246d8878097a618efa9296d90896ac2cc2e9e4&lt;/p&gt;</comment>
                            <comment id="225542" author="pjones" created="Mon, 9 Apr 2018 20:51:39 +0000"  >&lt;p&gt;&lt;font color=&quot;#000000&quot;&gt;Landed for 2.12&lt;/font&gt;&lt;/p&gt;</comment>
                            <comment id="240184" author="gerrit" created="Thu, 17 Jan 2019 03:04:07 +0000"  >&lt;p&gt;Li Xi (lixi@ddn.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/34051&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/34051&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-10776&quot; title=&quot;Large grant requests still don&amp;#39;t work, resulting in small write RPCs&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-10776&quot;&gt;&lt;del&gt;LU-10776&lt;/del&gt;&lt;/a&gt; osc: Do not request more than 2GiB grant&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: b2_10&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 3accbc1867e03375e82718ab37b31be967e4a757&lt;/p&gt;</comment>
                            <comment id="242032" author="gerrit" created="Fri, 15 Feb 2019 01:28:46 +0000"  >&lt;p&gt;Oleg Drokin (green@whamcloud.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/34051/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/34051/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-10776&quot; title=&quot;Large grant requests still don&amp;#39;t work, resulting in small write RPCs&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-10776&quot;&gt;&lt;del&gt;LU-10776&lt;/del&gt;&lt;/a&gt; osc: Do not request more than 2GiB grant&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: b2_10&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 5ad464969157aee2d868f09a4dc302e01d0221c6&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                                        </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                                        </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|hzztw7:</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>