Page MenuHomePhabricator

Increase LevelDB max_open_files unless on 32-bit Unix.
ClosedPublic

Authored by Fabien on Sep 5 2019, 09:21.

Details

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).

Diff Detail

Repository
rABC Bitcoin ABC
Branch
PR12495
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 7325
Build 12693: Bitcoin ABC Buildbot (legacy)
Build 12692: arc lint + arc unit

Event Timeline

Code seems good to me. Awaiting for the IBD result.

Fabien requested review of this revision.Sep 5 2019, 19:55

IBD was successful (w/o checkpoint). Duration was ~7h, against ~9h before the patch :)

This revision is now accepted and ready to land.Sep 5 2019, 19:55