<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 01:34:55 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-3555] job_stats &quot;setattr&quot; stats are 2x what they should be</title>
                <link>https://jira.whamcloud.com/browse/LU-3555</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;It seems that the &lt;tt&gt;/proc/fs/lustre/obdfilter/&lt;b&gt;/job_stats&lt;/tt&gt; output for &quot;setattr&quot; is double what is reported for the regular &lt;tt&gt;/proc/fs/lustre/obdfilter/&lt;/b&gt;/stats&lt;/tt&gt; output:&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;# grep setattr testfs-OST0000/*stats 
testfs-OST0000/job_stats:  setattr: { samples: 344, unit:  reqs }
testfs-OST0000/stats:setattr                   593 samples [reqs]
# grep setattr testfs-OST0000/*stats 
testfs-OST0000/job_stats:  setattr: { samples: 373, unit:  reqs }
testfs-OST0000/stats:setattr                   651 samples [reqs]
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;As you can see, the &lt;tt&gt;job_stats&lt;/tt&gt; setattr count went up 2x the amount for the regular &lt;tt&gt;stats&lt;/tt&gt; setattr count (this is during a simple &quot;&lt;tt&gt;cp -av /etc /mnt/testfs&lt;/tt&gt;&quot; operation from a single client).  Conversely, the &quot;write&quot; stats were the same:&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;# grep write testfs-OST0000/*stats
testfs-OST0000/job_stats:  write:   { samples: 307, unit: bytes, min: 11, max:  222390, sum: 2001024 }
testfs-OST0000/stats:write_bytes               307 samples [bytes] 11 222390 2001024
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;It is likely this is a bug in the job_stats handling, since the total number of write operations ~= total number of setattr ~= total regular files copied, but job_stats is almost 2x this number at the end.&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;# find /etc -type f | wc -l
1281
# grep setattr testfs-OST000*/*stats 
testfs-OST0000/job_stats:  setattr: { samples: 426, unit:  reqs }
testfs-OST0000/stats:setattr                   758 samples [reqs]
testfs-OST0001/job_stats:  setattr: { samples: 427, unit:  reqs }
testfs-OST0001/stats:setattr                   761 samples [reqs]
testfs-OST0002/job_stats:  setattr: { samples: 427, unit:  reqs }
testfs-OST0002/stats:setattr                   752 samples [reqs]
# grep write testfs-OST000*/*stats 
testfs-OST0000/job_stats:  write:   { samples: 418, unit: bytes, min: 4, max:  644275, sum: 3295088 }
testfs-OST0000/stats:write_bytes               418 samples [bytes] 4 644275 3295088
testfs-OST0001/job_stats:  write:   { samples: 425, unit: bytes, min: 5, max: 1048576, sum: 8450420 }
testfs-OST0001/stats:write_bytes               425 samples [bytes] 5 1048576 8450420
testfs-OST0002/job_stats:  write:   { samples: 421, unit: bytes, min: 1, max: 1048576, sum: 9396075 }
testfs-OST0002/stats:write_bytes               421 samples [bytes] 1 1048576 9396075
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment>&amp;quot;FSTYPE=zfs llmount.sh&amp;quot; configuration with 3 OSTs.  Not sure if this is at all relevant to the problem or not.</environment>
        <key id="19685">LU-3555</key>
            <summary>job_stats &quot;setattr&quot; stats are 2x what they should be</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="6">Not a Bug</resolution>
                                        <assignee username="niu">Niu Yawei</assignee>
                                    <reporter username="adilger">Andreas Dilger</reporter>
                        <labels>
                    </labels>
                <created>Wed, 3 Jul 2013 19:13:30 +0000</created>
                <updated>Fri, 5 Jun 2015 00:31:16 +0000</updated>
                            <resolved>Thu, 11 Jul 2013 15:16:38 +0000</resolved>
                                    <version>Lustre 2.3.0</version>
                    <version>Lustre 2.4.1</version>
                    <version>Lustre 2.5.0</version>
                                                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                            <comments>
                            <comment id="61804" author="niu" created="Thu, 4 Jul 2013 04:07:21 +0000"  >&lt;p&gt;looks job_stats &apos;setattr&apos; is 1/2 what they should be but not 2x. I think it because some setattr on OST are come from MDS, and those requests sent by OSP which doesn&apos;t have OBD_CONNECT_JOBSTATS enabled for connection.&lt;/p&gt;

&lt;p&gt;That means only the setattr comes from client will be logged on in jobstats, I think it&apos;s reasonable.&lt;/p&gt;</comment>
                            <comment id="61826" author="adilger" created="Thu, 4 Jul 2013 19:30:40 +0000"  >&lt;p&gt;Hmm, I guess this means instead that we are sending 2x as man RPCs to the OST as we should be. &lt;/p&gt;</comment>
                            <comment id="61834" author="niu" created="Fri, 5 Jul 2013 03:12:42 +0000"  >&lt;p&gt;Are there chown/chgrp operations? setattr of chown/chgrp comes from MDS, but setattr of truncate and amtime setting comes from client. So I guess half of setattr come from chown/chgrp, and half of them come from change amtime?&lt;/p&gt;</comment>
                            <comment id="62113" author="adilger" created="Thu, 11 Jul 2013 15:16:39 +0000"  >&lt;p&gt;Since the POSIX API does not have a single syscall for both timestamp and uid/gid updates, there is no way to have only a single RPC for these operations.&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|hzvumf:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10090" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>8954</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>