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

shrink batches when over 80% of the space is wasted #23066

Merged
merged 9 commits into from
Feb 16, 2022

Conversation

aeyakovenko
Copy link
Member

Problem

Additional empty batches in the pipeline may starve the banking stage

Summary of Changes

shrink the batches if more then 80% of the space is wasted

4096

test bench_shrink_count_packets ... bench: 2,372 ns/iter (+/- 787)
test bench_shrink_diff_big_packets ... bench: 109,311 ns/iter (+/- 613)
test bench_shrink_diff_small_packets ... bench: 109,724 ns/iter (+/- 784)

roughly 22ns per packet.

Fixes #

tag @buffalu

@aeyakovenko aeyakovenko changed the title shrink batches when over 50% of the space is wasted shrink batches when over 80% of the space is wasted Feb 11, 2022
@aeyakovenko aeyakovenko marked this pull request as ready for review February 11, 2022 22:17
core/src/sigverify_stage.rs Outdated Show resolved Hide resolved
perf/benches/shrink.rs Outdated Show resolved Hide resolved
perf/benches/shrink.rs Outdated Show resolved Hide resolved
perf/benches/shrink.rs Outdated Show resolved Hide resolved
perf/benches/shrink.rs Outdated Show resolved Hide resolved
perf/benches/shrink.rs Outdated Show resolved Hide resolved
perf/benches/shrink.rs Outdated Show resolved Hide resolved
perf/benches/shrink.rs Outdated Show resolved Hide resolved
perf/src/sigverify.rs Outdated Show resolved Hide resolved
perf/src/sigverify.rs Outdated Show resolved Hide resolved
t-nelson
t-nelson previously approved these changes Feb 15, 2022
Copy link
Contributor

@t-nelson t-nelson left a comment

Choose a reason for hiding this comment

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

r+ cosmetics. lgtm!

perf/src/sigverify.rs Outdated Show resolved Hide resolved
@mergify mergify bot dismissed t-nelson’s stale review February 16, 2022 06:02

Pull request has been modified.

@codecov
Copy link

codecov bot commented Feb 16, 2022

Codecov Report

Merging #23066 (66958f8) into master (6e5db4a) will decrease coverage by 0.0%.
The diff coverage is 84.1%.

@@            Coverage Diff            @@
##           master   #23066     +/-   ##
=========================================
- Coverage    81.3%    81.3%   -0.1%     
=========================================
  Files         564      567      +3     
  Lines      153290   154497   +1207     
=========================================
+ Hits       124726   125663    +937     
- Misses      28564    28834    +270     

@aeyakovenko aeyakovenko merged commit 83d31c9 into solana-labs:master Feb 16, 2022
mergify bot pushed a commit that referenced this pull request Feb 16, 2022
* shrink batches when over 80% of the space is wasted

(cherry picked from commit 83d31c9)

# Conflicts:
#	core/benches/sigverify_stage.rs
#	core/src/sigverify_stage.rs
#	perf/src/sigverify.rs
mergify bot added a commit that referenced this pull request Feb 16, 2022
…#23189)

* shrink batches when over 80% of the space is wasted (#23066)

* shrink batches when over 80% of the space is wasted

(cherry picked from commit 83d31c9)

# Conflicts:
#	core/benches/sigverify_stage.rs
#	core/src/sigverify_stage.rs
#	perf/src/sigverify.rs

* fixup!

Co-authored-by: anatoly yakovenko <[email protected]>
jeffwashington pushed a commit to jeffwashington/solana that referenced this pull request Mar 4, 2022
* shrink batches when over 80% of the space is wasted
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.

3 participants