Skip to content

DOCS-4674: Tweak data directory size FAQ #2161

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

i80and
Copy link
Contributor

@i80and i80and commented Feb 11, 2015

No description provided.

~~~~~~~~~~~~~~~~~~~~~~~

MongoDB preallocates its data files, in part to avoid file system fragmentation.
The first file that :program:`mongod` creates, ``<databasename>.1``, will be 64
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is it <databasename>.1 or <databasename>.0

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, it's absolutely <databasename>.0. Good catch, thanks!

MongoDB preallocates its data files, in part to avoid file system fragmentation.
The first file that :program:`mongod` creates, ``<databasename>.0``, will be 64
megabytes. The second, ``<databasename>.1``, will be 128 megabytes; and so on,
up to 2 gigabytes. The :setting:`storage.mmapv1.smallFiles` option will reduce the
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

almost. But the second sentence makes it seems like we stop pre-allocating data files once it allocates the first 2 gigabyte data file.

@mpaik
Copy link
Contributor

mpaik commented Mar 17, 2015

@kay-kim is this ready for merge?

@kay-kim
Copy link
Contributor

kay-kim commented Mar 17, 2015

yup

@mpaik
Copy link
Contributor

mpaik commented Mar 17, 2015

Merged

@mpaik mpaik closed this Mar 17, 2015
mongo-cr-bot pushed a commit that referenced this pull request Nov 18, 2022
* update snooty.toml

* (DOCS-15741): Finalize 4.4.18 changelog (#2160)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants