-
Notifications
You must be signed in to change notification settings - Fork 179
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
[EN Performance] Reuse ledger state for about -200GB peak RAM, -160GB disk i/o, and about -32 minutes duration #2792
Merged
fxamacker
merged 38 commits into
master
from
fxamacker/reuse-mtrie-state-for-checkpointing-2
Aug 2, 2022
Merged
Changes from 10 commits
Commits
Show all changes
38 commits
Select commit
Hold shift + click to select a range
07aa295
Reuse ledger state in checkpoints (save 152GB RAM)
fxamacker 6944327
Refactor Ledger/DiskWAL/Compactor shutdowns
fxamacker 64d4c03
Handle more error conditions in compactor
fxamacker 3b35eb9
Check closed channel in Compactor
fxamacker 6d60646
Add debug logging in test
fxamacker 5a0044f
Add debug logging in test
fxamacker bf38e53
Avoid observer.OnNext() when Compactor is closing
fxamacker 710f1c6
Handle ledger updates in parallel with Compactor
fxamacker 8e036c8
Make Compactor test less flaky
fxamacker c053aaf
Merge branch 'master' into fxamacker/reuse-mtrie-state-for-checkpoint…
fxamacker 65f2062
Refactor trie update processing in Compactor
fxamacker b8797cc
Refactor Compactor shutdown
fxamacker 6dddcf7
Use CheckpointQueue to store tries for checkpointing
fxamacker ccf4571
Fix lint error
fxamacker cca4a71
Merge branch 'master' into fxamacker/reuse-mtrie-state-for-checkpoint…
fxamacker 91320b4
Remove anon goroutine updating WAL in Ledger.Set
fxamacker 2127e44
Merge branch 'master' into fxamacker/reuse-mtrie-state-for-checkpoint…
fxamacker 9b9d6f3
Add comments
fxamacker f048d62
Send WAL update result outside of defer
fxamacker c5455bd
Refactor to use constants for default values
fxamacker 240520d
Add comment
fxamacker 853ff05
Rename CheckpointQueue to TrieQueue
fxamacker 46576c5
Add comment for DiskWAL.RecordUpdate
fxamacker 31ff7e4
Add comment for WAL shutdown in Compactor
fxamacker 7e29a67
Add more logging in Compactor
fxamacker b657ca3
Add comment for Compactor and Ledger
fxamacker 4d81b17
Fix linter error
fxamacker 6af9f11
Merge branch 'master' into fxamacker/reuse-mtrie-state-for-checkpoint…
fxamacker 8afb36b
Refactor compactor tests
fxamacker 748f56e
Merge branch 'master' into fxamacker/reuse-mtrie-state-for-checkpoint…
fxamacker bd62030
Fix lint error
fxamacker 9f2ec46
Add code comments
fxamacker 22eeb3e
Only retry checkpointing on appropriate error
fxamacker f774617
Remove unnecessary branch in TrieQueue
fxamacker ec132df
[Ledger] Replace LRU cache with a FIFO queue (circular buffer) (#2893)
ramtinms e5cce3e
Merge branch 'master' into fxamacker/reuse-mtrie-state-for-checkpoint…
fxamacker 711deaa
Fix lint errors
fxamacker c700389
Fix PurgeCacheExcept test
fxamacker File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why moving this down?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
DiskWAL
needs to be a dependent component ofLedger
because I found component shutdown is parallel (although it used to be in sequence).