Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix high CPU usage in object manager due to O(n^2) iteration over active pulls list #13724

Merged
merged 5 commits into from
Jan 27, 2021

Conversation

ericl
Copy link
Contributor

@ericl ericl commented Jan 27, 2021

Why are these changes needed?

We discovered while testing object spilling that the current pull manager iterates over the entire list of active pull requests for each new pull request. This leads to O(n^2) CPU usage with respect to the number of object dependencies in Ray, causing the cluster to grind to a halt.

@ericl
Copy link
Contributor Author

ericl commented Jan 27, 2021

cc @wuisawesome we should probably pick this into 1.2 since it causes workloads with lots of objects to grind to a halt

@wuisawesome
Copy link
Contributor

Sounds good, can one of you add it to the tracker and shepherd it?

@wuisawesome wuisawesome added the @author-action-required The PR author is responsible for the next step. Remove tag to send back to the reviewer. label Jan 27, 2021
@rkooo567
Copy link
Contributor

@ericl Lint failures are there.

@wuisawesome
Copy link
Contributor

Lint :(

@ericl ericl merged commit 56a9523 into ray-project:master Jan 27, 2021
wuisawesome pushed a commit that referenced this pull request Jan 28, 2021
fishbone pushed a commit to fishbone/ray that referenced this pull request Feb 16, 2021
fishbone added a commit to fishbone/ray that referenced this pull request Feb 16, 2021
fishbone added a commit to fishbone/ray that referenced this pull request Feb 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@author-action-required The PR author is responsible for the next step. Remove tag to send back to the reviewer.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants