<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:15: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-8150] Track creates in MDS stats</title>
                <link>https://jira.whamcloud.com/browse/LU-8150</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;File creates are not tracked on the MDS in the md_stats file:&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 mdt.*.md_stats=clear
mdt.lustre-MDT0000.md_stats=clear
# touch /mnt/lustre/newfile1
# lctl get_param mdt.*.md_stats
mdt.lustre-MDT0000.md_stats=
snapshot_time             1463430465.508409 secs.usecs
open                      1 samples [reqs]
close                     1 samples [reqs]
getattr                   1 samples [reqs]
setattr                   1 samples [reqs]
getxattr                  1 samples [reqs]
setxattr                  1 samples [reqs]
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;If you call mknod() with &lt;b&gt;S_IFREG&lt;/b&gt; to create a file, it &lt;b&gt;is&lt;/b&gt; tracked as a mknod.  Most file creates are from open with create intent.&lt;/p&gt;</description>
                <environment></environment>
        <key id="36949">LU-8150</key>
            <summary>Track creates in MDS stats</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="bogl">Bob Glossman</assignee>
                                    <reporter username="ezell">Matt Ezell</reporter>
                        <labels>
                            <label>patch</label>
                    </labels>
                <created>Mon, 16 May 2016 20:55:04 +0000</created>
                <updated>Tue, 22 Nov 2016 00:02:01 +0000</updated>
                            <resolved>Wed, 22 Jun 2016 15:06:34 +0000</resolved>
                                    <version>Lustre 2.8.0</version>
                                    <fixVersion>Lustre 2.9.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>8</watches>
                                                                            <comments>
                            <comment id="152475" author="gerrit" created="Mon, 16 May 2016 20:58:53 +0000"  >&lt;p&gt;Matt Ezell (ezellma@ornl.gov) uploaded a new patch: &lt;a href=&quot;http://review.whamcloud.com/20246&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/20246&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-8150&quot; title=&quot;Track creates in MDS stats&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-8150&quot;&gt;&lt;del&gt;LU-8150&lt;/del&gt;&lt;/a&gt; mdt: Track open+create as mknod&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 353fcf21eff5c8560ea7f301e7fafd28516ad63f&lt;/p&gt;</comment>
                            <comment id="152481" author="ezell" created="Mon, 16 May 2016 21:04:05 +0000"  >&lt;p&gt;With the patch I just uploaded, open with create intent is now tallied as a mknod.  I chose this route instead of adding a new stat bucket for create to minimize the impact on tools that parse md_stats and job_stats.&lt;/p&gt;

&lt;p&gt;Previous test case after patch:&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 mdt.*.md_stats=clear
mdt.lustre-MDT0000.md_stats=clear
# touch /mnt/lustre/newfile2
# lctl get_param mdt.*.md_stats
mdt.lustre-MDT0000.md_stats=
snapshot_time             1463431661.429641 secs.usecs
open                      1 samples [reqs]
close                     1 samples [reqs]
mknod                     1 samples [reqs]
getattr                   1 samples [reqs]
setattr                   1 samples [reqs]
getxattr                  1 samples [reqs]
setxattr                  1 samples [reqs]
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="152588" author="adilger" created="Tue, 17 May 2016 17:29:00 +0000"  >&lt;p&gt;This also needs an update to the Lustre User Manual, in the LustreMonitoring.xml file for JobID stats (search for &quot;getxattr&quot;).&lt;/p&gt;

&lt;p&gt;The other question that Oleg and I were discussing is whether there should be an equivalent change on the mdc and/or llite stats to distinguish between open and create stats?  This can be checked after the client got the &lt;b&gt;reply&lt;/b&gt; to see if the new inode was created, either by comparing the before and after FIDs (same FID == create new file, different FID == open existing file), or checking the reply disposition for &lt;tt&gt;DISP_OPEN_CREATE&lt;/tt&gt;.&lt;/p&gt;</comment>
                            <comment id="156435" author="gerrit" created="Wed, 22 Jun 2016 02:55:27 +0000"  >&lt;p&gt;Oleg Drokin (oleg.drokin@intel.com) merged in patch &lt;a href=&quot;http://review.whamcloud.com/20246/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/20246/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-8150&quot; title=&quot;Track creates in MDS stats&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-8150&quot;&gt;&lt;del&gt;LU-8150&lt;/del&gt;&lt;/a&gt; mdt: Track open+create as mknod&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 6c2bbc022832087f2ff0f65d83e3b0a460e45911&lt;/p&gt;</comment>
                            <comment id="156494" author="jgmitter" created="Wed, 22 Jun 2016 15:06:34 +0000"  >&lt;p&gt;Landed to master for 2.9.0&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                                        </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="37848">LU-8335</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_10490" key="com.atlassian.jira.plugin.system.customfieldtypes:datepicker">
                        <customfieldname>End date</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Tue, 17 May 2016 20:55:04 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10390" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hzybr3:</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>
                                                                                                                        <customfield id="customfield_10493" key="com.atlassian.jira.plugin.system.customfieldtypes:datepicker">
                        <customfieldname>Start date</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Mon, 16 May 2016 20:55:04 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    </customfields>
    </item>
</channel>
</rss>