You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The :func:`db.stats()` function in the :program:`mongo` shell, will
68
-
output the current state of the "active" database. The
77
+
The :func:`db.stats()` method in the :program:`mongo` shell,
78
+
returns the current state of the "active" database. The
69
79
:doc:`/reference/database-statistics` document outlines the meaning of
70
-
the fields output by :func:`db.stats()`.
80
+
the fields in the :func:`db.stats()` output.
71
81
72
82
What is the working set?
73
83
------------------------
@@ -77,12 +87,16 @@ uses in the course of normal operation. Often this is a subset of the
77
87
total data size, but the specific size of the working set depends on
78
88
actual moment-to-moment use of the database.
79
89
80
-
If you run a query that requires MongoDB to scan every document in a collection, the working set will expand to include every document. Depending on physical memory size, this may cause working set documents in other collections to be ejected from physical memory. The next time such documents are accessed, a hard page fault may be incurred.
90
+
If you run a query that requires MongoDB to scan every document in a
91
+
collection, the working set will expand to include every
92
+
document. Depending on physical memory size, this may cause documents
93
+
in the working set to "page out," or removed from physical memory by
94
+
the operating system. The next time MongoDB needs to access these
95
+
documents, MongoDB may incur a hard page fault.
81
96
82
97
If you run a query that requires MongoDB to scan every
83
-
:term:`document` in a collection, the working set includes every active
84
-
document in memory.
98
+
:term:`document` in a collection, the working set includes every
99
+
active document in memory.
85
100
86
101
For best performance, the majority of your *active* set should fit in
0 commit comments