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

feat(upgrader): new stable memory layout #474

Merged
merged 17 commits into from
Jan 14, 2025

Conversation

mraszyk
Copy link
Collaborator

@mraszyk mraszyk commented Jan 10, 2025

This PR introduces a new stable memory layout for the upgrader:

  • the bucket size is reduced from the default 8MiB to 1MiB;
  • the target canister id is bundled with the disaster recovery state (and a new stable memory version field) into a single stable memory region.

The above two changes reduce the default upgrader stable memory footprint from 3 x 8MiB down to 2 x 1MiB.

@mraszyk mraszyk marked this pull request as ready for review January 13, 2025 21:15
@mraszyk mraszyk requested a review from a team as a code owner January 13, 2025 21:15
Copy link
Contributor

@olaszakos olaszakos left a comment

Choose a reason for hiding this comment

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

LGTM

@mraszyk mraszyk merged commit 62b3a59 into main Jan 14, 2025
47 checks passed
@mraszyk mraszyk deleted the mraszyk/upgrader-stable-memory-migration branch January 14, 2025 10:25
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