<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 03:40:37 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>[LUDOC-148] Please document mb_groups buddy cache proc output</title>
                <link>https://jira.whamcloud.com/browse/LUDOC-148</link>
                <project id="10070" key="LUDOC">Lustre Documentation</project>
                    <description>&lt;p&gt;Currently both ext4 and ldiskfs provide /proc/fs/&lt;/p&gt;
{ext4 | ldiskfs}
&lt;p&gt;/&amp;lt;dev&amp;gt;/mb_groups output. This file is referenced in many kernel documents however other than noting that it&apos;s providing data on buddy group cache info, it doesn&apos;t bother documenting any further.&lt;/p&gt;

&lt;p&gt;Below is sample output from this file, it would be extremely useful for this to be fully documented and understood.&lt;/p&gt;


&lt;p&gt;#0    : 23147 1     9280  [ 1     1     0     1     0     1     1     0     0     1     0     1     1     2     ]&lt;br/&gt;
#1    : 1156  41    1025  [ 42    15    5     3     3     3     2     2     2     0     0     0     0     0     ]&lt;br/&gt;
#2    : 782   46    8194  [ 38    28    10    5     4     3     1     1     1     0     0     0     0     0     ]&lt;br/&gt;
#3    : 624   7     1025  [ 10    9     5     4     2     2     1     1     1     0     0     0     0     0     ]&lt;br/&gt;
#4    : 1065  6     12802 [ 3     5     3     2     2     1     1     1     1     1     0     0     0     0     ]&lt;br/&gt;
#5    : 1023  1     1025  [ 1     1     1     1     1     1     1     1     1     1     0     0     0     0     ]&lt;br/&gt;
#6    : 0     0     32768 [ 0     0     0     0     0     0     0     0     0     0     0     0     0     0     ]&lt;br/&gt;
#7    : 1023  1     1025  [ 1     1     1     1     1     1     1     1     1     1     0     0     0     0     ]&lt;br/&gt;
#8    : 1022  1     19458 [ 0     1     1     1     1     1     1     1     1     1     0     0     0     0     ]&lt;br/&gt;
#9    : 1784  4     1025  [ 2     3     2     3     3     3     1     2     1     2     0     0     0     0     ]&lt;/p&gt;</description>
                <environment></environment>
        <key id="19092">LUDOC-148</key>
            <summary>Please document mb_groups buddy cache proc output</summary>
                <type id="3" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11318&amp;avatarType=issuetype">Task</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="linda">Linda Bebernes</assignee>
                                    <reporter username="cfaber#1">Colin Faber [X]</reporter>
                        <labels>
                            <label>QContent</label>
                    </labels>
                <created>Tue, 21 May 2013 20:45:07 +0000</created>
                <updated>Tue, 24 Sep 2013 15:54:28 +0000</updated>
                            <resolved>Tue, 24 Sep 2013 15:54:28 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>4</watches>
                                                                            <comments>
                            <comment id="59011" author="cfaber" created="Tue, 21 May 2013 20:46:22 +0000"  >&lt;p&gt;On 2013-05-20, at 16:41, &quot;Colin Faber&quot; &amp;lt;cfaber@gmail.com&amp;gt; wrote:&lt;br/&gt;
&amp;gt; I&apos;m hoping you might be able to answer a question about /proc/fs/&lt;b&gt;/&lt;/b&gt;/mb_groups.  I looked over the code and that in it self wasn&apos;t obvious what the meaning of these columns is.&lt;br/&gt;
&amp;gt;&lt;br/&gt;
&amp;gt; So I&apos;m hoping that you might be able to answer this as the documentation is seriously lacking in this area =)&lt;/p&gt;

&lt;p&gt;Hi Colin,&lt;br/&gt;
This should probably be addressed as an LUDOC bug and patch, so that the documentation is permanently improved for everyone.&lt;/p&gt;

&lt;p&gt;&amp;gt; The output format looks like:&lt;br/&gt;
&amp;gt;&lt;br/&gt;
&amp;gt; #group: free  frags first [ 2^0   2^1   2^2   2^3   2^4   2^5   2^6   2^7   2^8   2^9   2^10  2^11  2^12  2^13  ]&lt;br/&gt;
&amp;gt; #0    : 4703  5     9376  [ 3     6     4     4     4     1     1     1     1     0     2     1     0     0     ]&lt;br/&gt;
&amp;gt; #1    : 1992  12    1144  [ 6     5     6     4     4     4     1     1     2     0     1     0     0     0     ]&lt;br/&gt;
&amp;gt; #2    : 2915  5     6688  [ 5     3     2     2     4     4     4     3     4     0     1     0     0     0     ]&lt;br/&gt;
&amp;gt; #3    : 2135  5     1025  [ 3     4     3     4     2     4     4     1     2     2     0     0     0     0     ]&lt;br/&gt;
&amp;gt;&lt;br/&gt;
&amp;gt; some of those entries are obvious however the others aren&apos;t, and whether they&apos;re showing a count (say for fragmentation) or percentage.&lt;/p&gt;

&lt;p&gt;My guess is that these stats are the dump of the mballoc buddy bitmap table showing for each group in the filesystem:&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;number of free blocks&lt;/li&gt;
	&lt;li&gt;number of chunks of free space&lt;/li&gt;
	&lt;li&gt;offset of first free block in group&lt;/li&gt;
	&lt;li&gt;count of free chunks of specified size (in 2^n blocks)&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Could you please file an LUDOC ticket in Jira with these comments, so they can go into the manual after 31.2.11, and hopefully they can be vetted by Alex (who wrote this code).&lt;/p&gt;

&lt;p&gt;Cheers, Andreas&lt;/p&gt;</comment>
                            <comment id="59981" author="jlevi" created="Tue, 4 Jun 2013 17:18:05 +0000"  >&lt;p&gt;Hi John!&lt;br/&gt;
Would you be able to complete this documentation?&lt;/p&gt;</comment>
                            <comment id="59984" author="cfaber" created="Tue, 4 Jun 2013 17:28:45 +0000"  >&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;Bzzz is probably the right person to comment here as he wrote the code.&lt;/p&gt;

&lt;p&gt;-cf&lt;/p&gt;</comment>
                            <comment id="67005" author="bzzz" created="Thu, 19 Sep 2013 14:01:17 +0000"  >&lt;p&gt;hm, I actually see slightly different format in the master branch:&lt;/p&gt;

&lt;ol&gt;
	&lt;li&gt;cat /proc/fs/ldiskfs/loop0/mb_groups&lt;br/&gt;
#group: free  free  frags first pa   [ 2^0   2^1   2^2   2^3   2^4   2^5   2^6   2^7   2^8   2^9   2^10  2^11  2^12  2^13  ]&lt;br/&gt;
#0    : 2936  2936  1     42    0    [ 0     0     0     1     1     1     1     2     0     1     2     0     0     0     ]&lt;/li&gt;
&lt;/ol&gt;


&lt;p&gt;where columns are:&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;#group number&lt;/li&gt;
	&lt;li&gt;available blocks in the group&lt;/li&gt;
	&lt;li&gt;blocks free on a disk&lt;/li&gt;
	&lt;li&gt;number of free fragments&lt;/li&gt;
	&lt;li&gt;the very first free block in the group&lt;/li&gt;
	&lt;li&gt;number of preallocated chunks (not blocks)&lt;/li&gt;
	&lt;li&gt;a series of available chunks of different sizes&lt;/li&gt;
&lt;/ul&gt;

</comment>
                            <comment id="67043" author="linda" created="Thu, 19 Sep 2013 18:17:03 +0000"  >&lt;p&gt;Alex - Thanks for the column definitions. Should mb_groups be documented as an option in the table in Section 31.2 &quot;Tuning Multi-Block Alocation (mballoc)? Or does it go somewhere else?&lt;br/&gt;
&lt;a href=&quot;http://build.whamcloud.com/job/lustre-manual/lastSuccessfulBuild/artifact/lustre_manual.xhtml#idp8394512&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://build.whamcloud.com/job/lustre-manual/lastSuccessfulBuild/artifact/lustre_manual.xhtml#idp8394512&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="67045" author="bzzz" created="Thu, 19 Sep 2013 18:42:51 +0000"  >&lt;p&gt;well, this isn&apos;t an option. this is stats available to the users/administrators/developers so they can see/analyze on-disk fragmentation. not to be used often, I guess.&lt;/p&gt;</comment>
                            <comment id="67256" author="linda" created="Mon, 23 Sep 2013 16:39:37 +0000"  >&lt;p&gt;Change pushed to gerrit for review &lt;a href=&quot;http://review.whamcloud.com/#/c/7728/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/#/c/7728/&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="67378" author="linda" created="Tue, 24 Sep 2013 15:54:22 +0000"  >&lt;p&gt;Approved and merged. Marking this resolved.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                    <customfield id="customfield_10003" key="com.atlassian.jira.plugin.system.customfieldtypes:float">
                        <customfieldname>Business Value</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>20.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                <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|hzvriv:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10090" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>8350</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                </customfields>
    </item>
</channel>
</rss>