nimbus-eth1/nimbus/core
Jacek Sieka f294d1e086
Clear account cache after each block (#2411)
When processing long ranges of blocks, the account cache grows unbounded
which cause huge memory spikes.

Here, we move the cache to a second-level cache after each block - the
second-level cache is cleared on the next block after that which creates
a simple LRU effect.

There's a small performance cost of course, though overall the freed-up
memory can now be reassigned to the rocksdb row cache which not only
makes up for the loss but overall leads to a performance increase.

The bump to 2gb of rocksdb row cache here needs more testing but is
slightly less and loosely basedy on the savings from this PR and the
circular ref fix in #2408 - another way to phrase this is that it's
better to give rocksdb more breathing room than let the memory sit
unused until circular ref collection happens ;)
2024-06-25 07:30:32 +02:00
..
chain Remove EVM indirect imports and unused EVM errors (#2370) 2024-06-17 09:56:39 +02:00
executor Clear account cache after each block (#2411) 2024-06-25 07:30:32 +02:00
pow rm PoW hash function and validation support (#2372) 2024-06-16 10:22:06 +07:00
tx_pool Fix t8n: blobGasUsed exceeds allowance issue (#2407) 2024-06-24 07:56:24 +02:00
block_import.nim Consolidate block type for block processing (#2325) 2024-06-09 16:32:20 +02:00
casper.nim processBeaconBlockRoot in TxPool(EIP-4788) 2023-10-19 07:50:07 +07:00
chain.nim saner source code grouping 2022-12-02 13:51:42 +07:00
dao.nim Ledger activate unified accounts cache wrapper (#1939) 2023-12-12 19:12:56 +00:00
eip4844.nim Cache code and invalid jump destination tables (fixes #2268) (#2404) 2024-06-21 09:44:10 +02:00
executor.nim avoid initTable (#2328) 2024-06-10 11:05:30 +02:00
gaslimit.nim Avoid loading parent header from db in gaslimit validation (#2410) 2024-06-24 08:40:22 +02:00
tx_pool.nim Bump nim-eth, nim-web3, nimbus-eth2 (#2344) 2024-06-14 14:31:08 +07:00
validate.nim rm PoW hash function and validation support (#2372) 2024-06-16 10:22:06 +07:00
withdrawals.nim Bump nim-eth, nim-web3, nimbus-eth2 (#2344) 2024-06-14 14:31:08 +07:00