[Bug]: Bitcoind is slow #4
Closed
opened 2026-05-19 04:22:56 +00:00 by ssmithx
·
2 comments
No Branch/Tag Specified
main
pr/feat/first-install-owner-network-20261112
pr/demo-intro-ux-polish
docs/security-audit-2.0.3-alpha
docs/fips-compute-market-proposal
feat/routstr-fips-llama
docs/ui-uat-pr-rule
fix/routstr-xcashu-change
fix/lifecycle-lock-wait
fix/btcpay-db-password
feat/podsteadr-app
feat/qortal-app
fix/quadlet-iec-memory-limits
feat/podsteadr-app-package
arm64-pi-test
feat/nostr-vpn-seller-app
work/terminal-developer-spec-20261009
feat/justworks-integration-review
conduit-market-archyapp
fix/gitea-portainer-20260930
fix/app-install-lifecycle-20260930
fix/filebrowser-purchase-filing
fix/ecash-paid-download-v2-keyset
fix/paid-content-payment-not-lost
fix/mint-error-detail-swallowed
investigate/framework-lnd-startup
fix/minibits-already-redeemed
cuprate-fixes
feature/dojobay-app
fix/bitcoin-core-tor-service-name
docs/openwrt-gateway-setup
cuprate-cpu-fix
fix/cuprate-explicit-logging-levels
companion/session-2026-08-31
companion/0.5.28-deploy-handoff
companion/0.5.28-ship
companion/0.5.28
app-bumps-mirror-pending
cuprate-archyapp
docs/todo-list
companion/0.5.27-version-meta
companion/0.5.27-ship
companion/0.5.27-clipboard-qr-restart
ux-at-last
fix/mesh-send-content-inline-federation-fallback
cashu-error-messages
gsd/phase-13-aiui-functional-conversational-node-control-and-content-surf
rotate-release-root
chore/aiui-monorepo-migration
wip/phase-13-p13-02
wip/phase-13-p13-01
fix/bitcoin-conf-conflict-crash-loop
demo-build
archy-hwconfig
openwrt-enhancements
a3-10-endpoint-fallback
public-prelaunch
release/1.7.115-prep
fix/web-listener-ipv6
fips-companion-5g-hardening
fix/connection-accept-deadlock
fix/demo-images-path-filter
fix/companion-autologin-replay-intro
networking-profits-dashboard
identities-mobile-polish
companion-qr-scan-fix
companion-qr-pairing
intro-reliability-video-perf
login-bg-continuity
audio-bottom-bar
demo-intro-every-visit
intro-entrance-fixes
cloud-feedback-demo-content
cloud-tabs-search
ark-wallet-ui-demo
demo-nginx-app-assets
demo-ui-fixes
ark-wallet-barkd
v2.1.23
v2.1.22
v2.1.21
v2.1.2-beta
v1.9.1-alpha
v1.9.0-alpha
Labels
Clear labels
companion-agent
queued
roadmap
waiting-external
Companion-app agent's handover list (node-side parts tracked separately)
Triaged, next in this session's queue after current release work
Feature/effort item, deliberately unscheduled — needs scoping + a slot, not a fix today
Waiting on a person outside this session (tester, operator)
No labels
Milestone
No items
No Milestone
Projects
Clear projects
No projects
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: lfg2025/archy#4
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
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.