<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:12:16 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-7828] Traversal directory is very slow</title>
                <link>https://jira.whamcloud.com/browse/LU-7828</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;Some customer found that:&lt;br/&gt;
Several customers said &quot;ls&quot; is slow with latest Lustre codes.&lt;br/&gt;
We tried to figure out detail and the following codes are easy to reproudce at the cutomer site. But, if we changed &quot;ls -F&quot; with &quot;ls -F *&quot;, the problem didn&apos;t reproduce.&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;#!/bin/bash

&lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; ((i=0;i&amp;lt;2583;i++)); &lt;span class=&quot;code-keyword&quot;&gt;do&lt;/span&gt; 
        dd &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt;=/dev/zero of=file$i.dat bs=1024 count=400 &amp;gt; /dev/&lt;span class=&quot;code-keyword&quot;&gt;null&lt;/span&gt; 2&amp;gt;&amp;amp;1 
done

&lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; ((i=0;i&amp;lt;20;i++)); &lt;span class=&quot;code-keyword&quot;&gt;do&lt;/span&gt;
        (time ls -F &amp;gt; /dev/&lt;span class=&quot;code-keyword&quot;&gt;null&lt;/span&gt;) &amp;gt;&amp;gt; lscheck.txt
done

rm -f file*.dat
echo &quot;&quot;
cat lscheck.txt
rm -f lscheck.txt
exit
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Above test is just repeating &quot;ls -F&quot; 10 times after 2583 file creation.&lt;br/&gt;
Please see below. The most of cases finish quickly (less than 1 sec), but sevral cases, it took 30 sec. &lt;br/&gt;
And, one of strange thing, alltime it takes 30 sec or 30 sec x N.&lt;/p&gt;

&lt;p&gt;This is 100% reproducable and we trying strace or ftrace to find where is most highest cost of system call.&lt;br/&gt;
However, when if we run &quot;strace -f ls -F&quot;, the problem never reproduced which is also strange.&lt;/p&gt;

&lt;p&gt;But, the problem only reproduced on the Lustre.. &lt;/p&gt;</description>
                <environment></environment>
        <key id="35074">LU-7828</key>
            <summary>Traversal directory is very slow</summary>
                <type id="1" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="2" iconUrl="https://jira.whamcloud.com/images/icons/priorities/critical.svg">Critical</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="yong.fan">nasf</assignee>
                                    <reporter username="yong.fan">nasf</reporter>
                        <labels>
                    </labels>
                <created>Tue, 1 Mar 2016 09:11:36 +0000</created>
                <updated>Tue, 6 Jun 2017 13:20:46 +0000</updated>
                            <resolved>Tue, 29 Mar 2016 16:56:19 +0000</resolved>
                                    <version>Lustre 2.7.0</version>
                    <version>Lustre 2.8.0</version>
                                    <fixVersion>Lustre 2.9.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>6</watches>
                                                                            <comments>
                            <comment id="144262" author="yong.fan" created="Tue, 1 Mar 2016 09:25:15 +0000"  >&lt;p&gt;Here is the the patch:&lt;br/&gt;
&lt;a href=&quot;http://review.whamcloud.com/18499&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/18499&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="147070" author="gerrit" created="Mon, 28 Mar 2016 18:45:26 +0000"  >&lt;p&gt;Oleg Drokin (oleg.drokin@intel.com) merged in patch &lt;a href=&quot;http://review.whamcloud.com/18499/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/18499/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-7828&quot; title=&quot;Traversal directory is very slow&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-7828&quot;&gt;&lt;del&gt;LU-7828&lt;/del&gt;&lt;/a&gt; statahead: set sai_index_wait with lli_sa_lock held&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 35fb132546ff45cd4b3f08dd9feaa6f69ad02b3a&lt;/p&gt;</comment>
                            <comment id="147215" author="jgmitter" created="Tue, 29 Mar 2016 16:56:19 +0000"  >&lt;p&gt;Landed for 2.9.0&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                                        </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                                        </outwardlinks>
                                                                <inwardlinks description="is related to">
                                                        </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_10390" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hzy37j:</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>