Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Bound memory usage when recovering from a crash during chainstate write #10693
Comments
laanwj
added the
UTXO Db and Indexes
label
Jun 28, 2017
|
So in general this problem is not solvable: LevelDB will use a large amount of memory when reading in a large number of changes that were just written before shutdown. In particular a flush with large -dbcache may result in a temporary spike at startup afterwards when LevelDB converts the log into a table. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
sdaftuar commentedJun 28, 2017
Now that #10148 is merged, it's possible to exceed configured memory limits for the utxo cache while recovering in
ReplayBlocks. We should fix this, perhaps by making the recovery itself use non-atomic writes: #10148 (comment)