Open
Description
In coiled/feedback#185, we found that system services were taking up enough memory that the worker setting its memory limit to to the total amount of virtual memory available often caused it to put the system under memory pressure and freeze it before the terminate limit could kick in.
Perhaps dask should take this approach in general, and rather than setting its default memory limit to the total system memory (which is always going to be too high), it should use the amount of currently-available memory (maybe plus its own current RSS)?
We'd just change .total
here to .available
:
distributed/distributed/system.py
Line 19 in 969aa46