@@ -169,7 +169,7 @@ Must my working set size fit RAM?
169
169
---------------------------------
170
170
171
171
Your working set should stay in memory to achieve good performance.
172
- Otherwise lots of random disk IO's will occur, and unless you are using
172
+ Otherwise many random disk IO's will occur, and unless you are using
173
173
SSD, this can be quite slow.
174
174
175
175
One area to watch specifically in managing the size of your working set
@@ -191,14 +191,14 @@ How can I measure working set size?
191
191
Measuring working set size can be difficult; even if it is much smaller
192
192
than total RAM. If the database is much larger than RAM in total, all
193
193
memory will be indicated as in use for the cache. Thus you need a
194
- different way to estimate our working set size.
194
+ different way to estimate the working set size.
195
195
196
196
One technique is to use the
197
197
`eatmem.cpp <https://github.com/mongodb/mongo-snippets/blob/master/cpp/eatmem.cpp>`_.
198
198
utility, which reserves a certain amount of system memory for itself.
199
199
You can run the utility with a certain amount specified and see if the
200
200
server continues to perform well. If not, the working set is larger than
201
- the total RAM minus the eaten RAM. The test will eject some data from
201
+ the total RAM minus the consumed RAM. The test will eject some data from
202
202
the file system cache, which might take time to page back in after the
203
203
utility is terminated.
204
204
@@ -227,13 +227,14 @@ limited to:
227
227
228
228
- The impact of :doc:`journaling </administration/journaling>`
229
229
230
- - Using page faults and other MMS gauges to detect when you need more RAM
230
+ - The number or rate of page faults and other MMS gauges to detect when
231
+ you need more RAM
231
232
232
233
MongoDB makes no choices regarding what data is loaded into memory from
233
234
disk. It simply :ref:`memory maps <faq-storage-memory-mapped-files>` all
234
235
its data files and relies on the operating system to cache data. The OS
235
236
typically evicts the least-recently-used data from RAM when it runs low
236
- on memory. For example if indexes are accessed more frequently then
237
+ on memory. For example if indexes are accessed more frequently than
237
238
documents then indexes will more likely stay in RAM, but it depends on
238
239
your particular usage.
239
240
@@ -246,10 +247,10 @@ your documents. To calculate working set size, see:
246
247
247
248
- :ref:`faq-fundamentals-working-set-size`
248
249
249
- If page faults are low (for example, below than 100 / sec), then your
250
+ If page faults are low (for example, below than 100 / sec), your
250
251
working set fits in RAM. If fault rates rise higher than that, you risk
251
252
performance degradation. This is less critical with SSD drives than
252
- spinning disks.
253
+ with spinning disks.
253
254
254
255
How do I read memory statistics in the UNIX ``top`` command
255
256
-----------------------------------------------------------
0 commit comments