<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:48:31 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-11968] tbf QOS gid rules not being enforced</title>
                <link>https://jira.whamcloud.com/browse/LU-11968</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;Setting up tbf qos for ost_io like this&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;
lctl set_param ost.OSS.ost_io.nrs_policies=&lt;span class=&quot;code-quote&quot;&gt;&quot;tbf gid&quot;&lt;/span&gt;
lctl set_param ost.OSS.ost_io.nrs_tbf_rule=&lt;span class=&quot;code-quote&quot;&gt;&quot;start viz gid={1128} rate=10000&quot;&lt;/span&gt;
lctl set_param ost.OSS.ost_io.nrs_tbf_rule=&lt;span class=&quot;code-quote&quot;&gt;&quot;start css gid={1125} rate=10000&quot;&lt;/span&gt;
lctl set_param ost.OSS.ost_io.nrs_tbf_rule=&lt;span class=&quot;code-quote&quot;&gt;&quot;change &lt;span class=&quot;code-keyword&quot;&gt;default&lt;/span&gt; rate=100&quot;&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Running IOR as a user with group css, the writes are correctly throttled by the css rule. But read are throttled by the default rate.&lt;/p&gt;

&lt;p&gt;Lowering the default rate decrease reads bw, and increasing the default rate increases read bw.&lt;/p&gt;

&lt;p&gt;IOR is getting 8GB/sec Writes and 1.4GB/sec reads. It should be 8GB/sec for read and writes.&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;
 srv2 /sys/kernel/debug/lustre/ost/OSS/ost_io # cat nrs_tbf_rule
regular_requests:
CPT 0:
css {1125} 10000, ref 1
viz {1128} 10000, ref 0
&lt;span class=&quot;code-keyword&quot;&gt;default&lt;/span&gt; {*} 100, ref 1
CPT 1:
css {1125} 10000, ref 1
viz {1128} 10000, ref 0
&lt;span class=&quot;code-keyword&quot;&gt;default&lt;/span&gt; {*} 100, ref 1
CPT 2:
css {1125} 10000, ref 1
viz {1128} 10000, ref 0
&lt;span class=&quot;code-keyword&quot;&gt;default&lt;/span&gt; {*} 100, ref 1
CPT 3:
css {1125} 10000, ref 1
viz {1128} 10000, ref 0
&lt;span class=&quot;code-keyword&quot;&gt;default&lt;/span&gt; {*} 100, ref 1
CPT 4:
css {1125} 10000, ref 1
viz {1128} 10000, ref 0
&lt;span class=&quot;code-keyword&quot;&gt;default&lt;/span&gt; {*} 100, ref 1
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
        <key id="54884">LU-11968</key>
            <summary>tbf QOS gid rules not being enforced</summary>
                <type id="1" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="3" iconUrl="https://jira.whamcloud.com/images/icons/priorities/major.svg">Major</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="6">Not a Bug</resolution>
                                        <assignee username="lixi_wc">Li Xi</assignee>
                                    <reporter username="mhanafi">Mahmoud Hanafi</reporter>
                        <labels>
                    </labels>
                <created>Wed, 13 Feb 2019 21:10:51 +0000</created>
                <updated>Sat, 2 Mar 2019 00:03:44 +0000</updated>
                            <resolved>Thu, 28 Feb 2019 15:11:05 +0000</resolved>
                                    <version>Lustre 2.12.0</version>
                                                        <due></due>
                            <votes>0</votes>
                                    <watches>5</watches>
                                                                            <comments>
                            <comment id="241919" author="mhanafi" created="Wed, 13 Feb 2019 21:53:30 +0000"  >&lt;p&gt;I have attached debug logs that shows switch from write to read and how it picks the wrong rule.&lt;/p&gt;</comment>
                            <comment id="241929" author="pjones" created="Thu, 14 Feb 2019 00:44:26 +0000"  >&lt;p&gt;Li Xi&lt;/p&gt;

&lt;p&gt;Could you please investigate?&lt;/p&gt;

&lt;p&gt;Thanks&lt;/p&gt;

&lt;p&gt;Peter&lt;/p&gt;</comment>
                            <comment id="241942" author="lixi_wc" created="Thu, 14 Feb 2019 03:06:16 +0000"  >&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;osc_build_rpc
 cl_req_attr_set
  coo_req_attr_set
   vvp_req_attr_set
    obdo_from_inode
     dst-&amp;gt;o_gid = from_kgid(&amp;amp;init_user_ns, src-&amp;gt;i_gid);
    
osc_brw_prep_request
 body-&amp;gt;oa.o_uid = oa-&amp;gt;o_uid;
 body-&amp;gt;oa.o_gid = oa-&amp;gt;o_gid;

nrs_tbf_id_cli_set
 ost_tbf_id_cli_set
  id-&amp;gt;ti_uid = body-&amp;gt;oa.o_uid;
  id-&amp;gt;ti_gid = body-&amp;gt;oa.o_gid;

obdo_from_inode
 dst-&amp;gt;o_uid = from_kuid(&amp;amp;init_user_ns, src-&amp;gt;i_uid);
 obdo_from_la
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;I am trying to reproduce and writing debug patch.&lt;/p&gt;</comment>
                            <comment id="241969" author="gerrit" created="Thu, 14 Feb 2019 15:08:33 +0000"  >&lt;p&gt;Li Xi (lixi@ddn.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/34257&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/34257&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-11968&quot; title=&quot;tbf QOS gid rules not being enforced&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-11968&quot;&gt;&lt;del&gt;LU-11968&lt;/del&gt;&lt;/a&gt; ptlrpc: debug&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: f23cf308512a0d9e3ef82ccac67fde23d7e9cfc3&lt;/p&gt;</comment>
                            <comment id="241971" author="lixi_wc" created="Thu, 14 Feb 2019 15:12:07 +0000"  >&lt;p&gt;Hi Mahmoud, do you mind to apply the patch 34257 and check whether the rule is matched as expected. As far as I test, there is nothing strange in my environment:&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;# lctl set_param ost.OSS.ost_io.nrs_policies=&quot;tbf gid&quot;
# lctl set_param ost.OSS.ost_io.nrs_tbf_rule=&quot;start viz gid={1000} rate=10000&quot;
# su - test
$ dd if=/mnt/lustre/file of=/dev/null bs=1048576
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&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;Feb 14 23:07:43 server17-el7-vm1 kernel: LustreError: 14327:0:(vvp_object.c:218:vvp_req_attr_set()) cra_type 0, gid 1000
Feb 14 23:07:43 server17-el7-vm1 kernel: LustreError: 14327:0:(osc_request.c:1383:osc_brw_prep_request()) gid 1000
Feb 14 23:07:43 server17-el7-vm1 kernel: LustreError: 14431:0:(nrs_tbf.c:1534:ost_tbf_id_cli_set()) ost_tbf_id_cli_set gid: 1000
Feb 14 23:07:43 server17-el7-vm1 kernel: LustreError: 14431:0:(nrs_tbf.c:263:nrs_tbf_rule_match()) rule [viz] matches ID [1000
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="243028" author="mhanafi" created="Thu, 28 Feb 2019 14:50:32 +0000"  >&lt;p&gt;This is not a bug and can be close. I was using a 2.11 client. &lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</comment>
                            <comment id="243034" author="pjones" created="Thu, 28 Feb 2019 15:11:05 +0000"  >&lt;p&gt;ok thanks&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="32000" name="tbf_debug.out.gz" size="10590491" author="mhanafi" created="Wed, 13 Feb 2019 21:52:50 +0000"/>
                    </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|i00bn3:</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>