Skip to content

Commit 138e7b5

Browse files
author
Andrew Leung
committed
added in note about smallfiles affecting journal files too.
1 parent df0cd11 commit 138e7b5

File tree

2 files changed

+18
-7
lines changed

2 files changed

+18
-7
lines changed

source/reference/configuration-options.txt

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,9 @@ Settings
318318
Set to false to prevent the overhead of journaling in situations
319319
where durability is not required.
320320

321+
You can use :setting:`smallfiles` to reduce the size of the data
322+
and journal files.
323+
321324
.. setting:: journalCommitInterval
322325

323326
*Default:* 100
@@ -501,9 +504,12 @@ Settings
501504
*Default:* false
502505

503506
Set to ``true`` to modify MongoDB to use a smaller default data
504-
file size. Specifically, :setting:`smallfiles` quarters the initial
505-
file size for data files and limits the maximum file size to 512
506-
megabytes. Use :setting:`smallfiles` if you have a large number of
507+
file size. Specifically, :setting:`smallfiles` reduces the initial
508+
size for data files and limits them to 512
509+
megabytes. Smallfiles will also reduce :term:`journal` files from
510+
one gigabyte to 128 megabyte each.
511+
512+
Use :setting:`smallfiles` if you have a large number of
507513
databases that each holds a small quantity of data.
508514

509515
.. setting:: syncdelay

source/reference/glossary.txt

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -300,10 +300,15 @@ Glossary
300300
A sequential, binary transaction used to bring the database into
301301
a consistent state in the event of a hard shutdown. MongoDB
302302
enables journaling by default for 64-bit builds of MongoDB
303-
version 2.0 and later. When enabled, MongoDB writes data first
304-
to the journal and after to the core data files. MongoDB commits
305-
to the Journal every 100ms, but this is configurable using the
306-
:setting:`journalCommitInterval` runtime option.
303+
version 2.0 and newer. Journal files are pre-allocated and will
304+
exist as three 1GB file in the data directory. To make journal
305+
files smaller, use :setting:`smallfiles`.
306+
307+
When enabled,
308+
MongoDB writes data first to the journal and after to the core
309+
data files. MongoDB commits to the journal every 100ms and this
310+
is configurable using the :setting:`journalCommitInterval`
311+
runtime option.
307312

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

0 commit comments

Comments
 (0)