<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 01:35: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-3624] mds-survey has several bugs</title>
                <link>https://jira.whamcloud.com/browse/LU-3624</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;I faced several bugs while running mds-survey tests.&lt;/p&gt;

&lt;p&gt;1)&lt;br/&gt;
An error message is displayed by mds-survey at directory creation step (lctl test_mkdir).&lt;br/&gt;
&quot;ostid_set_id() Bad 18446744073709551615 to set 0:0&quot;&lt;/p&gt;

&lt;p&gt;Here are the step by step commands executed by mds-survey.&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 dl
  0 UP osd-ldiskfs fs2-MDT0000-osd fs2-MDT0000-osd_UUID 11
  1 UP mgc MGC30.1.0.95@o2ib 21007e3d-b2b2-494c-8c9e-a536f037ee6d 5
  2 UP mds MDS MDS_uuid 3
  3 UP lod fs2-MDT0000-mdtlov fs2-MDT0000-mdtlov_UUID 4
  4 UP mdt fs2-MDT0000 fs2-MDT0000_UUID 15
  5 UP mdd fs2-MDD0000 fs2-MDD0000_UUID 4
  6 UP qmt fs2-QMT0000 fs2-QMT0000_UUID 4
  7 UP lwp fs2-MDT0000-lwp-MDT0000 fs2-MDT0000-lwp-MDT0000_UUID 5
  8 UP osp fs2-OST0003-osc-MDT0000 fs2-MDT0000-mdtlov_UUID 5
  9 UP osp fs2-OST0002-osc-MDT0000 fs2-MDT0000-mdtlov_UUID 5
 10 UP osp fs2-OST0001-osc-MDT0000 fs2-MDT0000-mdtlov_UUID 5
 11 UP osp fs2-OST0000-osc-MDT0000 fs2-MDT0000-mdtlov_UUID 5
# modprobe obdecho
# lctl &amp;lt;&amp;lt; EOF
&amp;gt; attach echo_client fs2-MDT0000_ecc fs2-MDT0000_ecc_UUID
&amp;gt; setup fs2-MDT0000 mdd
&amp;gt; EOF
# lctl --device 12 test_mkdir /test0
(/homes/pichong/SB/AE4_kernel38/obj/x86_64_bullxlinux6.3/topdir/BUILD/lustre-2.4.0/lustre/include/lustre/lustre_idl.h:683:ostid_set_id()) Bad 18446744073709551615 to set 0:0
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;2)&lt;br/&gt;
The get_global_stats() subroutine of mds-survey does not correctly aggregate results from each MDT.&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;get_global_stats () {
    local rfile=$1
    awk &amp;lt; $rfile                                               \
    &apos;BEGIN {n = 0;}                                            \
    {    n++;                                                  \
         &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (n == 1) { err = $1; ave = $2; min = $3; max = $4} \
         &lt;span class=&quot;code-keyword&quot;&gt;else&lt;/span&gt;                                                  \
         { &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; ($1 &amp;lt; err) err = $1;                             \
           &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; ($2 &amp;lt; min) min = $2;                             \
           &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; ($3 &amp;gt; max) max = $3;                             \
         }                                                     \
    }                                                          \
    END { &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (n == 0) err = 0;                                 \
          printf &lt;span class=&quot;code-quote&quot;&gt;&quot;%d %f %f %f\n&quot;&lt;/span&gt;, err, ave, min, max}&apos;
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;should be&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;get_global_stats () {
    local rfile=$1
    awk &amp;lt; $rfile                                               \
    &apos;BEGIN {n = 0;}                                            \
    {    n++;                                                  \
         &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (n == 1) { err = $1; ave = $2; min = $3; max = $4} \
         &lt;span class=&quot;code-keyword&quot;&gt;else&lt;/span&gt;                                                  \
         { &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; ($1 &amp;lt; err) err = $1;                             \
           ave += $2;                                          \
           &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; ($3 &amp;lt; min) min = $3;                             \
           &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; ($4 &amp;gt; max) max = $4;                             \
         }                                                     \
    }                                                          \
    END { &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (n == 0) err = 0;                                 \
          printf &lt;span class=&quot;code-quote&quot;&gt;&quot;%d %f %f %f\n&quot;&lt;/span&gt;, err, ave/n, min, max}&apos;
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;I am going to provide a patch.&lt;/p&gt;


&lt;p&gt;3)&lt;br/&gt;
When stripe_count is positive, the mds-survey &quot;destroy&quot; action does not free the objects that were created on the OSTs. As a result, after several runs of mds-survey, the OSTs return ENOSPC at file creation and &quot;lctl test_create&quot; hangs with the following stack.&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;[&amp;lt;ffffffffa0171731&amp;gt;] cfs_waitq_timedwait+0x11/0x20 [libcfs]
[&amp;lt;ffffffffa0e74154&amp;gt;] osp_precreate_reserve+0x5c4/0x1ee0 [osp]
[&amp;lt;ffffffffa0e6dc55&amp;gt;] osp_declare_object_create+0x155/0x4f0 [osp]
[&amp;lt;ffffffffa0b7438d&amp;gt;] lod_qos_declare_object_on+0xed/0x480 [lod]
[&amp;lt;ffffffffa0b75f0f&amp;gt;] lod_alloc_rr.clone.2+0x66f/0xde0 [lod]
[&amp;lt;ffffffffa0b77b69&amp;gt;] lod_qos_prep_create+0xfa9/0x1b14 [lod]
[&amp;lt;ffffffffa0b71cab&amp;gt;] lod_declare_striped_object+0x14b/0x880 [lod]
[&amp;lt;ffffffffa0b72df3&amp;gt;] lod_declare_xattr_set+0x273/0x410 [lod]
[&amp;lt;ffffffffa0547700&amp;gt;] mdo_declare_xattr_set.clone.4+0x40/0xe0 [mdd]
[&amp;lt;ffffffffa054a470&amp;gt;] mdd_declare_create+0x4b0/0x860 [mdd]
[&amp;lt;ffffffffa054afb1&amp;gt;] mdd_create+0x791/0x1740 [mdd]
[&amp;lt;ffffffffa0ea8fef&amp;gt;] echo_md_create_internal+0x1cf/0x640 [obdecho]
[&amp;lt;ffffffffa0eb2b43&amp;gt;] echo_md_handler+0x1333/0x1ac0 [obdecho]
[&amp;lt;ffffffffa0eb7257&amp;gt;] echo_client_iocontrol+0x2dc7/0x3b40 [obdecho]
[&amp;lt;ffffffffa060849f&amp;gt;] class_handle_ioctl+0x12ff/0x1ec0 [obdclass]
[&amp;lt;ffffffffa05f02ab&amp;gt;] obd_class_ioctl+0x4b/0x190 [obdclass]
[&amp;lt;ffffffff81181372&amp;gt;] vfs_ioctl+0x22/0xa0
[&amp;lt;ffffffff81181514&amp;gt;] do_vfs_ioctl+0x84/0x580
[&amp;lt;ffffffff81181a91&amp;gt;] sys_ioctl+0x81/0xa0
[&amp;lt;ffffffff81003072&amp;gt;] system_call_fastpath+0x16/0x1b
[&amp;lt;ffffffffffffffff&amp;gt;] 0xffffffffffffffff
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;



</description>
                <environment>kernel 2.6.32-358.6.2&lt;br/&gt;
lustre 2.4.0</environment>
        <key id="19964">LU-3624</key>
            <summary>mds-survey has several bugs</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="1">Fixed</resolution>
                                        <assignee username="mdiep">Minh Diep</assignee>
                                    <reporter username="pichong">Gregoire Pichon</reporter>
                        <labels>
                            <label>patch</label>
                    </labels>
                <created>Wed, 24 Jul 2013 08:53:39 +0000</created>
                <updated>Tue, 31 Dec 2013 15:50:58 +0000</updated>
                            <resolved>Fri, 25 Oct 2013 12:31:21 +0000</resolved>
                                    <version>Lustre 2.4.0</version>
                    <version>Lustre 2.5.0</version>
                                    <fixVersion>Lustre 2.6.0</fixVersion>
                    <fixVersion>Lustre 2.5.1</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>5</watches>
                                                                            <comments>
                            <comment id="62894" author="pichong" created="Wed, 24 Jul 2013 14:00:34 +0000"  >&lt;p&gt;About point 3), the issue might not be caused by the &quot;destroy&quot; action. Looking at free/used objects on the OSTs shows that freeing is delayed and lasts several minutes.&lt;/p&gt;

&lt;p&gt;I run mds-survey with stripe_count=4 and file_count=100000, and in the meantime displayed the objects in use on one of the OSTs (/proc/fs/lustre/obdfilter/fs2-OST0000/filestotal - cat /proc/fs/lustre/obdfilter/fs2-OST0000/filesfree).&lt;/p&gt;

&lt;p&gt;15:53:42 fs2-OST0000 filesused=16543&lt;br/&gt;
15:53:52 fs2-OST0000 filesused=16543&lt;br/&gt;
15:54:02 fs2-OST0000 filesused=46543&lt;br/&gt;
15:54:12 fs2-OST0000 filesused=112447&lt;br/&gt;
15:54:22 fs2-OST0000 filesused=108351&lt;br/&gt;
15:54:32 fs2-OST0000 filesused=104255&lt;br/&gt;
15:54:42 fs2-OST0000 filesused=100159&lt;br/&gt;
15:54:52 fs2-OST0000 filesused=96063&lt;br/&gt;
15:55:02 fs2-OST0000 filesused=91967&lt;br/&gt;
15:55:12 fs2-OST0000 filesused=87871&lt;br/&gt;
15:55:22 fs2-OST0000 filesused=83775&lt;br/&gt;
15:55:32 fs2-OST0000 filesused=79679&lt;br/&gt;
15:55:42 fs2-OST0000 filesused=75583&lt;br/&gt;
15:55:52 fs2-OST0000 filesused=71487&lt;br/&gt;
15:56:02 fs2-OST0000 filesused=67391&lt;br/&gt;
15:56:12 fs2-OST0000 filesused=63295&lt;br/&gt;
15:56:22 fs2-OST0000 filesused=59199&lt;br/&gt;
15:56:32 fs2-OST0000 filesused=55103&lt;br/&gt;
15:56:42 fs2-OST0000 filesused=51007&lt;br/&gt;
15:56:52 fs2-OST0000 filesused=46911&lt;br/&gt;
15:57:02 fs2-OST0000 filesused=42815&lt;br/&gt;
15:57:12 fs2-OST0000 filesused=38719&lt;br/&gt;
15:57:22 fs2-OST0000 filesused=34623&lt;br/&gt;
15:57:32 fs2-OST0000 filesused=30527&lt;br/&gt;
15:57:42 fs2-OST0000 filesused=26431&lt;br/&gt;
15:57:52 fs2-OST0000 filesused=22335&lt;br/&gt;
15:58:02 fs2-OST0000 filesused=18239&lt;br/&gt;
15:58:12 fs2-OST0000 filesused=16543&lt;br/&gt;
15:58:22 fs2-OST0000 filesused=16543&lt;br/&gt;
15:58:32 fs2-OST0000 filesused=16543&lt;br/&gt;
15:58:42 fs2-OST0000 filesused=16543&lt;/p&gt;


&lt;p&gt;This behavior seems to be a problem when launching several mds-survey runs in a raw.&lt;/p&gt;</comment>
                            <comment id="62899" author="pichong" created="Wed, 24 Jul 2013 14:47:59 +0000"  >&lt;p&gt;Here is a patch for item 1)&lt;br/&gt;
&lt;a href=&quot;http://review.whamcloud.com/7101&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/7101&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="62953" author="pjones" created="Thu, 25 Jul 2013 02:21:58 +0000"  >&lt;p&gt;Bobbie&lt;/p&gt;

&lt;p&gt;Could you please take care of this one?&lt;/p&gt;

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

&lt;p&gt;Peter&lt;/p&gt;</comment>
                            <comment id="65813" author="pichong" created="Thu, 5 Sep 2013 08:43:01 +0000"  >&lt;p&gt;I have posted a patch for item 2) and other issues related to multiple MDT support in mds-survey.&lt;br/&gt;
Here it is: &lt;a href=&quot;http://review.whamcloud.com/7558&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/7558&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="66344" author="bobbielind" created="Wed, 11 Sep 2013 14:28:52 +0000"  >&lt;p&gt;Patch 1 has landed to master as 5ae2c575ff234c7b1189d2f71d8e5a73509591f3&lt;/p&gt;</comment>
                            <comment id="67519" author="pjones" created="Wed, 25 Sep 2013 12:43:50 +0000"  >&lt;p&gt;Minh will help with landing the remaining patch&lt;/p&gt;</comment>
                            <comment id="67699" author="mdiep" created="Thu, 26 Sep 2013 15:13:52 +0000"  >&lt;p&gt;Hi Gregoire,&lt;/p&gt;

&lt;p&gt;If you still have your system, could you provide the output of mds-survey run after you apply patch 2? - thanks&lt;/p&gt;</comment>
                            <comment id="68155" author="pichong" created="Wed, 2 Oct 2013 15:32:19 +0000"  >&lt;p&gt;Here is the output of mds-survey run with patch2.&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;targets=&quot;mo89:fs2-MDT0001 mo89:fs2-MDT0000 mo90:fs2-MDT0002 &quot; dir_count=4 file_count=1000000 thrlo=2 thrhi=16 stripe_count=0 tests_str=&quot;create lookup destroy&quot; rslt_loc=/tmp/mds-survey/20131002_172138/ /tmp/mds-survey/mds-survey
Wed Oct  2 17:21:41 CEST 2013 /tmp/mds-survey/mds-survey from mo89
mdt 3 file 1000000 dir    4 thr    4 create 47733.54 [    0.00, 75995.06] lookup 595223.13 [ 565806.08, 645481.12] destroy 48611.00 [    0.00, 95992.22] 
mdt 3 file 1000000 dir    4 thr    8 create 38134.17 [    0.00, 58996.99] lookup 914477.78 [ 821165.71, 1005936.03] destroy 46286.85 [    0.00, 87995.25] 
mdt 3 file 1000000 dir    4 thr   16 create 39500.31 [    0.00, 62936.69] lookup 979904.69 [ 912483.69, 1042839.86] destroy 40600.56 [    0.00, 88994.66] 
done!
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="69869" author="pichong" created="Fri, 25 Oct 2013 06:49:43 +0000"  >&lt;p&gt;The path &lt;a href=&quot;http://review.whamcloud.com/7558&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/7558&lt;/a&gt; has been merged into master.&lt;/p&gt;</comment>
                            <comment id="69884" author="pichong" created="Fri, 25 Oct 2013 12:40:08 +0000"  >&lt;p&gt;Peter,&lt;/p&gt;

&lt;p&gt;Since the patch &lt;a href=&quot;http://review.whamcloud.com/7558&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/7558&lt;/a&gt; fixes several bugs, do you think it could also be integrated in the 2.5.1, the next maintenance release ?&lt;/p&gt;</comment>
                            <comment id="69886" author="pjones" created="Fri, 25 Oct 2013 12:49:26 +0000"  >&lt;p&gt;Yes this patch will certainly be a candidate for 2.5.1&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_10040" key="com.atlassian.jira.plugin.system.customfieldtypes:labels">
                        <customfieldname>Epic</customfieldname>
                        <customfieldvalues>
                                        <label>mds-survey</label>
            <label>metadata</label>
            <label>test</label>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                <customfield id="customfield_10390" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hzvw07:</customfieldvalue>

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