Repository navigation
Conversation
Adds check for children processes when tracking resource usage. Works fine with subprocess.call / Popen
Member
|
Hi @danpf ! Sorry for the delay in review. In principle this approach seems sensible to me. I agree though that the larger question of "do we want to do this" is probably worth investigating though. I've found that the system monitor can add a non-trivial baseline cost to the scheduler that would be good to avoid. |
Contributor
Author
|
it definitely adds overhead from what I have seen. however, since you have to run This isn't a really big deal PR, it's mostly just here for if you're interested. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I'm not sure of the performance implications of this, but I've been using this to track my resource usage.
fix for #1949
description:
Currently, Dask can only track the worker's cpu usage and memory usage. If you make another process via
subprocessthat process's resources will not be tracked. This makes us track the resource usage of all process children instead of just the python process.I'm not sure if this is everything that needs to be changed, but it appears to work for me. I'm guessing this is slightly slower since tests are failing.