105
105
Why are the files in my data directory larger than the data in my database?
106
106
---------------------------------------------------------------------------
107
107
108
- The data files in your data directory, which is the `` /data/db` `
108
+ The data files in your data directory, which is the :file:` /data/db`
109
109
directory in default configurations, might be larger than the data set
110
- inserted into the database. This is caused by pre-allocated files and by
110
+ inserted into the database. This is caused by preallocated files and by
111
111
empty blocks, as explained here.
112
112
113
113
- Preallocated data files
@@ -119,20 +119,20 @@ empty blocks, as explained here.
119
119
megabytes, the next 128 megabytes, and so on, up to 2 gigabytes, at
120
120
which point all subsequent files are 2 gigabytes. The data files,
121
121
therefore, contain files for which space is allocated but no data yet
122
- exists. A file might preallocated 1 gigabyte but be 90% empty. For
122
+ exists. A file might preallocate 1 gigabyte but be 90% empty. For
123
123
databases of hundreds of gigabytes, unallocated space is small
124
124
compared to the database and is insignificant.
125
125
126
126
On UNIX, :program:`mongod` preallocates an additional data file
127
- prefilled with zero bytes. Pre-filling in the background prevents
127
+ filled with zero bytes. Pre-filling in the background prevents
128
128
significant delays when a new database file is next allocated.
129
129
130
- You can disable preallocation with the :option:`--nopreallo <mongod
131
- --repair >` command line option. Do not use this option in production
130
+ You can disable preallocation with the :option:`--noprealloc <mongod
131
+ --noprealloc >` command line option. Do not use this option in production
132
132
environments. This option is intended for tests with small data sets
133
133
where you drop the database after each test.
134
134
135
- On Linux systems you can use ``hdparam `` to get an idea of how costly
135
+ On Linux systems you can use ``hdparm `` to get an idea of how costly
136
136
allocation might be:
137
137
138
138
.. code-block:: sh
@@ -192,7 +192,7 @@ Alternately, you can view specific measures of size using any of these methods:
192
192
Can I check the size of indexes?
193
193
--------------------------------
194
194
195
- To view the size of the data allocated for an index, :method:`validate()
195
+ To view the size of the data allocated for an index, issue the :method:`validate()
196
196
<db.collection.validate()>` method using the index namespace.
197
197
198
198
.. example:: You look up an index namespace in the ``system.namespaces``
@@ -234,7 +234,7 @@ something like this in the log:
234
234
235
235
The server remains in this state forever, blocking all writes including
236
236
deletes. However, reads still work. To delete some data and compact,
237
- using the :dbcommand:`compact` command, you must first restart the server
237
+ using the :dbcommand:`compact` command, you must restart the server
238
238
first.
239
239
240
240
If your server runs out of disk space for journal files, the server
0 commit comments