Skip to content

Commit 17e6af2

Browse files
author
Bob Grabar
committed
DOCS-693 review edits
1 parent af0e16c commit 17e6af2

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

source/faq/storage.txt

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,9 @@ RAM.
105105
Why are the files in my data directory larger than the data in my database?
106106
---------------------------------------------------------------------------
107107

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`
109109
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
111111
empty blocks, as explained here.
112112

113113
- Preallocated data files
@@ -119,20 +119,20 @@ empty blocks, as explained here.
119119
megabytes, the next 128 megabytes, and so on, up to 2 gigabytes, at
120120
which point all subsequent files are 2 gigabytes. The data files,
121121
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
123123
databases of hundreds of gigabytes, unallocated space is small
124124
compared to the database and is insignificant.
125125

126126
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
128128
significant delays when a new database file is next allocated.
129129

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
132132
environments. This option is intended for tests with small data sets
133133
where you drop the database after each test.
134134

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
136136
allocation might be:
137137

138138
.. code-block:: sh
@@ -192,7 +192,7 @@ Alternately, you can view specific measures of size using any of these methods:
192192
Can I check the size of indexes?
193193
--------------------------------
194194

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()
196196
<db.collection.validate()>` method using the index namespace.
197197

198198
.. example:: You look up an index namespace in the ``system.namespaces``
@@ -234,7 +234,7 @@ something like this in the log:
234234

235235
The server remains in this state forever, blocking all writes including
236236
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
238238
first.
239239

240240
If your server runs out of disk space for journal files, the server

0 commit comments

Comments
 (0)