HomePhabricator

Increase LevelDB max_open_files unless on 32-bit Unix.

Description

Increase LevelDB max_open_files unless on 32-bit Unix.

Summary:

This change significantly increases IBD performance by increasing the
amount of the UTXO index that can remain in memory. To ensure this
doesn't cause problems in the future, a static_assert on the LevelDB
version has been added, which must be updated by anyone upgrading
LevelDB.

Backport of core PR12495
https://github.com/bitcoin/bitcoin/pull/12495/files

Test Plan: Run IBD on CI (and expect a significant performace improvement).

Reviewers: #bitcoin_abc, deadalnix, fpelliccioni

Reviewed By: fpelliccioni

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

Details

Provenance
Evan Klitzke <evan@eklitzke.org>Authored on Feb 20 2018, 22:25
FabienCommitted on Sep 6 2019, 07:59
FabienPushed on Sep 6 2019, 07:59
Reviewer
fpelliccioni
Differential Revision
D4000: Increase LevelDB max_open_files unless on 32-bit Unix.
Parents
rABC267b632ca393: Remove extra newline that leads to linter warning
Branches
Unknown
Tags
Unknown