Skip to content

Commit bba405b

Browse files
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]>
1 parent bd1e91d commit bba405b

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

source/reference/parameters.txt

+30
Original file line numberDiff line numberDiff line change
@@ -1844,6 +1844,30 @@ General Parameters
18441844
.. seealso: :ref:`storage-node-watchdog`
18451845

18461846

1847+
.. parameter:: tcmallocAggressiveMemoryDecommit
1848+
1849+
*Type*: integer (``0`` or ``1`` only)
1850+
1851+
Default: 1
1852+
1853+
If you enable `tmallocAggressiveMemoryDecommit`, MongoDB:
1854+
1855+
- releases a :term:`chunk <chunk>` of memory to system, and
1856+
1857+
- attempts to return all neighboring free chunks.
1858+
1859+
A value of ``1`` enables ``tcmallocAggressiveMemoryDecommit``;
1860+
``0`` disables this parameter.
1861+
1862+
If you enable this parameter, the system will require new memory allocations
1863+
for use. Consider enabling ``tcmallocAggressiveMemoryDecommit``
1864+
only on memory-constrained systems and after pursuing other memory and
1865+
performance options.
1866+
1867+
Despite the potential performance degradation when using
1868+
``tcmallocAggressiveMemoryDecommit``, it is often preferred over using
1869+
:parameter:`tcmallocReleaseRate`.
1870+
18471871
.. parameter:: tcmallocReleaseRate
18481872

18491873
.. versionadded:: 4.2.3
@@ -1860,6 +1884,12 @@ General Parameters
18601884
return memory faster; decrease it to return memory slower.
18611885
Reasonable rates are in the range [0,10]."
18621886

1887+
.. note::
1888+
1889+
Consider using :parameter:`tcmallocAggressiveMemoryDecommit` instead of
1890+
:parameter:`tcmallocReleaseRate`, unless you see a significant performance
1891+
degradation when using ``tcmallocAggressiveMemoryDecommit``.
1892+
18631893
To modify the release rate during run time, you can use the
18641894
:dbcommand:`setParameter` command; for example:
18651895

0 commit comments

Comments
 (0)