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

Apply some RocksDB documentation suggestions to reduce memory usage. #3985

Merged
merged 1 commit into from
Jun 17, 2022

Conversation

ahamlat
Copy link
Contributor

@ahamlat ahamlat commented Jun 17, 2022

Apply some RocksDB documentation suggestions to reduce memory usage.

  • Set format_version to 5
  • set optimize_filters_for_memory to true
  • Increase block size to 32K
  • set cache_index_and_filter_blocks to true

There is almost 1,5 GiB difference in memory consumption between this version and version 22.4.2 on a 16 GB RAM VM after 1 day of syncing (the green line represents the metrics of this PR).

Screenshot 2022-06-17 at 10 27 59

Sync time is equivalent between the two versions.

Screenshot 2022-06-17 at 10 35 02

Disk usage, CPU consumption and the number of open file descriptors is quite similar for tho instances.

Screenshot 2022-06-17 at 10 30 44

Screenshot 2022-06-17 at 10 30 59

Screenshot 2022-06-17 at 10 31 18

Signed-off-by: Ameziane H ameziane.hamlat@consensys.net

PR description

Fixed Issue(s)

Documentation

  • I thought about documentation and added the doc-change-required label to this PR if
    updates are required.

Changelog

Signed-off-by: Ameziane H <ameziane.hamlat@consensys.net>
Copy link
Contributor

@garyschulte garyschulte left a comment

Choose a reason for hiding this comment

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

🚢

@garyschulte garyschulte merged commit 5702ca0 into hyperledger:main Jun 17, 2022
eum602 pushed a commit to lacchain/besu that referenced this pull request Nov 3, 2023
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