Skip to content

Not monitoring the process tree, only the worker proccess #1949

Open

Description

@barakor

When using subprocess, the memory usage is counted by the local scheduling system but not by distributed, this leads to 2 problems:
A) we can't monitor the processes from the Dashboard properly
B) distributed's handling of memory usage isn't brought into effect, and so the worker is killed by the scheduling system in some cases.

Is this intentional?

Activity

  1. mrocklin commented on May 1, 2018

    @mrocklin
    Member

    Currently we use psutil.Process().memory_info() to measure the memory use of each worker process. Is there something else that you would recommend?

  2. guillaumeeb commented on Nov 12, 2018

    @guillaumeeb
    Member

    Stack Overflow says we can watch all the children too, but this will probably leads to potential performance penalty: https://stackoverflow.com/questions/24494493/find-total-memory-used-by-python-process-and-all-its-children.

    This could prove useful in some use cases I have with dask-jobqueue though, even if I'm not sure if distributed's handling of memory usage would be efficient here.

  3. SimonBoothroyd commented on Sep 12, 2019

    @SimonBoothroyd

    +1 for this. If not as part of the SystemMonitor, it would definitely be helpful to include it in the Nanny monitoring code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions