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

block_stream: remove state handling for orphaned blocks #279

Merged
merged 3 commits into from
Feb 24, 2025

Conversation

penumbra23
Copy link
Contributor

Description

This PR removes the internal BlockStream state management and re-balancing of the orphaned blocks. The reason for this change is because it turns out that the internals cause a memory leak (or better to say memory misuse) described in THIS issue.

Test

I've updated the chronicle to point to the last commit of this branch and run it on integration environment for 3 days, here are the results:
image

The updated 3 chronicles use a stable 30MB during the period of testing, while the old ones are taking up the whole node (3-4GB).

Additional Information

Because I'm not familiar with this part and I haven't tested ALL cases of a shard working with this change, @Lohann can you point out what this code does and what are the implications of removing it?

@penumbra23 penumbra23 requested review from dvc94ch and Lohann February 24, 2025 21:04
Copy link
Contributor

@dvc94ch dvc94ch left a comment

Choose a reason for hiding this comment

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

Thx bran!

@dvc94ch dvc94ch merged commit f264e34 into gmp-api Feb 24, 2025
2 of 4 checks passed
@dvc94ch dvc94ch deleted the test/remove-state-import branch February 24, 2025 21:19
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