-
Notifications
You must be signed in to change notification settings - Fork 367
feat(canister_logging): add log_memory_store to system_state #7939
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
Draft
maksymar
wants to merge
19
commits into
master
Choose a base branch
from
maksym/system_state-log_memory_store
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from 4 commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
817c83e
add log_memory_store to system_state
maksymar 944d937
is_empty
maksymar a63e154
fix build
maksymar 6eda0ef
update tests
maksymar 1537733
.
maksymar 9ce5af7
fix tests
maksymar e0deae9
fix tests
maksymar 7c428e8
log_memory_store_feature
maksymar b7f5eda
.
maksymar 46c0b29
fix log_memory_store initialization
maksymar 2493436
fix can_state_sync_from_cache_alone
maksymar 46e6f74
fix subnet_manager split tests
maksymar 16fe8a6
add log_memory_store_memory_usage
maksymar acac924
.
maksymar 9a62566
lazy_pagemaps loaded 1
maksymar 2975bce
Merge branch 'master' into maksym/system_state-log_memory_store
maksymar 3cbfca0
fix test comment
maksymar cbd86a8
fix memory usage test
maksymar b57029e
Merge branch 'master' into maksym/system_state-log_memory_store
maksymar 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 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -318,7 +318,13 @@ fn lsmt_merge_overhead() { | |
| assert_ne!(tip_size(&env), 0.0); | ||
| assert_ne!(state_in_memory(&env), 0.0); | ||
| assert!(tip_size(&env) / state_in_memory(&env) > 2.0); | ||
| assert!(tip_size(&env) / state_in_memory(&env) <= 2.5); | ||
| assert!( | ||
| tip_size(&env) / state_in_memory(&env) <= 2.5, | ||
| "tip_size: {} state_in_memory: {}, tip_size / state_in_memory: {}", | ||
| tip_size(&env), | ||
| state_in_memory(&env), | ||
| tip_size(&env) / state_in_memory(&env) | ||
| ); | ||
| } | ||
| } | ||
| // Create a checkpoint from the tip without writing any more data. As we merge in tip, the | ||
|
|
@@ -366,7 +372,7 @@ fn lazy_pagemaps() { | |
| let canister_id = env.install_canister_wat(TEST_CANISTER, vec![], None); | ||
|
|
||
| env.tick(); | ||
| assert_eq!(page_maps_by_status("loaded", &env), 0); | ||
| assert_eq!(page_maps_by_status("loaded", &env), 1); | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. FYI: This is probably due to the fact that log memory store initializes the 1 page header. |
||
| assert!(page_maps_by_status("not_loaded", &env) > 0); | ||
|
|
||
| env.execute_ingress(canister_id, "write_heap_64k", vec![]) | ||
|
|
||
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
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.
Uh oh!
There was an error while loading. Please reload this page.