Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
from

Conversation

Projects
None yet
3 participants
Member

luke-jr commented Nov 11, 2017

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

Alternative to #11359

During IBD, when doing pruning, prune 10% extra to avoid pruning agai…
…n soon after

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

@fanquake fanquake added the Validation label Nov 11, 2017

+ // values, we should not prune too rapidly.
+ // So when pruning in IBD, increase the buffer a bit to avoid a re-prune too soon.
+ if (IsInitialBlockDownload()) {
+ // Since this is only relevant during IBD, we use a fixed 10%
@promag

promag Nov 15, 2017

Contributor

BTW, why 10%, in IBD could be even more no?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment