<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:57:49 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-13037] print tbf stats</title>
                <link>https://jira.whamcloud.com/browse/LU-13037</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;We would like a way to dump current tbf stats. &lt;br/&gt;
For example print all the UID being tracked and what are each UID bucket usage.&lt;/p&gt;

</description>
                <environment></environment>
        <key id="57508">LU-13037</key>
            <summary>print tbf stats</summary>
                <type id="4" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11310&amp;avatarType=issuetype">Improvement</type>
                                            <priority id="3" iconUrl="https://jira.whamcloud.com/images/icons/priorities/major.svg">Major</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="lixi_wc">Li Xi</assignee>
                                    <reporter username="mhanafi">Mahmoud Hanafi</reporter>
                        <labels>
                    </labels>
                <created>Sat, 30 Nov 2019 06:34:04 +0000</created>
                <updated>Thu, 1 Apr 2021 19:03:32 +0000</updated>
                                                                                <due></due>
                            <votes>0</votes>
                                    <watches>9</watches>
                                                                            <comments>
                            <comment id="258995" author="pjones" created="Sat, 30 Nov 2019 15:38:57 +0000"  >&lt;p&gt;Li xi&lt;/p&gt;

&lt;p&gt;How possible is this with the current design of TBF?&lt;/p&gt;

&lt;p&gt;Peter&lt;/p&gt;</comment>
                            <comment id="259326" author="lixi_wc" created="Fri, 6 Dec 2019 01:38:31 +0000"  >&lt;p&gt;I am working on a patch that works similar like jobstat, but that is going to take a while.&lt;/p&gt;</comment>
                            <comment id="259419" author="lixi_wc" created="Sat, 7 Dec 2019 16:02:18 +0000"  >&lt;p&gt;Two entries are added into each service: nrs_tbf_stats_reg and nrs_tbf_stats_hp. The first one for regular requests, and the second one for high priority requests. And TBF information of all client classifications will be dumped from each entry. Following is an example of the dumped information:&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;# cat /sys/kernel/debug/lustre/ost/OSS/ost_io/nrs_tbf_stats_hp
- key:             _10.0.1.253@tcp_10_0_0
  refs:            0
  rule:            default
  rpc_rate:        10000
  ntoken:          2
  token_depth:     3
- key:             _10.0.1.253@tcp_4_0_0
  refs:            0
  rule:            default
  rpc_rate:        10000
  ntoken:          2
  token_depth:     3
- key:             dd.0_10.0.1.253@tcp_10_0_0
  refs:            0
  rule:            default
  rpc_rate:        10000
  ntoken:          2
  token_depth:     3
- key:             dd.0_10.0.1.253@tcp_4_0_0
  refs:            9
  rule:            default
  rpc_rate:        10000
  ntoken:          2
  token_depth:     3
# cat /sys/kernel/debug/lustre/ost/OSS/ost_io/nrs_tbf_stats_reg 
- key:             _10.0.1.253@tcp_10_0_0
  refs:            0
  rule:            default
  rpc_rate:        10000
  ntoken:          2
  token_depth:     3
- key:             _10.0.1.253@tcp_4_0_0
  refs:            0
  rule:            default
  rpc_rate:        10000
  ntoken:          2
  token_depth:     3
- key:             dd.0_10.0.1.253@tcp_10_0_0
  refs:            0
  rule:            default
  rpc_rate:        10000
  ntoken:          2
  token_depth:     3
- key:             dd.0_10.0.1.253@tcp_4_0_0
  refs:            9
  rule:            default
  rpc_rate:        10000
  ntoken:          2
  token_depth:     3
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="259420" author="gerrit" created="Sat, 7 Dec 2019 16:06:22 +0000"  >&lt;p&gt;Li Xi (lixi@ddn.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/36950&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/36950&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-13037&quot; title=&quot;print tbf stats&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-13037&quot;&gt;LU-13037&lt;/a&gt; nrs: dump stats of TBF clients&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 01af62b6a5305e9d4483dbbbb27aa003cd234099&lt;/p&gt;</comment>
                            <comment id="259421" author="lixi_wc" created="Sat, 7 Dec 2019 16:07:47 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.whamcloud.com/secure/ViewProfile.jspa?name=mhanafi&quot; class=&quot;user-hover&quot; rel=&quot;mhanafi&quot;&gt;mhanafi&lt;/a&gt; Please feel free to let me know whether the dumped information is what you need.&lt;/p&gt;</comment>
                            <comment id="259896" author="pjones" created="Sat, 14 Dec 2019 15:03:25 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.whamcloud.com/secure/ViewProfile.jspa?name=mhanafi&quot; class=&quot;user-hover&quot; rel=&quot;mhanafi&quot;&gt;mhanafi&lt;/a&gt; what do you think?&lt;/p&gt;</comment>
                            <comment id="271197" author="mhanafi" created="Tue, 26 May 2020 23:42:49 +0000"  >&lt;p&gt;Why do we get more than 1 stats for a specific cpt and queue_type. Here for uid 929411059 we see for cpt=0 and queue_type=reg we get 2 and for cpt=0 and queue_type=hp we get 2.&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;
 nbp13-srv1 /sys/kernel/debug/lustre/ost/OSS/ost_io # cat /sys/kernel/debug/lustre/ost/OSS/ost_io/nrs_tbf_stats| grep -A 4  929411059
- uid:             929411059
  cpt:             0
  queue_type:      hp
  refs:            1
  rule:            &lt;span class=&quot;code-keyword&quot;&gt;default&lt;/span&gt;
--
- uid:             929411059
  cpt:             0
  queue_type:      hp
  refs:            1
  rule:            &lt;span class=&quot;code-keyword&quot;&gt;default&lt;/span&gt;
--
- uid:             929411059
  cpt:             0
  queue_type:      reg
  refs:            1
  rule:            &lt;span class=&quot;code-keyword&quot;&gt;default&lt;/span&gt;
--
- uid:             929411059
  cpt:             0
  queue_type:      reg
  refs:            1
  rule:            &lt;span class=&quot;code-keyword&quot;&gt;default&lt;/span&gt;
--
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Later for cpt=8 we only 1 for hp and 2 for reg.&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;
- uid:             929411059
  cpt:             8
  queue_type:      hp
  refs:            1
  rule:            &lt;span class=&quot;code-keyword&quot;&gt;default&lt;/span&gt;
--
- uid:             929411059
  cpt:             8
  queue_type:      reg
  refs:            1
  rule:            &lt;span class=&quot;code-keyword&quot;&gt;default&lt;/span&gt;
--
- uid:             929411059
  cpt:             8
  queue_type:      reg
  refs:            1
  rule:            &lt;span class=&quot;code-keyword&quot;&gt;default&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="277023" author="pjones" created="Sat, 8 Aug 2020 14:59:14 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.whamcloud.com/secure/ViewProfile.jspa?name=mhanafi&quot; class=&quot;user-hover&quot; rel=&quot;mhanafi&quot;&gt;mhanafi&lt;/a&gt; I noticed this week that you are carrying this patch in your distribution. Sorry that we missed your question above. Have you had any other questions/comments about using this change? Do you think that we should proceed with landing it in its current form or is more work required?&lt;/p&gt;</comment>
                            <comment id="277041" author="lixi_wc" created="Mon, 10 Aug 2020 01:44:49 +0000"  >&lt;p&gt;Sorry for late reply.&lt;/p&gt;

&lt;blockquote&gt;&lt;p&gt;Why do we get more than 1 stats for a specific cpt and queue_type.&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;Understood comparing to this, a single stats would be easier to understand. However, this is determined by the internal design and implementation of request handling of Lustre which have good reasons too. And TBF has no other choice but to use and depend on it.&lt;/p&gt;

&lt;p&gt;Lustre seperate requests into two different types, regular (reg) requests and high priority (hp) requests. And handling of these two types of requests are seperated in order to make sure high priority requests won&apos;t be blocked by many regular requests.&lt;/p&gt;

&lt;p&gt;And Lustre divide CPUs into different patitions (cpt). Each patition handles RPC requests independently. &lt;/p&gt;

&lt;p&gt;Because of these existing mechansim, TBF have to set the RPC rate limitations seperately (maybe with the same values), and the stats are seperated for each cpt and request type.&lt;/p&gt;
</comment>
                            <comment id="277047" author="mhanafi" created="Mon, 10 Aug 2020 06:47:55 +0000"  >&lt;p&gt;I understand that we have hp and reg. But We get 2 request for the same cpt and queue_type type&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;

 - uid:             929411059
  cpt:             0
  queue_type:      reg
  refs:            1
  rule:            &lt;span class=&quot;code-keyword&quot;&gt;default&lt;/span&gt;
--
- uid:             929411059
  cpt:             0
  queue_type:      reg
  refs:            1
  rule:            &lt;span class=&quot;code-keyword&quot;&gt;default&lt;/span&gt;
-- &lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Yes Peter we would like to get this landed.&lt;/p&gt;</comment>
                            <comment id="277056" author="lixi_wc" created="Mon, 10 Aug 2020 10:05:07 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.whamcloud.com/secure/ViewProfile.jspa?name=mhanafi&quot; class=&quot;user-hover&quot; rel=&quot;mhanafi&quot;&gt;mhanafi&lt;/a&gt; Sorry for the misunderstanding. I found a bug of the patch. Not sure whether that is the cause of the duplicated outputs. The patch will be refreshed soon anyway.&lt;/p&gt;</comment>
                            <comment id="277435" author="qian_wc" created="Thu, 13 Aug 2020 09:54:52 +0000"  >&lt;p&gt;Hi Mahmoud,&lt;br/&gt;
I just updated the patch (&lt;a href=&quot;https://review.whamcloud.com/#/c/36950/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/#/c/36950/&lt;/a&gt;), could you please try it again?&lt;/p&gt;

&lt;p&gt;Thanks,&lt;br/&gt;
Qian&lt;/p&gt;</comment>
                            <comment id="277493" author="jaylan" created="Thu, 13 Aug 2020 22:42:39 +0000"  >&lt;p&gt;I had compilation error in lustre-2.12.4 against CentOS 7.7 kernel :&lt;/p&gt;

&lt;p&gt;Making all in .&lt;br/&gt;
/tmp/rpmbuild-lustre-jlan-UDyILlEP/BUILD/lustre-2.12.4/lustre/ptlrpc/nrs_tbf.c: In function &apos;nrs_tbf_stats_seq_show&apos;:&lt;br/&gt;
/tmp/rpmbuild-lustre-jlan-UDyILlEP/BUILD/lustre-2.12.4/lustre/ptlrpc/nrs_tbf.c:3882:2: error: format &apos;%u&apos; expects argument of type &apos;unsigned int&apos;, but argument 3 has type &apos;__u64&apos; &lt;span class=&quot;error&quot;&gt;&amp;#91;-Werror=format=&amp;#93;&lt;/span&gt;&lt;br/&gt;
  seq_printf(p, &quot;%u\n&quot;, cli-&amp;gt;tc_rpc_rate);&lt;br/&gt;
  ^&lt;br/&gt;
/tmp/rpmbuild-lustre-jlan-UDyILlEP/BUILD/lustre-2.12.4/lustre/ptlrpc/nrs_tbf.c: At top level:&lt;br/&gt;
cc1: error: unrecognized command line option &quot;-Wno-stringop-overflow&quot; &lt;span class=&quot;error&quot;&gt;&amp;#91;-Werror&amp;#93;&lt;/span&gt;&lt;br/&gt;
cc1: error: unrecognized command line option &quot;-Wno-stringop-truncation&quot; &lt;span class=&quot;error&quot;&gt;&amp;#91;-Werror&amp;#93;&lt;/span&gt;&lt;br/&gt;
cc1: error: unrecognized command line option &quot;-Wno-format-truncation&quot; &lt;span class=&quot;error&quot;&gt;&amp;#91;-Werror&amp;#93;&lt;/span&gt;&lt;br/&gt;
cc1: all warnings being treated as errors&lt;br/&gt;
make&lt;span class=&quot;error&quot;&gt;&amp;#91;7&amp;#93;&lt;/span&gt;: *** &lt;span class=&quot;error&quot;&gt;&amp;#91;/tmp/rpmbuild-lustre-jlan-UDyILlEP/BUILD/lustre-2.12.4/lustre/ptlrpc/nrs_tbf.o&amp;#93;&lt;/span&gt; Error 1&lt;/p&gt;

&lt;p&gt;I do not know how I got those &quot;unrecgonized command line option&quot;. Before applying this patch it was compiled fine.&lt;/p&gt;</comment>
                            <comment id="277496" author="qian_wc" created="Fri, 14 Aug 2020 01:37:50 +0000"  >&lt;p&gt;I build it based on the latest master branch.&lt;br/&gt;
It seems that tc_rpc_rate is __u32, while in 2.12.4, it was __u64&lt;/p&gt;

&lt;p&gt;To make it pass the build for 2.12.4, you just need to modify it with:&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;
seq_printf(p, &lt;span class=&quot;code-quote&quot;&gt;&quot;%llu\n&quot;&lt;/span&gt;, cli-&amp;gt;tc_rpc_rate);
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Regards,&lt;br/&gt;
Qian&lt;/p&gt;</comment>
                            <comment id="278939" author="pjones" created="Sat, 5 Sep 2020 14:37:52 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.whamcloud.com/secure/ViewProfile.jspa?name=jaylan&quot; class=&quot;user-hover&quot; rel=&quot;jaylan&quot;&gt;jaylan&lt;/a&gt; any updates on testing this patch?&lt;/p&gt;</comment>
                            <comment id="297591" author="pjones" created="Thu, 1 Apr 2021 18:35:18 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.whamcloud.com/secure/ViewProfile.jspa?name=mhanafi&quot; class=&quot;user-hover&quot; rel=&quot;mhanafi&quot;&gt;mhanafi&lt;/a&gt; &lt;a href=&quot;https://jira.whamcloud.com/secure/ViewProfile.jspa?name=jaylan&quot; class=&quot;user-hover&quot; rel=&quot;jaylan&quot;&gt;jaylan&lt;/a&gt; you have not provided any feedback as to whether this patch meets your requirements. However, rumour has it that you are carrying this patch - does this mean that you can now provide us some feedback as to whether this patch is useful and should proceed with landing?&lt;/p&gt;</comment>
                            <comment id="297600" author="mhanafi" created="Thu, 1 Apr 2021 19:03:32 +0000"  >&lt;p&gt;We have been using the patch. But I think it needs addition work to be more useful. We will need to think about how it could improved. &lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                                        </outwardlinks>
                                                        </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|i00q7z:</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>