Open gshep opened 1 month ago
It seems that the options for optimizing memory consumption are rather limited on our part: the create-snapshot
argument only configures Builder from crate frame-remote-externalities
Local testing shows that about ~3GB is consumed while downloading key values
:
And about ~10GB during DB generation:
The following arguments have been used:
gear-replay-cli create-snapshot -u wss://testnet-archive.vara.network:443 ../test-snapshot -b 0x61e939c1dcf24b7edf58ede944bdf544f65d9c7b2a3757bb2228dfecfd07fec5
File Location(s)
No response
Proposal
While trying to create a state snapshot for the block
11_118_796
of the testnext, the utility was killed by the OS memory manager. It would be more convenient for the end user to limit the memory usage ofgear-replay-cli
when creating snapshots.