Bound memory usage when recovering from a crash during chainstate write #10693

issue sdaftuar opened this issue on June 28, 2017
  1. sdaftuar commented at 5:12 PM on June 28, 2017: member

    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)

  2. laanwj added the label UTXO Db and Indexes on Jun 28, 2017
  3. sipa commented at 10:31 PM on June 28, 2017: member

    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.

  4. sdaftuar closed this on Jul 25, 2022

  5. bitcoin locked this on Jul 25, 2023

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-14 12:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me