Skip to content

Commit 425b057

Browse files
Docsp 34942 4.4 backport (#5798)
* Add tcmallocAggressiveMemoryDecommit (#5650) * add tcmallocAggressiveMemoryDecommit * wordsmithing * external review suggestions and clarifications * writing review * Update source/reference/parameters.txt Co-authored-by: Alison Huh <[email protected]> * Update source/reference/parameters.txt Co-authored-by: Alison Huh <[email protected]> * fix formatting * final? review * Update source/reference/parameters.txt Co-authored-by: Alison Huh <[email protected]> * final changes, I hope... * fix formatting --------- Co-authored-by: Alison Huh <[email protected]> * fix single-hash issue (#5789) --------- Co-authored-by: Alison Huh <[email protected]>
1 parent d231e3b commit 425b057

File tree

1 file changed

+31
-1
lines changed

1 file changed

+31
-1
lines changed

source/reference/parameters.txt

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1532,6 +1532,30 @@ General Parameters
15321532
.. seealso: :ref:`storage-node-watchdog`
15331533

15341534

1535+
.. parameter:: tcmallocAggressiveMemoryDecommit
1536+
1537+
*Type*: integer (``0`` or ``1`` only)
1538+
1539+
Default: 1
1540+
1541+
If you enable ``tmallocAggressiveMemoryDecommit``, MongoDB:
1542+
1543+
- releases a :term:`chunk <chunk>` of memory to system, and
1544+
1545+
- attempts to return all neighboring free chunks.
1546+
1547+
A value of ``1`` enables ``tcmallocAggressiveMemoryDecommit``;
1548+
``0`` disables this parameter.
1549+
1550+
If you enable this parameter, the system will require new memory allocations
1551+
for use. Consider enabling ``tcmallocAggressiveMemoryDecommit``
1552+
only on memory-constrained systems and after pursuing other memory and
1553+
performance options.
1554+
1555+
Despite the potential performance degradation when using
1556+
``tcmallocAggressiveMemoryDecommit``, it is often preferred over using
1557+
:parameter:`tcmallocReleaseRate`.
1558+
15351559
.. parameter:: tcmallocReleaseRate
15361560

15371561
.. versionadded:: 4.2.3
@@ -1548,7 +1572,13 @@ General Parameters
15481572
return memory faster; decrease it to return memory slower.
15491573
Reasonable rates are in the range [0,10]."
15501574

1551-
To modify the release rate during runtime, you can use the
1575+
.. note::
1576+
1577+
Consider using :parameter:`tcmallocAggressiveMemoryDecommit` instead of
1578+
:parameter:`tcmallocReleaseRate`, unless you see a significant performance
1579+
degradation when using ``tcmallocAggressiveMemoryDecommit``.
1580+
1581+
To modify the release rate during run time, you can use the
15521582
:dbcommand:`setParameter` command; for example:
15531583

15541584
.. code-block:: javascript

0 commit comments

Comments
 (0)