<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 02:54: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>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-594] Unnecessary allocation of disk space</title>
                <link>https://jira.mongodb.org/browse/SERVER-594</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Running the attached script results in:&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;disk_usage.2 created in run #96 (~5 minutes runtime)&lt;/li&gt;
	&lt;li&gt;disk_usage.3 created in run #375 (~17 minutes runtime)&lt;/li&gt;
	&lt;li&gt;disk_usage.4 created in run #1009 (~44 minutes runtime)&lt;/li&gt;
	&lt;li&gt;disk_usage.5 created in run #2276 (~99 minutes runtime)&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;The script is inserting roughly 20MB worth of 5000* byte strings in each run.&lt;/p&gt;

&lt;p&gt;*actually 4990 to 5000 bytes, this appears to be significant as using fixed strings of 5000 bytes didn&apos;t cause this issue.&lt;/p&gt;

&lt;p&gt;The rename appears to be significant - when I took it out I couldn&apos;t re-create this issue.&lt;/p&gt;

&lt;p&gt;Attached the output of this script during my run as well as mongod.log.&lt;br/&gt;
Note that mongod.log times are in GMT however the output times are in AEST (GMT+11).  Sorry about that.&lt;/p&gt;</description>
                <environment>db version v1.3.1, pdfile version 4.5&lt;br/&gt;
sys info: Linux rosehip 2.6.24-26-xen #1 SMP Tue Dec 1 19:54:57 UTC 2009 x86_64 BOOST_LIB_VERSION=1_38</environment>
        <key id="11236">SERVER-594</key>
            <summary>Unnecessary allocation of disk space</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</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="aaron">Aaron Staple</assignee>
                                    <reporter username="goosmurf">Yun Huang Yong</reporter>
                        <labels>
                    </labels>
                <created>Tue, 2 Feb 2010 07:33:21 +0000</created>
                <updated>Tue, 12 Jul 2016 00:28:21 +0000</updated>
                            <resolved>Mon, 8 Feb 2010 22:08:50 +0000</resolved>
                                    <version>1.3.1</version>
                                    <fixVersion>1.3.2</fixVersion>
                                                        <votes>0</votes>
                                    <watches>0</watches>
                                                                                                                <comments>
                            <comment id="12206" author="auto" created="Mon, 8 Feb 2010 21:22:10 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;login&apos;: &apos;astaple&apos;, &apos;name&apos;: &apos;Aaron&apos;, &apos;email&apos;: &apos;aaron@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-594&quot; title=&quot;Unnecessary allocation of disk space&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-594&quot;&gt;&lt;del&gt;SERVER-594&lt;/del&gt;&lt;/a&gt; allocate first extent of new collection from free list&lt;br/&gt;
&lt;a href=&quot;http://github.com/mongodb/mongo/commit/a01100d8e55d14dc78b111d8516f644583b80de5&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://github.com/mongodb/mongo/commit/a01100d8e55d14dc78b111d8516f644583b80de5&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="12170" author="eliot" created="Sun, 7 Feb 2010 10:40:22 +0000"  >&lt;p&gt;decision was that we can change behavior and take first extent off free list.&lt;/p&gt;</comment>
                            <comment id="12096" author="aaron" created="Tue, 2 Feb 2010 19:29:40 +0000"  >&lt;p&gt;It looks like the first extent for a new collection is allocated from new space in the file, rather than from the free list:&lt;/p&gt;

&lt;p&gt;        NamespaceDetails *d = nsdetails(ns);&lt;br/&gt;
        if ( d == 0 ) &lt;/p&gt;
{
            addNewNamespaceToCatalog(ns);
            /* todo: shouldn&apos;t be in the namespace catalog until after the allocations here work.
               also if this is an addIndex, those checks should happen before this!
            */
            // This creates first file in the database.
            cc().database()-&amp;gt;newestFile()-&amp;gt;createExtent(ns, initialExtentSize(len));
            d = nsdetails(ns);
            if ( !god )
                ensureIdIndexForNewNs(ns);
        }


&lt;p&gt;I ran Yun&apos;s test with some extra debugging and saw that the new extents were being created in the above createExtent() call.&lt;/p&gt;

&lt;p&gt;Dwight, do we want to change this behavior?&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="10126" name="disk_usage.rb" size="2100" author="goosmurf" created="Tue, 2 Feb 2010 07:33:21 +0000"/>
                            <attachment id="10128" name="mongod.log.gz" size="183153" author="goosmurf" created="Tue, 2 Feb 2010 07:33:21 +0000"/>
                            <attachment id="10127" name="output-5k-no-int.txt.gz" size="58497" author="goosmurf" created="Tue, 2 Feb 2010 07:33:21 +0000"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>3.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Tue, 2 Feb 2010 19:29:40 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        14 years, 2 weeks, 2 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>
                            14 years, 2 weeks, 2 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>aaron</customfieldvalue>
            <customfieldvalue>auto</customfieldvalue>
            <customfieldvalue>eliot</customfieldvalue>
            <customfieldvalue>goosmurf</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrps87:</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>22402</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|ht0kbj:</customfieldvalue>

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