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

qng might suffer the OOM crash due to the memory leak of the go-ethereuem code cache. #261

Closed
dindinw opened this issue Nov 2, 2022 · 3 comments

Comments

@dindinw
Copy link
Contributor

dindinw commented Nov 2, 2022

The issue is caused by ethereum/go-ethereum#26071

  • The fastcache cause the memory leak, the go-ethereum might change to an new caching library that does not need an explicit close mechanism
  • The qng fully syncing might not be executed successfully.
  • a temporary solution
    • make sure it has enough memory on the sync node.
      • 16G node is required for a fully syncing of the 1.25m blocks
      • big swap file should be created ( same with or bigger than the physical memory is recommended)
      • the virtual memory must be set to unlimited (ulimit -v unlimited), the fastcache use the unix mmap for the heap-off allocation.
    • watching the syncing process carefully
      • shutdown&restart the node if required. the normal shutdown is safe during the syncing. but OOM kill might result the data inconsistent.
@dindinw
Copy link
Contributor Author

dindinw commented Nov 10, 2022

@dindinw
Copy link
Contributor Author

dindinw commented Nov 16, 2022

The cherry-picked PR26092 suffers the performance issue. we might wait for the future go-ethereum v1.11.0 release. it also means there is little possibility of picking all code changes into the old v.1.10.21 branch.

@dindinw
Copy link
Contributor Author

dindinw commented Nov 30, 2022

done at v1.0.18 release, see #300

@dindinw dindinw closed this as completed Nov 30, 2022
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

No branches or pull requests

1 participant