<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 03:21:50 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-15850] MDT QOS should always be used for round-robin directories. </title>
                <link>https://jira.whamcloud.com/browse/LU-15850</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;The MDT QOS should always be used for subdirectories created in a parent that has round-robin activated, if the MDT space balance exceeds &lt;tt&gt;qos_threshold_rr&lt;/tt&gt;.  Otherwise, subdirectories in that directory tree will suddenly change from r-r to being &quot;sticky&quot; on a single MDT, which significantly changed the behavior and load distribution across MDTs.  The &quot;threshold by depth&quot; should only be used for directories that would otherwise have always been created on the parent already. &lt;/p&gt;

&lt;p&gt;Related to this, it should be possible to tune the weighting of subdirectories by depth so that this can be adjusted without recompiling the code. &lt;/p&gt;
</description>
                <environment></environment>
        <key id="70278">LU-15850</key>
            <summary>MDT QOS should always be used for round-robin directories. </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="laisiyao">Lai Siyao</assignee>
                                    <reporter username="adilger">Andreas Dilger</reporter>
                        <labels>
                            <label>MON</label>
                    </labels>
                <created>Thu, 12 May 2022 18:00:28 +0000</created>
                <updated>Fri, 28 Oct 2022 17:44:33 +0000</updated>
                            <resolved>Fri, 5 Aug 2022 20:20:17 +0000</resolved>
                                    <version>Lustre 2.15.0</version>
                                    <fixVersion>Lustre 2.16.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>7</watches>
                                                                            <comments>
                            <comment id="335471" author="adilger" created="Thu, 19 May 2022 09:48:25 +0000"  >&lt;p&gt;Lai, I was trying to test my patch to fix the &quot;use space balance for RR directories&quot; issue, but found something very wrong with the max-inherit and max-inherit-rr code, when used with &lt;b&gt;explicitly&lt;/b&gt; inherited default layouts (i.e. layouts set on a non-root directory and copied down the tree while decrementing max-inherit-rr).&lt;/p&gt;

&lt;p&gt;When used with the &lt;b&gt;implicitly&lt;/b&gt; inherited layout from the root directory, the max-inherit-rr value is copied from the ROOT directory, and is compared against &lt;tt&gt;lli_dir_depth&lt;/tt&gt; (which increases with directory depth):&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;
                &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (lsm-&amp;gt;lsm_md_max_inherit_rr != LMV_INHERIT_RR_NONE &amp;amp;&amp;amp;
                    (lsm-&amp;gt;lsm_md_max_inherit_rr == LMV_INHERIT_RR_UNLIMITED ||
                     lsm-&amp;gt;lsm_md_max_inherit_rr &amp;gt;= lli-&amp;gt;lli_dir_depth))
                        op_data-&amp;gt;op_flags |= MF_RR_MKDIR;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;This works as expected because &lt;tt&gt;lsm_md_max_inherit_rr&lt;/tt&gt; is constant when &lt;b&gt;implicitly inherited&lt;/b&gt; from the root directory, and &lt;tt&gt;lli_dir_depth&lt;/tt&gt; is increasing by directory depth.  &lt;b&gt;However&lt;/b&gt;, if &lt;tt&gt;lsm_md_max_inherit_rr&lt;/tt&gt; is on an &lt;b&gt;explicitly copied&lt;/b&gt; default layout on a directory, then &lt;tt&gt;lsm_md_max_inherit_rr&lt;/tt&gt; is decremented by one for each level &lt;b&gt;FROM THE FILESYSTEM ROOT&lt;/b&gt;, while &lt;tt&gt;lli_dir_depth&lt;/tt&gt; is incremented by one for each level.  So in this second case, these values can be totally unrelated and the comparison is meaningless.  For example, if the directory is 10 deep from the filesystem root, then &lt;tt&gt;lli_dir_depth&lt;/tt&gt; must be &amp;gt;= 10 &lt;b&gt;on the parent directory&lt;/b&gt;.&lt;/p&gt;

&lt;p&gt;I&apos;m thinking something like &quot;store &lt;tt&gt;(lsm_md_max_inherit_rr + parent-&amp;gt;lli_dir_depth)&lt;/tt&gt; in memory on the parent directory, so that the child directory (with &lt;tt&gt;(child-&amp;gt;lli_dir_depth = parent-&amp;gt;lli_dir_depth + 1)&lt;/tt&gt;, so that the &quot;&lt;tt&gt;parent-&amp;gt;lli_dir_depth&lt;/tt&gt;&quot; value cancels out and the above check works properly.  However, it doesn&apos;t seem very obvious yet how that will be implemented properly.&lt;/p&gt;</comment>
                            <comment id="335717" author="laisiyao" created="Mon, 23 May 2022 03:08:27 +0000"  >&lt;p&gt;Indeed, dir-depth only considered ROOT. We may convert lsm_md_max-inherit and lsm_md_max-inherit-rr to absolute dir depth to ROOT in lsm unpack, then the comparison with lli_dir_depth will be opaque.&lt;/p&gt;</comment>
                            <comment id="336186" author="laisiyao" created="Fri, 27 May 2022 14:25:59 +0000"  >&lt;p&gt;Andreas, below code is for filesystem-wide default LMV only:&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;                if (lsm-&amp;gt;lsm_md_max_inherit_rr != LMV_INHERIT_RR_NONE &amp;amp;&amp;amp;
                    (lsm-&amp;gt;lsm_md_max_inherit_rr == LMV_INHERIT_RR_UNLIMITED ||
                     lsm-&amp;gt;lsm_md_max_inherit_rr &amp;gt;= lli-&amp;gt;lli_dir_depth))
                        op_data-&amp;gt;op_flags |= MF_RR_MKDIR;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;This looks not to be an issue.&lt;/p&gt;</comment>
                            <comment id="336188" author="adilger" created="Fri, 27 May 2022 14:50:56 +0000"  >&lt;p&gt;I was trying to check &lt;tt&gt;MF_RR_MKDIR&lt;/tt&gt; to see if the directory has round-robin allocation enabled, so that the &quot;stay on parent&quot; check in &lt;tt&gt;lmv_locate_tgt_qos()&lt;/tt&gt; would not be used if the parent is r-r. &lt;/p&gt;</comment>
                            <comment id="337173" author="gerrit" created="Thu, 9 Jun 2022 14:47:06 +0000"  >&lt;p&gt;&quot;Lai Siyao &amp;lt;lai.siyao@whamcloud.com&amp;gt;&quot; uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/47576&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/47576&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-15850&quot; title=&quot;MDT QOS should always be used for round-robin directories. &quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-15850&quot;&gt;&lt;del&gt;LU-15850&lt;/del&gt;&lt;/a&gt; mdt: pack default LMV in open reply&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: c31475758946fd5f32382b5415ab7c0c1b46913c&lt;/p&gt;</comment>
                            <comment id="337174" author="gerrit" created="Thu, 9 Jun 2022 14:47:07 +0000"  >&lt;p&gt;&quot;Lai Siyao &amp;lt;lai.siyao@whamcloud.com&amp;gt;&quot; uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/47577&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/47577&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-15850&quot; title=&quot;MDT QOS should always be used for round-robin directories. &quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-15850&quot;&gt;&lt;del&gt;LU-15850&lt;/del&gt;&lt;/a&gt; llite: pass dmv inherit depth instead of dir depth&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: d33bd101c7b2a9184615d6ff4751fe8d6222283b&lt;/p&gt;</comment>
                            <comment id="337175" author="gerrit" created="Thu, 9 Jun 2022 14:47:08 +0000"  >&lt;p&gt;&quot;Lai Siyao &amp;lt;lai.siyao@whamcloud.com&amp;gt;&quot; uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/47578&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/47578&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-15850&quot; title=&quot;MDT QOS should always be used for round-robin directories. &quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-15850&quot;&gt;&lt;del&gt;LU-15850&lt;/del&gt;&lt;/a&gt; lmv: always space-balance r-r directories&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 9017448833a249ce29ea0c5d26c60e3d5dc03201&lt;/p&gt;</comment>
                            <comment id="338108" author="gerrit" created="Mon, 20 Jun 2022 06:39:27 +0000"  >&lt;p&gt;&quot;Lai Siyao &amp;lt;lai.siyao@whamcloud.com&amp;gt;&quot; uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/47679&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/47679&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-15850&quot; title=&quot;MDT QOS should always be used for round-robin directories. &quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-15850&quot;&gt;&lt;del&gt;LU-15850&lt;/del&gt;&lt;/a&gt; llite: interop test with 2.14&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 03fba460bc0f1b6a747b792715ac7f8f059eacfe&lt;/p&gt;</comment>
                            <comment id="338881" author="gerrit" created="Mon, 27 Jun 2022 09:46:52 +0000"  >&lt;p&gt;&quot;Lai Siyao &amp;lt;lai.siyao@whamcloud.com&amp;gt;&quot; uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/47789&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/47789&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-15850&quot; title=&quot;MDT QOS should always be used for round-robin directories. &quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-15850&quot;&gt;&lt;del&gt;LU-15850&lt;/del&gt;&lt;/a&gt; llite: implicit default LMV inherit&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: cc65c9deaab82dfc7ab81235ba8c0339fe8fc73b&lt;/p&gt;</comment>
                            <comment id="341536" author="gerrit" created="Tue, 26 Jul 2022 04:53:52 +0000"  >&lt;p&gt;&quot;Oleg Drokin &amp;lt;green@whamcloud.com&amp;gt;&quot; merged in patch &lt;a href=&quot;https://review.whamcloud.com/47576/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/47576/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-15850&quot; title=&quot;MDT QOS should always be used for round-robin directories. &quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-15850&quot;&gt;&lt;del&gt;LU-15850&lt;/del&gt;&lt;/a&gt; mdt: pack default LMV in open reply&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: f6e4272fb0be5b798b7685bb40067e3f6877c8a5&lt;/p&gt;</comment>
                            <comment id="342356" author="gerrit" created="Wed, 3 Aug 2022 04:07:10 +0000"  >&lt;p&gt;&quot;Oleg Drokin &amp;lt;green@whamcloud.com&amp;gt;&quot; merged in patch &lt;a href=&quot;https://review.whamcloud.com/47577/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/47577/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-15850&quot; title=&quot;MDT QOS should always be used for round-robin directories. &quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-15850&quot;&gt;&lt;del&gt;LU-15850&lt;/del&gt;&lt;/a&gt; llite: pass dmv inherit depth instead of dir depth&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: c23c68a52a04369101db2bd3b1d3da23025fcf48&lt;/p&gt;</comment>
                            <comment id="342788" author="gerrit" created="Fri, 5 Aug 2022 20:18:19 +0000"  >&lt;p&gt;&quot;Oleg Drokin &amp;lt;green@whamcloud.com&amp;gt;&quot; merged in patch &lt;a href=&quot;https://review.whamcloud.com/47578/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/47578/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-15850&quot; title=&quot;MDT QOS should always be used for round-robin directories. &quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-15850&quot;&gt;&lt;del&gt;LU-15850&lt;/del&gt;&lt;/a&gt; lmv: always space-balance r-r directories&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 37c1ddc34d3a1e61c5533f48cb29fe2258ca2907&lt;/p&gt;</comment>
                            <comment id="342790" author="pjones" created="Fri, 5 Aug 2022 20:20:17 +0000"  >&lt;p&gt;Landed for 2.16&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="70611">LU-15910</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="58702">LU-13440</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="58701">LU-13439</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="64648">LU-14762</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="58656">LU-13417</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|i02ptj:</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>