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

[Batcher] Fix memory leak, reverse prepended blocks #12874

Merged
merged 2 commits into from
Nov 8, 2024

Conversation

mdehoog
Copy link
Contributor

@mdehoog mdehoog commented Nov 7, 2024

Description

#12810 removed the call to removePendingChannel which is causing a memory leak in the batcher.

Also revert the reverse ordering change introduced by that PR.

Tests

Tested by running the devnet locally, and checking the memory usage doesn't grow in pprof.

Additional context

We're seeing our batcher process OOM on Base Sepolia.

@mdehoog mdehoog force-pushed the michael/batcher-leak branch from 5736a2a to d7ecb46 Compare November 7, 2024 22:17
@mdehoog mdehoog requested review from geoknee and removed request for geoknee November 7, 2024 22:19
@geoknee geoknee added this pull request to the merge queue Nov 8, 2024
@geoknee
Copy link
Contributor

geoknee commented Nov 8, 2024

Thanks @mdehoog & apologies for this regression!

Merged via the queue into develop with commit f7cef71 Nov 8, 2024
49 checks passed
@geoknee geoknee deleted the michael/batcher-leak branch November 8, 2024 01:46
GrapeBaBa pushed a commit to optimism-java/optimism that referenced this pull request Nov 13, 2024
…m#12874)

* Don't prepend blocks in reverse order

* Fix memory leak
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.

3 participants