-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Add trie cache warmup #7556
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
Merged
Merged
Add trie cache warmup #7556
Changes from all commits
Commits
Show all changes
81 commits
Select commit
Hold shift + click to select a range
1de5d45
Bootstrap
AndreiEres aa9fd47
Warm up trie cache
AndreiEres 2a5984b
Skip the warm-up if we shouldn’t fit the cache in memory
AndreiEres ffe5f33
Define memory usage
AndreiEres c520c63
Fix DatabaseSettings
AndreiEres 59a1e61
Fix Configuration
AndreiEres c36916b
Fix Configuration
AndreiEres 269f87a
Fix Configuration
AndreiEres 9f708b5
Merge branch 'master' into AndreiEres/trie-warmup
AndreiEres d3e83db
Process child keys
AndreiEres 1dc4de1
Fix compilation
AndreiEres 9bbb397
Add progress to key population
AndreiEres ed89fb1
Fix clippy warning
AndreiEres 4c90ff2
Fix missing force_in_memory_trie_cache
AndreiEres 75a1ba4
Merge branch 'master' into AndreiEres/trie-warmup
AndreiEres 3053fe0
Add missing force_in_memory_trie_cache
AndreiEres 75726c6
Update ImportParams
AndreiEres 08b3024
Specify DbHash in NodeBlock
AndreiEres e8611eb
Update from AndreiEres running command 'prdoc --bump patch --audience…
github-actions[bot] 07fb16e
Merge branch 'master' into AndreiEres/trie-warmup
AndreiEres 1ae78b3
Merge branch 'master' into AndreiEres/trie-warmup
AndreiEres 47ac732
Add initial zombienet test
AndreiEres 428f606
Update test
AndreiEres d342e82
Update
AndreiEres 289b054
Update
AndreiEres d6f6971
Fix condition
AndreiEres e72bdbd
Improve weights test with chunked processing
AndreiEres 468afc0
Update test
AndreiEres 6e1f495
Add warm up test
AndreiEres 1dd9bac
Update tests
AndreiEres bf0c52f
Extract warm-up logic into dedicated function
AndreiEres 53e7171
Calculate trie cache size based on system memory in ImportParams
AndreiEres a62faad
Remove force_in_memory_trie_cache from DatabaseSettings
AndreiEres 8575368
Update pr doc
AndreiEres 3dfefab
Add zombienet test
AndreiEres 0fe9702
Merge branch 'master' into AndreiEres/trie-warmup
AndreiEres 9132a05
Build asset-hub-westend metadata
AndreiEres 851ab09
Switch to only warming up trie cache
AndreiEres 3ad8c51
Clean up
AndreiEres 4c861a2
Add debug statements for empty storage values
AndreiEres 95554b5
Merge remote-tracking branch 'origin/master' into AndreiEres/trie-warmup
AndreiEres 5f3d768
Update asset_hub_westend import
AndreiEres 96ea5e0
Add parachains-warm-up-trie-cache to GA
AndreiEres 96828dd
Remove unused const
AndreiEres 5190a0c
Use used memory because available memory somethimes failes
AndreiEres fd55d55
Merge branch 'master' into AndreiEres/trie-warmup
AndreiEres bdc59f8
Merge branch 'master' into AndreiEres/trie-warmup
AndreiEres bcca35a
Merge branch 'master' into AndreiEres/trie-warmup
AndreiEres 56bb41b
Replace unnecessary expect
AndreiEres e004403
Use predownloaded metadata for asset-hub-westend
AndreiEres 9fca224
Update test
AndreiEres b0a6eca
Update pr doc
AndreiEres 4609ed7
Make taplo happy
AndreiEres 7d9e16a
Merge branch 'master' into AndreiEres/trie-warmup
AndreiEres a36e69e
Revert YAP changes
AndreiEres eb05505
Use CUMULUS_IMAGE for polkadot-parachain
AndreiEres 02f0b1d
Merge branch 'master' into AndreiEres/trie-warmup
AndreiEres c0cdfe7
Trigger CI
AndreiEres b2b9ac7
Merge branch 'master' into AndreiEres/trie-warmup
AndreiEres 5890374
Update prdoc/pr_7556.prdoc
AndreiEres 71b61e6
Update metadata fetching
AndreiEres 7b55ad4
Add docs
AndreiEres f1f863a
Merge branch 'master' into AndreiEres/trie-warmup
AndreiEres ed97a57
Update test
AndreiEres 1e093b5
Add info about memory
AndreiEres 2a2ddc2
Merge branch 'master' into AndreiEres/trie-warmup
AndreiEres 417e8d0
Merge remote-tracking branch 'origin/master' into AndreiEres/trie-warmup
AndreiEres 599f94f
Shrink arguments
AndreiEres c3ab8b7
Add blocking and non-blocking warm-up
AndreiEres 6f695a6
Add small fixes
AndreiEres 16fb26d
Update the progress tracking
AndreiEres 88b8c3e
Update substrate/client/service/src/builder.rs
AndreiEres 120a597
Update substrate/client/service/src/builder.rs
AndreiEres 5eb64bc
Update substrate/client/service/src/builder.rs
AndreiEres ed7dd95
Decrease log level
AndreiEres be589e3
Don't error on lack of memory
AndreiEres 314818c
Remove zombie test
AndreiEres d7fb87b
Merge branch 'master' into AndreiEres/trie-warmup
AndreiEres 1981dda
Fix types
AndreiEres 8fd35e6
Update pr doc
AndreiEres 04f6823
Use Trusted and Untrusted states
AndreiEres 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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 hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| title: 'Add trie cache warmup' | ||
| doc: | ||
| - audience: Node Dev | ||
| description: "Warm up the Trie cache based on a CLI flag to enhance the performance of smart contracts on AssetHub by reducing storage access time." | ||
| crates: | ||
| - name: sc-cli | ||
| bump: major | ||
| - name: sc-service | ||
| bump: major | ||
| - name: sc-client-db | ||
| bump: minor |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
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.
Uh oh!
There was an error while loading. Please reload this page.