<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 02:57:36 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-1636] Allow configurable min datafile size</title>
                <link>https://jira.mongodb.org/browse/SERVER-1636</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Datafiles are preallocated on *NIX platforms for optimal performance. However, in some odd use cases where it is desirable to have a lot of databases that are smaller in size interspersed with a few larger DBs, this causes the disk to grow excessively. Given some of the DBs will be split out into multiple 2GB datafiles while the majority will be in 64MB (with 128MB sitting around empty, for perhaps a few kB of data in most), this is a lot of wasted disk space. --noprealloc will impair performance of the larger DBs. Sharding is an option but a waste of hardware.&lt;/p&gt;

&lt;p&gt;It would be really nice to be able to pick a smaller starting datafile size. I would think it to be sane to lock it down to a few potential options (starting at 1MB would be great, increasing to 2, 4, 8, ... MB). That would create a lot more data files but modern filesystems are OK with that.&lt;/p&gt;

&lt;p&gt;I consider this ticket to be a &quot;metoo&quot; of one of the latter comments in: &lt;a href=&quot;http://jira.mongodb.org/browse/SERVER-1181&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;http://jira.mongodb.org/browse/SERVER-1181&lt;/a&gt;&lt;/p&gt;
</description>
                <environment>*NIX</environment>
        <key id="12800">SERVER-1636</key>
            <summary>Allow configurable min datafile size</summary>
                <type id="2" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14711&amp;avatarType=issuetype">New Feature</type>
                                            <priority id="4" iconUrl="https://jira.mongodb.org/images/icons/priorities/minor.svg">Minor - P4</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="2">Won&apos;t Fix</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="burley">David Burley</reporter>
                        <labels>
                    </labels>
                <created>Mon, 16 Aug 2010 13:07:47 +0000</created>
                <updated>Thu, 25 Jun 2015 18:41:54 +0000</updated>
                            <resolved>Wed, 24 Jun 2015 17:02:38 +0000</resolved>
                                    <version>1.6.0</version>
                                                    <component>Performance</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="949451" author="ian@10gen.com" created="Wed, 24 Jun 2015 17:02:38 +0000"  >&lt;p&gt;Hi David, thanks a lot for filing this feature request and apologies for the time since it was last updated.&lt;/p&gt;

&lt;p&gt;We&apos;re closing this as &quot;Won&apos;t Fix&quot; given the previous conversation about the proliferation of options and this being a fairly edge-case request.&lt;/p&gt;</comment>
                            <comment id="40845" author="burley" created="Wed, 6 Jul 2011 14:16:02 +0000"  >&lt;p&gt;We have since modified our usage pattern, given there are no &apos;metoo&apos; comments &amp;#8211; I&apos;d just close this one out since we were definitely a special edge-case.&lt;/p&gt;</comment>
                            <comment id="16909" author="burley" created="Mon, 16 Aug 2010 15:15:11 +0000"  >&lt;p&gt;Allow --smallfiles to take a value for the min datafile size, and get rid of it making the max datafile smaller than 2GBs &amp;#8211; at least that&apos;s my gut reaction to not adding another option and extending an existing one to cover this and other cases. Unless there is a reason why it reduces the max size &amp;#8211; then I&apos;ll think about this some more and make another proposal.&lt;/p&gt;</comment>
                            <comment id="16908" author="eliot" created="Mon, 16 Aug 2010 15:09:12 +0000"  >&lt;p&gt;Our big issue is not writing the code - but proliferation of options.&lt;/p&gt;

&lt;p&gt;So rather than working on code - the best thing to do would be propose some changes to the options that keep the total # sane while being flexible enough.&lt;/p&gt;</comment>
                            <comment id="16907" author="burley" created="Mon, 16 Aug 2010 14:34:30 +0000"  >&lt;p&gt;I have looked at smallfiles &amp;#8211; but its still not small enough for the long run. Also, if I am reading the code right &amp;#8211; it looks like if you have smallfiles enabled, the max data file size is reduced &amp;#8211; and that&apos;s not a good thing since I do want bigger DBs to be put into progressively bigger data files (I assume that&apos;s more efficient).&lt;/p&gt;

&lt;p&gt;I have poked at the code a bit to see what needs changed to add such a feature. I suspect you know better than I what would need to be touched. If you could provide some pointers to make sure I don&apos;t overlook something (I am not very familiar with the internals) I could make a first attempt at this later on this week. It looks like I&apos;d need to change something related to:&lt;/p&gt;

&lt;p&gt;extents (e.g. like): &lt;a href=&quot;http://github.com/mongodb/mongo/commit/a1f8c3698397b9fa395578e901250eea7b312060&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://github.com/mongodb/mongo/commit/a1f8c3698397b9fa395578e901250eea7b312060&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;And then tweak the MongoDataFile::defaultSize function&lt;/p&gt;

&lt;p&gt;And add in the command line option&lt;/p&gt;


&lt;p&gt;Am I missing anything &amp;#8211; and if I wrote it &amp;#8211; any change it would get uptake? I know that there is a max document size of 4MB &amp;#8211; is there any risk of having the min data size &amp;lt;= 4MB? &lt;/p&gt;</comment>
                            <comment id="16905" author="eliot" created="Mon, 16 Aug 2010 13:53:41 +0000"  >&lt;p&gt;Have you looked at --smallfiles?&lt;br/&gt;
Not sure we want to go further than that.&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>6.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Mon, 16 Aug 2010 13:53:41 +0000</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            8 years, 34 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>burley</customfieldvalue>
            <customfieldvalue>eliot</customfieldvalue>
            <customfieldvalue>ian@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrph3j:</customfieldvalue>

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

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

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