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

fix: memory not added to checkpoint in unconstrained mode #1436

Merged
merged 4 commits into from
Aug 29, 2024

Conversation

ctian1
Copy link
Member

@ctian1 ctian1 commented Aug 29, 2024

We were running into a rare runtime issue where the runtime diverges from intended behavior when running from a checkpoint. Multiple checkpoints were halting, resulting in duplicate memory init/finalize records. Root cause is because mode is set to Simple in unconstrained mode, but checkpoint memory is only saved in Checkpoint mode.

Fix is to also save checkpoint memory if in unconstrained mode.

@ctian1 ctian1 force-pushed the chris/fix-memory-global-collision branch from 5bd4889 to a9f8dc3 Compare August 29, 2024 19:13
Copy link
Contributor

@kevjue kevjue left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link

SP1 Performance Test Results

PR: fix: memory not added to checkpoint in unconstrained mode
Branch: chris/fix-memory-global-collision
Commit: d7e8e5d8
Author: ctian1

program cycles execute (mHz) core (kHZ) compress (KHz) time success
fibonacci 11291 2.91 5.88 0.15 1m16s
ssz-withdrawals 2757356 7.57 58.18 22.14 2m52s
tendermint 12593597 5.63 148.70 94.59 3m40s

@ctian1 ctian1 merged commit cfdc095 into dev Aug 29, 2024
9 checks passed
@ctian1 ctian1 deleted the chris/fix-memory-global-collision branch August 29, 2024 19: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