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

Sync issues on systems with low RAM #30

Open
squidicuzz opened this issue Aug 13, 2023 · 1 comment
Open

Sync issues on systems with low RAM #30

squidicuzz opened this issue Aug 13, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@squidicuzz
Copy link
Collaborator

High memory usage from daemon on chain synchronization

Systems with low available RAM may crash when there is a large amount of historical chain data to sync onto the node. This is due to memory usage of the daemon increasing with no stop limits, when downloading the chain and validating blocks.

Until a solution to this is implemented, it is recommended for nodes to have a minimum of 5 GB of RAM available for the daemon when performing a full sync. Once the node daemon is synced to the chaintip, the RAM usage is better... A /swap drive will also help to improve performance and if the memory maxes out, you may be able to get away with lower RAM.

Profiling of memory usage within the daemon may be needed to narrow down and reduce the amount of memory that is consumed. Additionally, a more aggressive garbage collection solution is needed to assure internal lists and maps do not grow to large sizes, and are emptied periodically to free up available RAM.

This ticket is for reference tracking of the issue solution

@squidicuzz
Copy link
Collaborator Author

#51 might/should have improvements for memory usage. Includes upgrades and fixes to LevelDB.

@squidicuzz squidicuzz added the bug Something isn't working label Jun 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

1 participant