-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Conversation
~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
MongoDB preallocates its data files, in part to avoid file system fragmentation. | ||
The first file that :program:`mongod` creates, ``<databasename>.1``, will be 64 |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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.
@kay-kim is this ready for merge? |
yup |
Merged |
* update snooty.toml * (DOCS-15741): Finalize 4.4.18 changelog (#2160)
(cherry picked from commit b2687b7)
No description provided.