-
Notifications
You must be signed in to change notification settings - Fork 463
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
Fix/Rocksdb cache not set #5578
Conversation
Turns out, currently because Much more unstable block processing though. Gonna try to separate state cache from other cache. |
Confusingly, lower block cache equals faster block processing time? |
Test errors look actual Failed Cache_state_index("archive",False) [128 ms] Failed Caches_in_fast_blocks("fast") [1 ms] Failed Cache_state_index("^archive",False) [145 ms] |
Yes I'm turning that on with two level index type. Seems to significantly reduce memory as advertised. Does not seems to reduce memory with standard index, though. |
Actually, it does reduce memory, but massively reduce performance, likely due to very low block cache which was not configured correctly. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is a merge conflict
…cache' into cleanup/explicit-global-rocksdb-cache
I made a mistake, the above result is with caching store disabled. Not sure about if caching store enabled. |
TwoLevelIndex
is turned on, which significanly reduce the in-memory part of the index.CacheIndexAndFilterBlocks
is also advised, which will cause the block index to fit in the block cache. With an existing DB, ifCacheIndexAndFilterBlocks
is set to true, memory usage decrease by about 1GB at start, but performance suffer, likely due to larger index and block size, making the cache less effective.CacheIndexAndFilterBlocks
remains turned off, but a fresh sync db can turn that on to reduce memory.Testing
Tested via running trace block of past 2000 blocks in sequence. In memory pruning is disabled. Single thread only.
6 runs in sequence:
CacheIndexAndFilterBlocks
and cache?CacheIndexAndFilterBlocks
on.CacheIndexAndFilterBlocks
on.CacheIndexAndFilterBlocks
on.Changes
OptimizeForPointLookup
code to take effect.CacheIndexAndFilterBlocks
and two level index.Types of changes
What types of changes does your code introduce?
Testing
Requires testing
If yes, did you write tests?