You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a config iavl-cache-size that applies to both regular nodes and fast nodes. We would like to introduce a new config parameter specifically for fast nodes. Additionally, we would like to represent both parameters in bytes as opposed to the number of nodes.
Currently ,iavl-cache-size config is applied to every iavl substore (each module has its own substore). As a result, for every sub store we have 2 caches of the same max size - one for regular nodes and one for fast nodes.
While it might make sense to keep the same value for regular node, the current value is simply too large for fast nodes. As a result, we keep indefinitely populating fast node cache until OOM. That's why this separation is desired.
Context
There is a config
iavl-cache-size
that applies to both regular nodes and fast nodes. We would like to introduce a new config parameter specifically for fast nodes. Additionally, we would like to represent both parameters in bytes as opposed to the number of nodes.Currently ,
iavl-cache-size
config is applied to every iavl substore (each module has its own substore). As a result, for every sub store we have 2 caches of the same max size - one for regular nodes and one for fast nodes.While it might make sense to keep the same value for regular node, the current value is simply too large for fast nodes. As a result, we keep indefinitely populating fast node cache until OOM. That's why this separation is desired.
Some additional context here: #1140 (comment)
Currently, we hardcoded fast node cache to 100K: osmosis-labs/iavl#37
Plan Ahead
fastNodeCache
andnodeCache
to be separate modules with synchrony iavl#24Work in Progress
Acceptance Criteria
iavl-fast-cache-size
iavl-fast-cache-size
andiavl-cache-size
in bytesThe text was updated successfully, but these errors were encountered: