Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

ledger_cleanup_service: compact at a slower rate than purging #10414

Merged
merged 3 commits into from
Jun 5, 2020

Conversation

mvines
Copy link
Contributor

@mvines mvines commented Jun 4, 2020

It's not necessary to compact after each purge and doing so significantly increases disk IOPS. Instead take the compaction hit once an epoch.

On testnet.solana.com this drops IOPS from a solid 50 MB/s read/write by an order of magnitude, with a 10x IOPS hit every couple days for ~20 min for compaction

@mvines mvines added the v1.2 label Jun 4, 2020
@mvines mvines requested a review from sakridge June 4, 2020 19:59
@mvines
Copy link
Contributor Author

mvines commented Jun 4, 2020

@sakridge - still testing this on a couple nodes but wdyt?

@sakridge
Copy link
Contributor

sakridge commented Jun 4, 2020

@sakridge - still testing this on a couple nodes but wdyt?

Looks good, just the comment about epochs.

@mvines mvines added the automerge Merge this Pull Request automatically once CI passes label Jun 5, 2020
@solana-grimes
Copy link
Contributor

💔 Unable to automerge due to CI failure

@solana-grimes solana-grimes removed the automerge Merge this Pull Request automatically once CI passes label Jun 5, 2020
@codecov
Copy link

codecov bot commented Jun 5, 2020

Codecov Report

Merging #10414 into master will increase coverage by 0.0%.
The diff coverage is 73.5%.

@@           Coverage Diff           @@
##           master   #10414   +/-   ##
=======================================
  Coverage    81.6%    81.6%           
=======================================
  Files         295      295           
  Lines       69154    69175   +21     
=======================================
+ Hits        56448    56476   +28     
+ Misses      12706    12699    -7     

@mvines mvines merged commit aa68329 into solana-labs:master Jun 5, 2020
mergify bot pushed a commit that referenced this pull request Jun 5, 2020
@mvines mvines deleted the slowc branch June 5, 2020 04:10
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants