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

[core][gcs] Remove ByteSizeLong call from GcsTaskManager #41108

Merged
merged 4 commits into from
Nov 17, 2023

Conversation

rickyyx
Copy link
Contributor

@rickyyx rickyyx commented Nov 13, 2023

Why are these changes needed?

We were tracking stored tasks event size from ByteSizeLong() calls, which is showing high overheads. Since we are already tracking the number of task attempts, we could get a proxy over the size and thus dropping the size tracking completely.

Related issue number

Closes #41027

Checks

  • I've signed off every commit(by using the -s flag, i.e., git commit -s) in this PR.
  • I've run scripts/format.sh to lint the changes in this PR.
  • I've included any doc changes needed for https://docs.ray.io/en/master/.
    • I've added any new APIs to the API Reference. For example, if I added a
      method in Tune, I've added it in doc/source/tune/api/ under the
      corresponding .rst file.
  • I've made sure the tests are passing. Note that there might be a few flaky tests, see the recent failures at https://flakey-tests.ray.io/
  • Testing Strategy
    • Unit tests
    • Release tests
    • This PR is not tested :(

Signed-off-by: rickyyx <rickyx@anyscale.com>
@rickyyx rickyyx requested a review from a team as a code owner November 13, 2023 23:40
Signed-off-by: rickyyx <rickyx@anyscale.com>
@rickyyx
Copy link
Contributor Author

rickyyx commented Nov 13, 2023

Comparing the processing time for the task events thread with release tests: https://buildkite.com/ray-project/release/builds/1074

rickyyx and others added 2 commits November 15, 2023 17:30
@rkooo567 rkooo567 merged commit 7a75d09 into ray-project:master Nov 17, 2023
17 of 21 checks passed
ujjawal-khare pushed a commit to ujjawal-khare-27/ray that referenced this pull request Nov 29, 2023
…#41108)

We were tracking stored tasks event size from ByteSizeLong() calls, which is showing high overheads. Since we are already tracking the number of task attempts, we could get a proxy over the size and thus dropping the size tracking completely.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Core] ByteSizeLong is too expensive, leading to high CPU usage in the GCS task events thread.
2 participants