Skip to content

Commit 529f32c

Browse files
author
Bob Grabar
committed
DOCS-491 review edits
1 parent e54bc21 commit 529f32c

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

source/faq/fundamentals.txt

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ Must my working set size fit RAM?
169169
---------------------------------
170170

171171
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
173173
SSD, this can be quite slow.
174174

175175
One area to watch specifically in managing the size of your working set
@@ -191,14 +191,14 @@ How can I measure working set size?
191191
Measuring working set size can be difficult; even if it is much smaller
192192
than total RAM. If the database is much larger than RAM in total, all
193193
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.
195195

196196
One technique is to use the
197197
`eatmem.cpp <https://github.com/mongodb/mongo-snippets/blob/master/cpp/eatmem.cpp>`_.
198198
utility, which reserves a certain amount of system memory for itself.
199199
You can run the utility with a certain amount specified and see if the
200200
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
202202
the file system cache, which might take time to page back in after the
203203
utility is terminated.
204204

@@ -227,13 +227,14 @@ limited to:
227227

228228
- The impact of :doc:`journaling </administration/journaling>`
229229

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
231232

232233
MongoDB makes no choices regarding what data is loaded into memory from
233234
disk. It simply :ref:`memory maps <faq-storage-memory-mapped-files>` all
234235
its data files and relies on the operating system to cache data. The OS
235236
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
237238
documents then indexes will more likely stay in RAM, but it depends on
238239
your particular usage.
239240

@@ -246,10 +247,10 @@ your documents. To calculate working set size, see:
246247

247248
- :ref:`faq-fundamentals-working-set-size`
248249

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
250251
working set fits in RAM. If fault rates rise higher than that, you risk
251252
performance degradation. This is less critical with SSD drives than
252-
spinning disks.
253+
with spinning disks.
253254

254255
How do I read memory statistics in the UNIX ``top`` command
255256
-----------------------------------------------------------

0 commit comments

Comments
 (0)