<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 02:56:18 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-1181] Disk pre-allocation over estimates unreasonably - something is not kosher here</title>
                <link>https://jira.mongodb.org/browse/SERVER-1181</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Mongo is running with --nssize=2 --smallfiles&lt;/p&gt;

&lt;p&gt;I create a new database with 7 documents in total stored within 3 collections - total data size is 1.6kb (KILObytes)&lt;/p&gt;

&lt;p&gt;I look in  /data/db and the database has already spawned a 32mb dbname.1 file - how could it think that it already filled the 16mb dbname.0 with so little data??&lt;/p&gt;

&lt;p&gt;By this system storing 1.6kb of data takes 50mb of disk space (including ns file)!&lt;/p&gt;</description>
                <environment></environment>
        <key id="12056">SERVER-1181</key>
            <summary>Disk pre-allocation over estimates unreasonably - something is not kosher here</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="eliot">Eliot Horowitz</assignee>
                                    <reporter username="phpmoadmin">phpMoAdmin</reporter>
                        <labels>
                    </labels>
                <created>Wed, 2 Jun 2010 02:49:37 +0000</created>
                <updated>Wed, 2 Jun 2010 12:01:53 +0000</updated>
                            <resolved>Wed, 2 Jun 2010 07:49:09 +0000</resolved>
                                    <version>1.4.1</version>
                                                                        <votes>0</votes>
                                    <watches>0</watches>
                                                                                                                <comments>
                            <comment id="14536" author="eliot" created="Wed, 2 Jun 2010 12:01:53 +0000"  >&lt;p&gt;Not sure we&apos;ll make that configurable.&lt;/p&gt;

&lt;p&gt;For smallest footprint, you should do --smallfiles --noprealloc&lt;/p&gt;</comment>
                            <comment id="14535" author="phpmoadmin" created="Wed, 2 Jun 2010 11:59:27 +0000"  >&lt;p&gt;Okay, I was not aware that their always is an empty file, so Mongo does indeed work as designed but perhaps the --smallfiles could have an option to define the starting file size?&lt;/p&gt;

&lt;p&gt;With the current setup a databases with a minimal amount of data will start at 50mb in size. If the initial file size could be reduced to 2mb and it preallocates an empty 4mb file then all the capacity problems would be resolved.&lt;/p&gt;</comment>
                            <comment id="14534" author="eliot" created="Wed, 2 Jun 2010 07:49:09 +0000"  >&lt;p&gt;preallocation is supposed to always have a FULLY empty file ready.&lt;br/&gt;
so once you use a single byte of the last file, a new file is created.&lt;br/&gt;
if you don&apos;t want that space taken up - then you should use --noprealloc&lt;/p&gt;</comment>
                            <comment id="14533" author="phpmoadmin" created="Wed, 2 Jun 2010 03:25:45 +0000"  >&lt;p&gt;I don&apos;t know that every DB will be under 16mb as there are some that use GridFS (noprealloc is for all DBs right?)&lt;/p&gt;

&lt;p&gt;Regardless, why would it think it needs to pre-allocate another datafile when 15,998,400 bytes of 16mb are still free?? Perhaps something is miscalculating within Mongo internals?&lt;/p&gt;</comment>
                            <comment id="14532" author="mike" created="Wed, 2 Jun 2010 03:05:07 +0000"  >&lt;p&gt;well if you know your databases will never be getting larger than 16mb then it&apos;s fine to not prealloc. otherwise, it might cause performance problems which is why we recommend that. you sort of have to decide for yourself how you want to make the tradeoff of extra disk space vs consistent performance.&lt;/p&gt;</comment>
                            <comment id="14531" author="phpmoadmin" created="Wed, 2 Jun 2010 03:00:35 +0000"  >&lt;p&gt;I saw the --noprealloc option, but your docs say not to do that on a production server and this is a production server for a cloud-based service powering a few hundred sites (each with its own database, thus cumulatively the pre-allocation is becoming a problem)&lt;/p&gt;</comment>
                            <comment id="14530" author="mike" created="Wed, 2 Jun 2010 02:53:13 +0000"  >&lt;p&gt;that is probably preallocation. you could try turning that off if you really need to conserve space: --noprealloc&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>7.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Wed, 2 Jun 2010 02:53:13 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        13 years, 38 weeks 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>ian@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            13 years, 38 weeks 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>eliot</customfieldvalue>
            <customfieldvalue>mike</customfieldvalue>
            <customfieldvalue>phpmoadmin</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrplxr:</customfieldvalue>

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

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

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