HomePhabricator

During IBD, when doing pruning, prune 10% extra to avoid pruning again soon…

Description

During IBD, when doing pruning, prune 10% extra to avoid pruning again soon after

Summary:
Pruning forces a chainstate flush, which can defeat the dbcache and harm performance significantly.

Backport of Bitcoin Core PR11658
https://github.com/bitcoin/bitcoin/pull/11658

Test Plan:

make check

Reviewers: Fabien, #bitcoin_abc, deadalnix, jasonbcox

Reviewed By: #bitcoin_abc, jasonbcox

Differential Revision: https://reviews.bitcoinabc.org/D3986

Details

Provenance
Luke Dashjr <luke-jr+git@utopios.org>Authored on Sep 5 2019, 19:19
fpelliccioniCommitted on Sep 5 2019, 19:19
FabienPushed on Sep 6 2019, 15:28
Reviewer
Restricted Project
Differential Revision
D3986: During IBD, when doing pruning, prune 10% extra to avoid pruning again soon after
Parents
rSTAGINGec813bc91426: Merge #13081: wallet: Add compile time checking for cs_wallet runtime locking…
Branches
Unknown
Tags
Unknown