<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:01:08 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-6544] Improve mkfs.lustre --stripe-count-hint inode size calculation for ldiskfs</title>
                <link>https://jira.whamcloud.com/browse/LU-6544</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;Running &lt;tt&gt;mkfs.lustre --stripe-count-hint=N&lt;/tt&gt; should tune the ldiskfs inode size to allow files with N stripes to fit the &lt;tt&gt;lov&lt;/tt&gt; layout xattr into the inode rather than storing it in an external xattr block (which reduces performance and significantly increases the space used per file on the MDT).  However, I think that with newer xattrs such as &lt;tt&gt;lma&lt;/tt&gt; may not be taken into account in the default stripe calculations.&lt;/p&gt;</description>
                <environment></environment>
        <key id="29776">LU-6544</key>
            <summary>Improve mkfs.lustre --stripe-count-hint inode size calculation for ldiskfs</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="emoly.liu">Emoly Liu</assignee>
                                    <reporter username="adilger">Andreas Dilger</reporter>
                        <labels>
                            <label>easy</label>
                    </labels>
                <created>Wed, 29 Apr 2015 14:36:38 +0000</created>
                <updated>Thu, 12 May 2016 18:02:41 +0000</updated>
                            <resolved>Mon, 3 Aug 2015 15:15:02 +0000</resolved>
                                    <version>Lustre 2.5.3</version>
                    <version>Lustre 2.8.0</version>
                                    <fixVersion>Lustre 2.8.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>5</watches>
                                                                            <comments>
                            <comment id="115978" author="emoly.liu" created="Wed, 20 May 2015 07:16:58 +0000"  >&lt;p&gt;Andreas, the current inode_size calculation is shown in the following:&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;                /* Inode size (&lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; extended attributes).  The LOV EA size is
                 * 32 (EA hdr) + 32 (lov_mds_md) + stripes * 24 (lov_ost_data),
                 * and we want some margin above that &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; ACLs, other EAs... */
                &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (strstr(mop-&amp;gt;mo_mkfsopts, &lt;span class=&quot;code-quote&quot;&gt;&quot;-I&quot;&lt;/span&gt;) == NULL) {
                        &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (IS_MDT(&amp;amp;mop-&amp;gt;mo_ldd)) {
                                &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (mop-&amp;gt;mo_stripe_count &amp;gt; 72)
                                        inode_size = 512; &lt;span class=&quot;code-comment&quot;&gt;/* bz 7241 */&lt;/span&gt;
                                &lt;span class=&quot;code-comment&quot;&gt;/* see also &lt;span class=&quot;code-quote&quot;&gt;&quot;-i&quot;&lt;/span&gt; below &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; EA blocks */&lt;/span&gt;
                                &lt;span class=&quot;code-keyword&quot;&gt;else&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (mop-&amp;gt;mo_stripe_count &amp;gt; 32)
                                        inode_size = 2048;
                                &lt;span class=&quot;code-keyword&quot;&gt;else&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (mop-&amp;gt;mo_stripe_count &amp;gt; 10)
                                        inode_size = 1024;
                                &lt;span class=&quot;code-keyword&quot;&gt;else&lt;/span&gt;
                                        inode_size = 512;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;If I understand the new requirement right, no matter what stripe_count=N the user sets, we should fit lma and all current xattrs into the inode size. The the calculation looks like&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;156(ldiskfs_inode_size) + 24(lma) + 32(lov EA hdr) + 32 (lov_mds_md) + 24(lov_ost_data) * N &amp;lt;= 512*2^m {m=0,1,2,3}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;And m can&apos;t be bigger than 3 (at this situation inode size will be 4096bytes), and the biggest value of N is 160, right?&lt;/p&gt;</comment>
                            <comment id="119302" author="adilger" created="Tue, 23 Jun 2015 09:55:24 +0000"  >&lt;p&gt;It looks like the previous limits were leaving a small amount of free space at each step (about 12 bytes), but it would be better to reduce the limits to 8, 30, 72 so there is a small amount of space reserved for other xattrs (ACL, etc) in the inode.&lt;/p&gt;</comment>
                            <comment id="121648" author="gerrit" created="Mon, 20 Jul 2015 02:30:46 +0000"  >&lt;p&gt;Emoly Liu (emoly.liu@intel.com) uploaded a new patch: &lt;a href=&quot;http://review.whamcloud.com/15643&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/15643&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-6544&quot; title=&quot;Improve mkfs.lustre --stripe-count-hint inode size calculation for ldiskfs&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-6544&quot;&gt;&lt;del&gt;LU-6544&lt;/del&gt;&lt;/a&gt; mkfs: Reduce mkfs.lustre --stripe-count-hint limits&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 0e2e2ede4eaba5aa66c2436e39c713aa8a95d0c5&lt;/p&gt;</comment>
                            <comment id="122974" author="gerrit" created="Mon, 3 Aug 2015 02:03:13 +0000"  >&lt;p&gt;Oleg Drokin (oleg.drokin@intel.com) merged in patch &lt;a href=&quot;http://review.whamcloud.com/15643/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/15643/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-6544&quot; title=&quot;Improve mkfs.lustre --stripe-count-hint inode size calculation for ldiskfs&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-6544&quot;&gt;&lt;del&gt;LU-6544&lt;/del&gt;&lt;/a&gt; mkfs: Improve MDT inode size calculation&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 71b3cc3315114b2101bc32707fa66740279fff54&lt;/p&gt;</comment>
                            <comment id="123014" author="pjones" created="Mon, 3 Aug 2015 15:15:02 +0000"  >&lt;p&gt;Landed for 2.8&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                                        </outwardlinks>
                                                        </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|hzxc4n:</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>