Skip to content

Any way to optimize the memory usage of Era? #842

Discussion options

You must be logged in to vote

@windycrypto

The high memory usage (>30GB) for Era external nodes is primarily due to the Merkle tree. Specifically, a significant amount of RAM is consumed by indexes and Bloom filters for RocksDB, which are loaded into memory at node startup and pinned there by default.

To optimize memory usage, you can configure the following parameters:

  • merkle_tree_block_cache_size_mb: Set this to at least 4GB.
  • merkle_tree_include_indices_and_filters_in_block_cache: Set this to true.

These settings can be applied via environment variables or file-based configurations, depending on your setup. You can refer to the relevant configuration code here.

Additional optimizations:

  • Pruning: This reduces the …

Replies: 3 comments 7 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
7 replies
@dutterbutter
Comment options

@windycrypto
Comment options

@dutterbutter
Comment options

@windycrypto
Comment options

@dutterbutter
Comment options

Answer selected by dutterbutter
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
ZK Stack
Labels
zk-stack ZK Stack Question
3 participants