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

split hash calc ancient slot boundary to allow for ancient shrinking … #33216

Merged
merged 1 commit into from
Sep 26, 2023

Conversation

jeffwashington
Copy link
Contributor

@jeffwashington jeffwashington commented Sep 11, 2023

…to be behind

Problem

When ancient append vecs are shrinking, we can end up creating far too many chunks of cached hash data files for efficiency. We only want to cache individual append vecs when they are large. The other ones (that we haven't packed yet), we want to cache in slot ranges.

Summary of Changes

Modify the algorithm that splits ancient vs non ancient to ignore 'old' slots that haven't been packed yet (as evidenced by their smaller size).

Fixes #

@codecov
Copy link

codecov bot commented Sep 11, 2023

Codecov Report

Merging #33216 (ad0cdc1) into master (d25d53e) will decrease coverage by 0.1%.
The diff coverage is 96.0%.

@@            Coverage Diff            @@
##           master   #33216     +/-   ##
=========================================
- Coverage    81.9%    81.9%   -0.1%     
=========================================
  Files         798      798             
  Lines      216974   217016     +42     
=========================================
+ Hits       177902   177923     +21     
- Misses      39072    39093     +21     

Copy link
Contributor

@brooksprumo brooksprumo left a comment

Choose a reason for hiding this comment

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

lgtm

@jeffwashington jeffwashington merged commit a9b0fb4 into solana-labs:master Sep 26, 2023
15 checks passed
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.

2 participants