<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:30: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-9972] Performance regressions on unique directory removal </title>
                <link>https://jira.whamcloud.com/browse/LU-9972</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;There is a performance regression on dir removal.&lt;/p&gt;

&lt;p&gt;Server and client : RHEL7.3&lt;br/&gt;
Lustre version : 2.10.52&lt;br/&gt;
Backend filesystem: ldiskfs&lt;/p&gt;

&lt;p&gt;mpirun --allow-run-as-root /work/tools/bin/mdtest -n 5000 -v -d /scratch0/mdtest.out -D -i 3 -p 10 -w 0 -u&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;SUMMARY: (of 3 iterations)
   Operation                      Max            Min           Mean        Std Dev
   ---------                      ---            ---           ----        -------
   Directory creation:      89757.381      65618.928      74607.900      10774.356
   Directory stat    :     320946.433     319888.242     320294.264        465.749
   Directory removal :      19028.569      17837.487      18351.200        499.838
   Tree creation     :        434.446        158.826        318.943        116.860
   Tree removal      :         27.018         25.210         26.281          0.775
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment>2.10 (and 2.11)</environment>
        <key id="48270">LU-9972</key>
            <summary>Performance regressions on unique directory removal </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="bzzz">Alex Zhuravlev</assignee>
                                    <reporter username="ihara">Shuichi Ihara</reporter>
                        <labels>
                    </labels>
                <created>Mon, 11 Sep 2017 23:56:18 +0000</created>
                <updated>Thu, 1 Mar 2018 20:38:08 +0000</updated>
                            <resolved>Tue, 6 Feb 2018 04:57:42 +0000</resolved>
                                                    <fixVersion>Lustre 2.11.0</fixVersion>
                    <fixVersion>Lustre 2.10.4</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>15</watches>
                                                                            <comments>
                            <comment id="208129" author="adilger" created="Tue, 12 Sep 2017 14:24:19 +0000"  >&lt;p&gt;Compared to which version/kernel?&lt;/p&gt;</comment>
                            <comment id="208136" author="ihara" created="Tue, 12 Sep 2017 16:00:42 +0000"  >&lt;p&gt;For example lustre-2.7(IEEL3.0)/CentOS7.3&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;SUMMARY: (of 3 iterations)
   Operation                      Max            Min           Mean        Std Dev
   ---------                      ---            ---           ----        -------
   Directory creation:      46577.991      42249.894      44871.081       1881.494
   Directory stat    :     373243.136     367643.706     370043.774       2354.791
   Directory removal :      78530.701      66152.245      72781.092       5091.584
   File creation     :     107283.764      96953.405     103118.187       4447.973
   File stat         :     385082.155     375112.919     379387.910       4191.828
   File read         :     185463.654     177089.199     182367.310       3750.818
   File removal      :     127467.768     113218.809     122566.251       6612.256
   Tree creation     :        349.409         91.996        262.234        120.388
   Tree removal      :         20.765         18.039         19.132          1.176
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;I&apos;m going to test lustre-2.9  to compare.&lt;/p&gt;</comment>
                            <comment id="208573" author="ihara" created="Sat, 16 Sep 2017 11:00:43 +0000"  >&lt;p&gt;Sorry delay response. I needed to change hardware configuration, but here is new results on b2_10 (2.10.1_RC1).&lt;br/&gt;
rmdir to unique directories is obviously slow compared to same benchmark to a shared directory. &lt;/p&gt;

&lt;p&gt;mpirun -np 128 mdtest -n 5000 -v -d /scratch0/mdtest.out -i 3 -p 30 -D (for shared directory )&lt;br/&gt;
mpirun -np 128 mdtest -n 5000 -v -d /scratch0/mdtest.out -i 3 -p 30 -D -u (for unique directory )&lt;br/&gt;
32 clients, 128 processes. both of them were collected on exact same hardware configuration.&lt;/p&gt;

&lt;p&gt;Here is a directory operations to a shared directory.&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;SUMMARY: (of 3 iterations)
   Operation                      Max            Min           Mean        Std Dev
   ---------                      ---            ---           ----        -------
   Directory creation:      91979.485      69249.863      79842.797       9343.315
   Directory stat    :     197008.811     180039.999     189342.439       7023.422
   Directory removal :     140527.764     128798.718     133567.639       5032.803
   Tree creation     :       5462.720       1034.229       3084.207       1822.788
   Tree removal      :         92.639         74.702         86.019          8.041
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;  

&lt;p&gt;And here is unique directory&apos;s results.&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;  
SUMMARY: (of 3 iterations)
   Operation                      Max            Min           Mean        Std Dev
   ---------                      ---            ---           ----        -------
   Directory creation:      84094.691      75575.177      80444.764       3583.407
   Directory stat    :     463370.743     431285.266     448299.685      13170.724
   Directory removal :      18722.965      18461.182      18558.573        116.903
   Tree creation     :        593.577        310.356        472.213        119.117
   Tree removal      :         37.275         33.999         35.691          1.340
V-1: Entering timestamp...
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;  </comment>
                            <comment id="208649" author="adilger" created="Mon, 18 Sep 2017 17:16:47 +0000"  >&lt;p&gt;Cliff, do we have similar mdtest results from the performance test cluster, in particular 2.10.0/1, 2.10.52/53, and 2.9.x? That would give us a ballpark of where this performance regression has been introduced, and allow git bisect to narrow it down to a particular patch.&lt;/p&gt;</comment>
                            <comment id="208709" author="ihara" created="Tue, 19 Sep 2017 00:26:31 +0000"  >&lt;p&gt;I think the problem has been exist in b2_9 at least.&lt;br/&gt;
Here is results of same test on b2_9. (keep 2.10.1 for client, but just chnged server with b2_9)&lt;/p&gt;

&lt;p&gt; mpirun -np 128 mdtest -n 5000 -v -d /scratch0/mdtest.out -i 3 -p 30 -D -u (unique directory)&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;SUMMARY: (of 3 iterations)
   Operation                      Max            Min           Mean        Std Dev
   ---------                      ---            ---           ----        -------
   Directory creation:      91409.935      72314.781      84242.568       8491.267
   Directory stat    :     184806.326     183688.542     184367.927        487.111
   Directory removal :      20718.518      20303.157      20555.893        181.147
   Tree creation     :        552.285        400.441        473.117         62.160
   Tree removal      :         40.413         29.341         35.321          4.563
V-1: Entering timestamp...
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;mpirun -np 128 mdtest -n 5000 -v -d /scratch0/mdtest.out -i 3 -p 30 -D (shared directory)&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;SUMMARY: (of 3 iterations)
   Operation                      Max            Min           Mean        Std Dev
   ---------                      ---            ---           ----        -------
   Directory creation:      70310.000      45717.790      58926.161      10122.282
   Directory stat    :     178080.331     175913.598     176783.485        934.667
   Directory removal :      86194.900      72838.446      79018.261       5498.119
   Tree creation     :       5527.274       2804.821       3744.496       1261.231
   Tree removal      :         80.959         24.059         61.936         26.784
V-1: Entering timestamp...
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="208711" author="cliffw" created="Tue, 19 Sep 2017 01:02:25 +0000"  >&lt;p&gt;Our hardware config has changed a bit since 2.9, we have seen noticeable improvements since changing the tuned-adm profile. Of course all our old results are on Sharepoint: &lt;br/&gt;
If you look at the most current spreadsheet, you will see the jump in Dir rm with the tuned-adm change:&lt;br/&gt;
&lt;a href=&quot;http://tinyurl.com/ydzx7gxp&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://tinyurl.com/ydzx7gxp&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you look at our last EE 3.0 runs from June 2017, you will see Dir rm is 4x better. (b_ieel3_0 build 214) So I would look at some deltas there: &lt;a href=&quot;http://tinyurl.com/yanedznq&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://tinyurl.com/yanedznq&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="208779" author="adilger" created="Tue, 19 Sep 2017 17:58:35 +0000"  >&lt;p&gt;Results from master builds (18 threads 16 client mdtestfpp) :&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;Build          Version        Dir create   Dir stat      Dir rm
master-3596    2.9.58_22      21514        188773        11822
master-3598    2.9.58_57      21570        209599        11653
master-3601    2.9.59         21063        223101        11879
master-2607    2.8.59-35      19328        211813        11797
master-3637    2.10.52_83     25987        234954        15033

&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Results from EE builds:&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;Build          Version        Dir create   Dir stat      Dir rm
b_ieel3_0-105  2.7.18         21239        167421        73112
b_ieel3_0-89   2.7.16.1       19758        169050        77119
b_ieel3_0-204  2.7.19.12      28330        288267        59444
b_ieel3_0-214  2.7.20.2       28136        331563        60515
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="208903" author="pjones" created="Wed, 20 Sep 2017 14:42:58 +0000"  >&lt;p&gt;Saurabh&lt;/p&gt;

&lt;p&gt;Please can you narrow down where the change occurred?&lt;/p&gt;

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

&lt;p&gt;Peter&lt;/p&gt;</comment>
                            <comment id="208967" author="adilger" created="Wed, 20 Sep 2017 21:59:34 +0000"  >&lt;p&gt;Discussed this with Saurabh and Cliff.  Cliff thinks the problem may date back to DNE2 landings, since EE 2.7 predates the DNE2 changes, and they appeared as early as 2.8.0.&lt;/p&gt;

&lt;p&gt;Saurabh will try a &lt;tt&gt;git bisect&lt;/tt&gt; starting with v2_7_50 (== 2.7.0) to see if that has good performance on our test cluster (good ~= 70k rmdir/sec) and go from there.  We would like to keep the kernel version the same, at RHEL 7.4, to avoid potential interference with the results from changing the kernel or other configuration options.&lt;/p&gt;</comment>
                            <comment id="208978" author="gerrit" created="Thu, 21 Sep 2017 00:14:59 +0000"  >&lt;p&gt;Saurabh Tandan (saurabh.tandan@intel.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/29126&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/29126&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-9972&quot; title=&quot;Performance regressions on unique directory removal &quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-9972&quot;&gt;&lt;del&gt;LU-9972&lt;/del&gt;&lt;/a&gt; tests: Build required for &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-9972&quot; title=&quot;Performance regressions on unique directory removal &quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-9972&quot;&gt;&lt;del&gt;LU-9972&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 708fec1e34058ec735be819217498f8cc90aa924&lt;/p&gt;</comment>
                            <comment id="210679" author="ihara" created="Tue, 10 Oct 2017 00:13:47 +0000"  >&lt;p&gt;Any progress on finding regression point?&lt;/p&gt;</comment>
                            <comment id="210686" author="standan" created="Tue, 10 Oct 2017 01:34:54 +0000"  >&lt;p&gt;Still working on it Shuichi, will soon post some findings.&lt;/p&gt;</comment>
                            <comment id="211561" author="pjones" created="Fri, 20 Oct 2017 03:46:56 +0000"  >&lt;p&gt;Alex&lt;/p&gt;

&lt;p&gt;I daresay that Saurabh may elaborate but I understand that he has found that your patch &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-7053&quot; title=&quot;Do not use osd_object_find in osd_index_ea_insert&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-7053&quot;&gt;&lt;del&gt;LU-7053&lt;/del&gt;&lt;/a&gt; (osd: don&apos;t lookup object at insert &lt;a href=&quot;https://review.whamcloud.com/#/c/17092/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/#/c/17092/&lt;/a&gt;) is the one that introduced the performance regression with directory removal&lt;/p&gt;

&lt;p&gt;Do you have any ideas on how to avoid this?&lt;/p&gt;

&lt;p&gt;Peter&lt;/p&gt;</comment>
                            <comment id="211586" author="standan" created="Fri, 20 Oct 2017 15:47:11 +0000"  >&lt;p&gt;There was approximately a drop of 90% in performance fir &quot;Dir removal&quot; for &quot;mdtestfpp&quot; results from tag 2.7.65. Following is the data for all the runs:&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;Tag                             Dir removal
2.7.56                          18298
2.7.57                         121954
2.7.61                          64849
2.7.64                         111655 good
2.7.64-g63a3e412 (LU-7419)      74384 good
2.7.64-gc965fc8a (LU-7450)      72374 good
2.7.64-g6765d785 (LU-7408)      92029 good
2.7.64-g9ae3a289 (LU-7053)      11517 bad
2.7.64-g0d3a07a8 (LU-7430)      15114 bad
2.7.64-g959f8f78 (LU-7573)      11530 bad 
2.7.65                          11375 bad
2.7.66                          11403 bad
2.10.53                         12473
2.10.54                          9649


&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="211590" author="jhammond" created="Fri, 20 Oct 2017 16:56:35 +0000"  >&lt;p&gt;There must have been more runs than just these if you were able to isolate &lt;a href=&quot;https://review.whamcloud.com/#/c/17092/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/#/c/17092/&lt;/a&gt;.&lt;/p&gt;</comment>
                            <comment id="211607" author="adilger" created="Fri, 20 Oct 2017 22:07:34 +0000"  >&lt;p&gt;I&apos;ve updated the results to show the commit-order test results for the bisect (not the bisect order), to show there is a clear break between &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-7408&quot; title=&quot;multislot RPC support didn&amp;#39;t declare write for reply_data object&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-7408&quot;&gt;&lt;del&gt;LU-7408&lt;/del&gt;&lt;/a&gt; and the next patch &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-7053&quot; title=&quot;Do not use osd_object_find in osd_index_ea_insert&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-7053&quot;&gt;&lt;del&gt;LU-7053&lt;/del&gt;&lt;/a&gt;.&lt;/p&gt;</comment>
                            <comment id="211649" author="bzzz" created="Mon, 23 Oct 2017 10:12:11 +0000"  >&lt;p&gt;I tried to revert  &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-7053&quot; title=&quot;Do not use osd_object_find in osd_index_ea_insert&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-7053&quot;&gt;&lt;del&gt;LU-7053&lt;/del&gt;&lt;/a&gt; on master and got no difference for rmdir:&lt;br/&gt;
with  &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-7053&quot; title=&quot;Do not use osd_object_find in osd_index_ea_insert&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-7053&quot;&gt;&lt;del&gt;LU-7053&lt;/del&gt;&lt;/a&gt;: total: 100000 unlinks in 16 seconds: 6250.000000 unlinks/second&lt;br/&gt;
without  &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-7053&quot; title=&quot;Do not use osd_object_find in osd_index_ea_insert&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-7053&quot;&gt;&lt;del&gt;LU-7053&lt;/del&gt;&lt;/a&gt;: total: 100000 unlinks in 16 seconds: 6250.000000 unlinks/second&lt;br/&gt;
the load was simulated with createmany/unlinkmany&lt;/p&gt;

&lt;p&gt;going to proceed with mdtest, but that will take some time.&lt;/p&gt;</comment>
                            <comment id="211654" author="gerrit" created="Mon, 23 Oct 2017 12:44:31 +0000"  >&lt;p&gt;Alex Zhuravlev (alexey.zhuravlev@intel.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/29709&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/29709&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-9972&quot; title=&quot;Performance regressions on unique directory removal &quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-9972&quot;&gt;&lt;del&gt;LU-9972&lt;/del&gt;&lt;/a&gt; osd: cache OI mapping in dt_ref_&lt;/p&gt;
{del|add}
&lt;p&gt;()&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: ccb8803749e9234e4bd6e5e451a3333d6b17e594&lt;/p&gt;</comment>
                            <comment id="211655" author="bzzz" created="Mon, 23 Oct 2017 12:46:06 +0000"  >&lt;p&gt;please, try with the patch above.&lt;/p&gt;</comment>
                            <comment id="212109" author="standan" created="Thu, 26 Oct 2017 17:54:27 +0000"  >&lt;p&gt;Performance results with patch above:&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;MDTEST RESULTS
000: SUMMARY: (of 3 iterations)
000:    Operation                      Max            Min           Mean        Std Dev
000:    ---------                      ---            ---           ----        -------
000:    Directory creation:      24200.233      15693.923      18542.903       4000.371
000:    Directory stat    :     235384.333     230225.191     233266.050       2204.926
000:    Directory removal :      82809.228      30178.490      51633.084      22559.256
000:    File creation     :      50508.075      33979.054      41331.172       6870.202
000:    File stat         :     232294.752     226222.165     228931.104       2521.978
000:    File read         :     124620.945     110484.961     119398.361       6333.672
000:    File removal      :     128159.287      77027.802     106534.012      21605.386
000:    Tree creation     :        124.922         65.746        103.702         26.901
000:    Tree removal      :          9.709          7.841          8.650          0.783
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Results for dir removal with this patch have surely improved but still not to the mark where they were before &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-7053&quot; title=&quot;Do not use osd_object_find in osd_index_ea_insert&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-7053&quot;&gt;&lt;del&gt;LU-7053&lt;/del&gt;&lt;/a&gt; was landed.&lt;br/&gt;
Test run for Lustre version just before landing of &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-7053&quot; title=&quot;Do not use osd_object_find in osd_index_ea_insert&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-7053&quot;&gt;&lt;del&gt;LU-7053&lt;/del&gt;&lt;/a&gt; showed performance number for Dir removal as &quot;92029.569&quot; (mean) .&lt;/p&gt;</comment>
                            <comment id="212151" author="adilger" created="Thu, 26 Oct 2017 21:37:15 +0000"  >&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;Build          Version             Dir create   Dir stat   Dir rm
b_ieel3_0-89   2.7.16.1                 19758     169050    77119 
b_ieel3_0-105  2.7.18                   21239     167421    73112
b_ieel3_0-214  2.7.20.2                 28136     331563    60515
master-3601    2.9.59                   21063     223101    11879
master-2607    2.8.59-35                19328     211813    11797
master-3637    2.10.52_83               25987     234954    15033
master         2.10.54                  18676	  210767    10282
review-51618   2.10.54-20-g66bb2d1      18542     233266    51633

&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;So it looks like the rmdir performance is significantly improved, but the mkdir performance is down a bit from 2.10.53, but about on par with 2.10.54. It looks like the file create/stat/unlink performance is a bit lower vs. 2.10.54, but definitely still a lot better than 2.7.64.&lt;/p&gt;

&lt;p&gt;Alex, would it make sense to only add directory objects to the cache, instead of adding all objects?&#160; That may give us the best of both worlds.&lt;/p&gt;</comment>
                            <comment id="212169" author="bzzz" created="Fri, 27 Oct 2017 04:46:28 +0000"  >&lt;p&gt;Andreas, at the moment I don&apos;t quite understand how the cache can decrease performance as it&apos;s TLS, lockless, tiny and it replaces a lookup in LU cache which in contrast much larger and needs locking. I keep investigating..&lt;/p&gt;</comment>
                            <comment id="212184" author="bzzz" created="Fri, 27 Oct 2017 13:45:38 +0000"  >&lt;p&gt;please, benchmark master with &lt;a href=&quot;https://review.whamcloud.com/#/c/29821/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/#/c/29821/&lt;/a&gt;&lt;br/&gt;
this patch reverts just &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-7053&quot; title=&quot;Do not use osd_object_find in osd_index_ea_insert&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-7053&quot;&gt;&lt;del&gt;LU-7053&lt;/del&gt;&lt;/a&gt;.&lt;/p&gt;</comment>
                            <comment id="212191" author="jhammond" created="Fri, 27 Oct 2017 15:07:16 +0000"  >&lt;p&gt;Before &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-7053&quot; title=&quot;Do not use osd_object_find in osd_index_ea_insert&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-7053&quot;&gt;&lt;del&gt;LU-7053&lt;/del&gt;&lt;/a&gt;, when calling osd_index_declare_ea_insert() from orph_declare_index_insert(), we only looked up the FID of mdd-&amp;gt;mdd_orphans in the FLDB to determine if it was local or remote (so that we could declare additional credits in the remote case). Now we do osd_idc_find_or_init() which included OI lookup in the local case. I understand that we may need the extra information if osd_index_ea_insert() gets called to add the directory to the orphan dir. But I assume that we are not hitting this case from mdtest. So maybe the difference between FLDB lookup and full IDC initialization (and/or contention effects) could explain the difference.&lt;/p&gt;</comment>
                            <comment id="212192" author="bzzz" created="Fri, 27 Oct 2017 15:11:29 +0000"  >&lt;p&gt;IDC is lockless and per-thread while FLDB is a shared structure.&lt;/p&gt;</comment>
                            <comment id="212194" author="jhammond" created="Fri, 27 Oct 2017 15:19:30 +0000"  >&lt;p&gt;Yes, but I&apos;m not talking about the cost of accessing the IDC cache. I mean the extra cost of OI lookup to initialize the IDC entry.&lt;/p&gt;</comment>
                            <comment id="212195" author="bzzz" created="Fri, 27 Oct 2017 15:21:48 +0000"  >&lt;p&gt;usually it&apos;s initialized from other preceding methods (like osd_declare_ref_&lt;/p&gt;
{add|del}
&lt;p&gt; in  &lt;a href=&quot;https://review.whamcloud.com/29709&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/29709&lt;/a&gt;&lt;br/&gt;
with no extra lookups.&lt;/p&gt;</comment>
                            <comment id="212198" author="bzzz" created="Fri, 27 Oct 2017 15:28:43 +0000"  >&lt;p&gt;to verify that I added printk() to osd_idc_find_or_init() and got zero calls to osd_remote_fid() and osd_oi_lookup() during rmdir.&lt;br/&gt;
there are few calls to osd_remote_fid() (which I hope to fix in a separate patch), but those weren&apos;t introduced with &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-7053&quot; title=&quot;Do not use osd_object_find in osd_index_ea_insert&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-7053&quot;&gt;&lt;del&gt;LU-7053&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="212245" author="standan" created="Fri, 27 Oct 2017 23:28:13 +0000"  >&lt;p&gt;Results of patch &lt;a href=&quot;https://review.whamcloud.com/#/c/29821/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/#/c/29821/&lt;/a&gt; which reverts just &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-7053&quot; title=&quot;Do not use osd_object_find in osd_index_ea_insert&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-7053&quot;&gt;&lt;del&gt;LU-7053&lt;/del&gt;&lt;/a&gt;:&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;MIB RESULTS
MDTEST RESULTS
000: SUMMARY: (of 3 iterations)
000:    Operation                      Max            Min           Mean        Std Dev
000:    ---------                      ---            ---           ----        -------
000:    Directory creation:      21177.729      16443.602      18498.262       1982.554
000:    Directory stat    :     232409.626     229897.859     230874.272       1098.955
000:    Directory removal :     111897.307      40906.454      75055.964      29044.331
000:    File creation     :      44061.464      38438.052      41863.997       2454.596
000:    File stat         :     225941.782     193254.640     210777.086      13448.211
000:    File read         :     146598.308      86669.775     126562.125      28208.247
000:    File removal      :     155512.154     106886.927     136397.357      21168.452
000:    Tree creation     :        120.178         56.129         96.113         28.468
000:    Tree removal      :          8.906          8.122          8.620          0.354
000:

&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Dir removal for this run has been &quot;75055.964&quot; (mean) approx 45% higher in performance in comparison to the patch &lt;a href=&quot;https://review.whamcloud.com/29709&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/29709&lt;/a&gt; under exactly same conditions and number of iterations.&lt;/p&gt;</comment>
                            <comment id="212268" author="bzzz" created="Sun, 29 Oct 2017 08:13:12 +0000"  >&lt;p&gt;thanks for the data. I&apos;ve updated &lt;a href=&quot;https://review.whamcloud.com/29709&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/29709&lt;/a&gt;&lt;br/&gt;
please benchmark master with that. the patch collects additional stats and dump it at umount in the following form:&lt;br/&gt;
+       if (atomic_read(&amp;amp;o-&amp;gt;od_idc_remotes) ||&lt;br/&gt;
+           atomic_read(&amp;amp;o-&amp;gt;od_idc_oi))&lt;br/&gt;
+               printk(&quot;%s: %d checks for remote, %d OI lookups\n&quot;,&lt;br/&gt;
+                      o-&amp;gt;od_svname,&lt;br/&gt;
+                      atomic_read(&amp;amp;o-&amp;gt;od_idc_remotes),&lt;br/&gt;
+                      atomic_read(&amp;amp;o-&amp;gt;od_idc_oi));&lt;/p&gt;

&lt;p&gt;please attach it here if printed.&lt;br/&gt;
thanks in advance.&lt;/p&gt;

&lt;p&gt;I&apos;m working on a followup patch to optimize calls to osd_remote_fid(), this isn&apos;t directly related to &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-7053&quot; title=&quot;Do not use osd_object_find in osd_index_ea_insert&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-7053&quot;&gt;&lt;del&gt;LU-7053&lt;/del&gt;&lt;/a&gt;, but hopefully can fix the issue.&lt;/p&gt;</comment>
                            <comment id="213646" author="bzzz" created="Tue, 14 Nov 2017 11:07:16 +0000"  >&lt;p&gt;please, try with the updated patch.&lt;/p&gt;</comment>
                            <comment id="217484" author="jgmitter" created="Thu, 4 Jan 2018 15:06:28 +0000"  >&lt;p&gt;Hi Ihara,&lt;/p&gt;

&lt;p&gt;Have you been able to confirm that Alex&apos;s patch resolves the issue?&lt;/p&gt;

&lt;p&gt;Thanks.&lt;br/&gt;
Joe&lt;/p&gt;</comment>
                            <comment id="220047" author="gerrit" created="Tue, 6 Feb 2018 04:25:46 +0000"  >&lt;p&gt;Oleg Drokin (oleg.drokin@intel.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/29709/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/29709/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-9972&quot; title=&quot;Performance regressions on unique directory removal &quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-9972&quot;&gt;&lt;del&gt;LU-9972&lt;/del&gt;&lt;/a&gt; osd: cache OI mapping in dt_declare_ref_add&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: b6e718def348c53759a12afee9450207fc7ab56f&lt;/p&gt;</comment>
                            <comment id="220077" author="pjones" created="Tue, 6 Feb 2018 04:57:42 +0000"  >&lt;p&gt;Landed for 2.11&lt;/p&gt;</comment>
                            <comment id="220356" author="gerrit" created="Wed, 7 Feb 2018 19:48:50 +0000"  >&lt;p&gt;Minh Diep (minh.diep@intel.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/31211&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/31211&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-9972&quot; title=&quot;Performance regressions on unique directory removal &quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-9972&quot;&gt;&lt;del&gt;LU-9972&lt;/del&gt;&lt;/a&gt; osd: cache OI mapping in dt_declare_ref_add&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: b2_10&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: d334fd8aa117d9a957365bdfb6792bcaaf6533cc&lt;/p&gt;</comment>
                            <comment id="222081" author="gerrit" created="Thu, 1 Mar 2018 19:59:05 +0000"  >&lt;p&gt;John L. Hammond (john.hammond@intel.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/31211/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/31211/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-9972&quot; title=&quot;Performance regressions on unique directory removal &quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-9972&quot;&gt;&lt;del&gt;LU-9972&lt;/del&gt;&lt;/a&gt; osd: cache OI mapping in dt_declare_ref_add&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: b2_10&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 025d0412599ed9381be4a0ab84d190b59fc2c451&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="31759">LU-7053</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="28555" name="LU-9972 (2.7.64_X vs 2.10.54) 2017-10-26.xlsx" size="36280" author="adilger" created="Thu, 26 Oct 2017 21:37:56 +0000"/>
                            <attachment id="28510" name="LU-9972 (2.7.64_X vs 2.10.54) Oct 19th 2017.xlsx" size="35408" author="standan" created="Sat, 21 Oct 2017 01:14:55 +0000"/>
                    </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|hzzjz3:</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>