Skip to content

DOCS-380 added in note about smallfiles affecting journal files too. #159

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

Merged
merged 1 commit into from
Aug 30, 2012
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions source/reference/configuration-options.txt
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,9 @@ Settings
Set to false to prevent the overhead of journaling in situations
where durability is not required.

You can use :setting:`smallfiles` to reduce the size of the data
and journal files.

.. setting:: journalCommitInterval

*Default:* 100
Expand Down Expand Up @@ -501,9 +504,12 @@ Settings
*Default:* false

Set to ``true`` to modify MongoDB to use a smaller default data
file size. Specifically, :setting:`smallfiles` quarters the initial
file size for data files and limits the maximum file size to 512
megabytes. Use :setting:`smallfiles` if you have a large number of
file size. Specifically, :setting:`smallfiles` reduces the initial
size for data files and limits them to 512
megabytes. Smallfiles will also reduce :term:`journal` files from
one gigabyte to 128 megabyte each.

Use :setting:`smallfiles` if you have a large number of
databases that each holds a small quantity of data.

.. setting:: syncdelay
Expand Down
13 changes: 9 additions & 4 deletions source/reference/glossary.txt
Original file line number Diff line number Diff line change
Expand Up @@ -300,10 +300,15 @@ Glossary
A sequential, binary transaction used to bring the database into
a consistent state in the event of a hard shutdown. MongoDB
enables journaling by default for 64-bit builds of MongoDB
version 2.0 and later. When enabled, MongoDB writes data first
to the journal and after to the core data files. MongoDB commits
to the Journal every 100ms, but this is configurable using the
:setting:`journalCommitInterval` runtime option.
version 2.0 and newer. Journal files are pre-allocated and will
exist as three 1GB file in the data directory. To make journal
files smaller, use :setting:`smallfiles`.

When enabled,
MongoDB writes data first to the journal and after to the core
data files. MongoDB commits to the journal every 100ms and this
is configurable using the :setting:`journalCommitInterval`
runtime option.

.. seealso:: The :wiki:`Journaling` wiki page.

Expand Down