Skip to content

Commit

Permalink
Document automatic MALLOC_TRIM_THRESHOLD_ environment variable (#5139)
Browse files Browse the repository at this point in the history
  • Loading branch information
jrbourbeau authored Jul 29, 2021
1 parent 1be9265 commit 83e209b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/source/worker.rst
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,12 @@ performance.
.. note::
The variable must be set before starting the ``dask-worker`` process.

.. note::
If using a :ref:`nanny`, the ``MALLOC_TRIM_THRESHOLD_`` environment variable
will automatically be set to ``65536`` for the worker process which the nanny is
monitoring. You can modify this behavior using the ``distributed.nanny.environ``
configuration value.

jemalloc
~~~~~~~~
*Linux and MacOS workers*
Expand Down Expand Up @@ -402,6 +408,8 @@ This of course will be problematic if you have a genuine issue with unmanaged me
e.g. memory leaks and/or suffer from heavy fragmentation.


.. _nanny:

Nanny
-----

Expand Down

0 comments on commit 83e209b

Please sign in to comment.