<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 02:56: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>MongoDB Jira</title>
    <link>https://jira.mongodb.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.7.1</version>
        <build-number>970001</build-number>
        <build-date>13-04-2023</build-date>
    </build-info>


<item>
            <title>[SERVER-1123] better stats reporting for sizes</title>
                <link>https://jira.mongodb.org/browse/SERVER-1123</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;A couple requests and a bug I think..there appears to be a missmatch of sizes from intra mongo to OS level:&lt;/p&gt;

&lt;p&gt;1) I think it would be nice to have a breakdown of overall sizes for a database.  So db.stats() is global and db.test.stats() is just for the test db.&lt;br/&gt;
2) It would be great if we could see a breakdown of all collections and sizes.  For instance:&lt;/p&gt;

&lt;p&gt;db.test.collectionstats()&lt;/p&gt;

&lt;p&gt;{&lt;br/&gt;
   foo: &lt;/p&gt;
{ objects: 9999, dataSize 88585, storageSize: 85858585, ....}
&lt;p&gt;   mybigcollection: &lt;/p&gt;
{ objects: 9999, dataSize 88585, storageSize: 85858585, ....}
&lt;p&gt;   baz: &lt;/p&gt;
{ objects: 9999, dataSize 88585, storageSize: 85858585, ....}
&lt;p&gt;}&lt;/p&gt;

&lt;p&gt;There appears to be a mis-match of sizes.  I think it would be nice to call out sizes more specifically.  For instance:&lt;/p&gt;

&lt;p&gt;dataSize: size of extents, actual data used on disk.&lt;br/&gt;
indexSize: size of indexes, actual index size on disk&lt;br/&gt;
storageSize: size of indexes + data size on disk&lt;br/&gt;
totalStorage: size of datafiles on disk.  totalStorage - storageSize = freespaceSize&lt;br/&gt;
freespaceSize: amount of freespace allocated in the database&lt;br/&gt;
oplogSize: total size of oplog&lt;/p&gt;

&lt;p&gt;root@al01&amp;gt;cd /home/kgorman/mongodata/test/&lt;br/&gt;
root@al01&amp;gt;mongo&lt;br/&gt;
MongoDB shell version: 1.5.1&lt;br/&gt;
url: test&lt;br/&gt;
connecting to: test&lt;br/&gt;
type &quot;help&quot; for help&lt;br/&gt;
&amp;gt; db.stats()&lt;br/&gt;
{&lt;br/&gt;
	&quot;collections&quot; : 3,&lt;br/&gt;
	&quot;objects&quot; : 8284667,&lt;br/&gt;
	&quot;dataSize&quot; : 2081753204,&lt;br/&gt;
	&quot;storageSize&quot; : 2235783936,&lt;br/&gt;
	&quot;numExtents&quot; : 26,&lt;br/&gt;
	&quot;indexes&quot; : 3,&lt;br/&gt;
	&quot;indexSize&quot; : 1304103744,&lt;br/&gt;
	&quot;ok&quot; : 1&lt;br/&gt;
}&lt;br/&gt;
&amp;gt; &lt;br/&gt;
root@al01&amp;gt;ls -al /home/kgorman/mongodata/test/&lt;br/&gt;
total 4148212&lt;br/&gt;
drwxr-xr-x 2 root    root          4096 May 14 14:07 .&lt;br/&gt;
drwxr-xr-x 6 kgorman kgorman       4096 May 14 14:03 ..&lt;br/&gt;
&lt;del&gt;rw&lt;/del&gt;------ 1 root    root      67108864 May 14 14:03 test.0&lt;br/&gt;
&lt;del&gt;rw&lt;/del&gt;------ 1 root    root     134217728 May 14 14:03 test.1&lt;br/&gt;
&lt;del&gt;rw&lt;/del&gt;------ 1 root    root     268435456 May 14 14:03 test.2&lt;br/&gt;
&lt;del&gt;rw&lt;/del&gt;------ 1 root    root     536870912 May 14 14:04 test.3&lt;br/&gt;
&lt;del&gt;rw&lt;/del&gt;------ 1 root    root    1073741824 May 14 14:05 test.4&lt;br/&gt;
&lt;del&gt;rw&lt;/del&gt;------ 1 root    root    2146435072 May 14 14:07 test.5&lt;br/&gt;
&lt;del&gt;rw&lt;/del&gt;------ 1 root    root      16777216 May 14 14:03 test.ns&lt;/p&gt;

&lt;p&gt;&amp;gt; db.stats()&lt;br/&gt;
{&lt;br/&gt;
	&quot;collections&quot; : 3,&lt;br/&gt;
	&quot;objects&quot; : 8284667,&lt;br/&gt;
	&quot;dataSize&quot; : 2081753204,&lt;br/&gt;
	&quot;storageSize&quot; : 2235783936,&lt;br/&gt;
	&quot;numExtents&quot; : 26,&lt;br/&gt;
	&quot;indexes&quot; : 3,&lt;br/&gt;
	&quot;indexSize&quot; : 1304103744,&lt;br/&gt;
	&quot;ok&quot; : 1&lt;br/&gt;
}&lt;br/&gt;
&amp;gt; bye&lt;br/&gt;
root@al01&amp;gt;bc&lt;br/&gt;
bc 1.06&lt;br/&gt;
Copyright 1991-1994, 1997, 1998, 2000 Free Software Foundation, Inc.&lt;br/&gt;
This is free software with ABSOLUTELY NO WARRANTY.&lt;br/&gt;
For details type `warranty&apos;. &lt;br/&gt;
1304103744+2081753204&lt;br/&gt;
3385856948&lt;/p&gt;
</description>
                <environment></environment>
        <key id="11967">SERVER-1123</key>
            <summary>better stats reporting for sizes</summary>
                <type id="2" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14711&amp;avatarType=issuetype">New Feature</type>
                                            <priority id="3" iconUrl="https://jira.mongodb.org/images/icons/priorities/major.svg">Major - P3</priority>
                        <status id="6" iconUrl="https://jira.mongodb.org/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="9">Done</resolution>
                                        <assignee username="mathias@mongodb.com">Mathias Stearn</assignee>
                                    <reporter username="kgorman">Kenny Gorman</reporter>
                        <labels>
                    </labels>
                <created>Fri, 14 May 2010 17:28:19 +0000</created>
                <updated>Tue, 12 Jul 2016 00:30:14 +0000</updated>
                            <resolved>Thu, 3 Jun 2010 19:47:42 +0000</resolved>
                                                    <fixVersion>1.5.3</fixVersion>
                                                        <votes>0</votes>
                                    <watches>0</watches>
                                                                                                                <comments>
                            <comment id="14586" author="auto" created="Thu, 3 Jun 2010 19:47:34 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;login&apos;: &apos;RedBeard0531&apos;, &apos;name&apos;: &apos;Mathias Stearn&apos;, &apos;email&apos;: &apos;mathias@10gen.com&apos;}
&lt;p&gt;Message: Add fileSize to db.stats() &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-1123&quot; title=&quot;better stats reporting for sizes&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-1123&quot;&gt;&lt;del&gt;SERVER-1123&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;http://github.com/mongodb/mongo/commit/2f13545f3728b89cfe773cc0935080c67ca711b4&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://github.com/mongodb/mongo/commit/2f13545f3728b89cfe773cc0935080c67ca711b4&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="14494" author="kgorman" created="Fri, 28 May 2010 14:14:12 +0000"  >&lt;p&gt;Yes, if fileSize == sum(datafile space on disk)&lt;/p&gt;

&lt;p&gt;thx!&lt;/p&gt;</comment>
                            <comment id="14420" author="redbeard0531" created="Tue, 25 May 2010 00:33:28 +0000"  >&lt;p&gt;Kenny, just to confirm the outcome of our conversation, the only thing that needs to be added is fileSize?&lt;/p&gt;</comment>
                            <comment id="14419" author="eliot" created="Mon, 24 May 2010 23:56:07 +0000"  >&lt;p&gt;I think you and kenny already talked about this.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>4.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Mon, 24 May 2010 23:56:07 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        13 years, 37 weeks, 6 days ago
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18254" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Dependencies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[]]></customfieldvalue>


                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10057" key="com.atlassian.jira.toolkit:lastusercommented">
                        <customfieldname>Last comment by Customer</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>true</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10056" key="com.atlassian.jira.toolkit:lastupdaterorcommenter">
                        <customfieldname>Last commenter</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>ramon.fernandez@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            13 years, 37 weeks, 6 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10000" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Old_Backport</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10000"><![CDATA[No]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>auto</customfieldvalue>
            <customfieldvalue>eliot</customfieldvalue>
            <customfieldvalue>kgorman</customfieldvalue>
            <customfieldvalue>mathias@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrpmfj:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hripb3:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>22753</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_23361" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Requested By</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10053" key="com.atlassian.jira.ext.charting:timeinstatus">
                        <customfieldname>Time In Status</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_22870" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Triagers</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|ht0iz3:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                    </customfields>
    </item>
</channel>
</rss>