[Bug]: Bitcoind is slow #4
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
IBD is taking forever
Steps to Reproduce
start bitcoin knots and analyze the IPD
Expected Behavior
Should be relatively fast
Actual Behavior
The logs confirm three overlapping problems.
No parallel validation (
-par=0not set)The logs show
txindex is catching up on block notificationsrepeatedly. The node is validating blocks sequentially on only one core instead of using all cores in parallel. On a slow dual-core laptop this is catastrophic.cache=2016.5MiB- the database cache is only ~2 GiBiB. According to thedeploy-bitcoin-knots.shscript, it should be set to-dbcache=4096(4 GiB). The config isn't being applied correctly.txindexis enabled. The deploy script usestxindex=1instead ofprune=550. This doubles the write workload during IBD as every index entry is stored.Hardware limitations
This is a Lenovo ThinkPad X250 with an Intel Core i7-5600U (2-core / 4-thread laptop CPU). Combined with a SATA SSD (not NVMe), the I/O-bound single-threaded validation is the bottleneck.
Solutions (in order of impact)
-dbcache=4096— doubles cache from 2GB to 4GBprune=550instead oftxindex=1— halves IBD write volumeArchipelago Version
1.7.67
Hardware
x86_64 (Intel/AMD)
Relevant Logs
No response
Screenshots
No response
Believe this is fixes, need to confirm with testing
Verified fixed in code: bitcoind/knots launch args now set
-dbcache=4096and-par=0(use all cores) —core/archipelago/src/api/rpc/package/config.rs(~L692-693, documented L677-680). Parallel validation + larger UTXO cache address the slow-IBD root causes. Closing as implemented.