Skip to content

Set worker memory limit to current free memory, not total memory? #6895

Open
@gjoseph92

Description

@gjoseph92

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:

limit = psutil.virtual_memory().total

cc @fjetter @ntabris

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions