Page MenuHomePhabricator

[IBD] coins: increase default UTXO flush batch size to 32 MiB
ClosedPublic

Authored by PiRK on Sun, Nov 23, 08:20.

Details

Summary

The constant for the default batch size is moved to kernel/caches.h to consolidate kernel-related cache constants.

The default database write batch size is increased from 16 MiB to 32 MiB to improve I/O efficiency and performance during UTXO flushes, particularly during Initial Block Download and assumeutxo loads.

On systems with slower I/O, a larger batch size reduces overhead from numerous small writes. Measurements show this change provides a modest performance improvement on most hardware during a critical section, with a minimal peak memory increase (approx. 75 MiB on default settings).
This is a backport of core#31645

Test Plan

ninja all check-all

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable