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

Extend lookahead to cover host-buffer allocations for send / receive #313

Merged
merged 2 commits into from
Dec 2, 2024

Conversation

fknorr
Copy link
Contributor

@fknorr fknorr commented Nov 27, 2024

Multi-node RSim surfaced the fact that we still generate frequent small allocations because we do not anticipate() push and await-push commands, which do allocate (buffer) host memory.

We want to replace strided-host-buffer staging of MPI transfers with linearized copy_plan staging eventually, but for the meantime this PR avoids frequent host-buffer reallocations (and with it, potential runaway scheduling complexity) around sends and receives by accumulating all boxes they potentially touch during anticipate() as well.

We want to replace strided-host-buffer staging of MPI transfers with
linearized copy_plan staging eventually, but in the meantime we must
avoid frequent host-buffer reallocations (and with it, potential runaway
scheduling complexity) around sends and receives.
@fknorr fknorr added this to the 0.7.0 milestone Nov 27, 2024
@fknorr fknorr requested review from psalz and PeterTh November 27, 2024 13:13
@fknorr fknorr self-assigned this Nov 27, 2024
Copy link

Check-perf-impact results: (c42c71d6dbf9df683e01725118dd2b84)

⚠️ Significant slowdown (>1.25x) in some microbenchmark results: normalizing a fully mergeable tiling of boxes - 1 / small, embedded in 3d

Relative execution time per category: (mean of relative medians)

  • command-graph : 1.07x
  • graph-nodes : 1.04x
  • grid : 1.02x
  • instruction-graph : 0.99x
  • scheduler : 1.00x
  • system : 1.06x
  • task-graph : 0.95x

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Clang-Tidy found issue(s) with the introduced code (1/1)

test/scheduler_tests.cc Show resolved Hide resolved
@coveralls
Copy link

Pull Request Test Coverage Report for Build 12051046056

Details

  • 36 of 36 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.02%) to 94.977%

Totals Coverage Status
Change from base Build 12047884020: 0.02%
Covered Lines: 7172
Relevant Lines: 7291

💛 - Coveralls

Copy link
Member

@psalz psalz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@fknorr fknorr merged commit 86456ec into master Dec 2, 2024
17 checks passed
@fknorr fknorr deleted the lookahead-p2p-host-memory branch December 2, 2024 12:18
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.

4 participants