I'm running Bitcoin Core 0.21.0. I'm having severe performance issues, and I'm in the process of debugging this. With debug=1 I see the snippet shown below, with one notable line:
Connect 3053 transactions: 788138.97ms (258.152ms/tx, 143.038ms/txin) [788.14s (788138.97ms/blk)]
The machine has 10 Xeon cores, 128 GByte RAM, and a disk backend that is fast enough to serve data at multi-gigabit speed. I fail to understand why processing a single block is so extremely slow, and I'd appreciate any information you might have.
Which files are accessed for this? What kind of access pattern is used? Can I get further debug information?
This happened after a restart.
My config has checklevel=1, dbcache=8000 and maxmempool=1024.
2021-02-06T16:09:28Z - Load block from disk: 20.50ms [0.02s]
2021-02-06T16:09:28Z - Sanity checks: 2.12ms [0.00s (2.12ms/blk)]
2021-02-06T16:09:28Z - Fork checks: 1.54ms [0.00s (1.54ms/blk)]
2021-02-06T16:22:36Z - Connect 3053 transactions: 788138.97ms (258.152ms/tx, 143.038ms/txin) [788.14s (788138.97ms/blk)]
2021-02-06T16:22:36Z - Verify 5510 txins: 788139.47ms (143.038ms/txin) [788.14s (788139.47ms/blk)]
2021-02-06T16:22:36Z - Index writing: 0.04ms [0.00s (0.04ms/blk)]
2021-02-06T16:22:36Z - Callbacks: 0.01ms [0.00s (0.01ms/blk)]
2021-02-06T16:22:36Z BlockChecked: block hash=00000000000000000007a985c631c541c05fe7d953c7be8cda1895c4bb5b8ddf state=Valid
2021-02-06T16:22:36Z - Connect total: 788143.91ms [788.14s (788143.91ms/blk)]
2021-02-06T16:22:36Z - Flush: 8.38ms [0.01s (8.38ms/blk)]
2021-02-06T16:22:36Z - Writing chainstate: 0.05ms [0.00s (0.05ms/blk)]
2021-02-06T16:22:36Z Blockpolicy estimates updated by 0 of 0 block txs, since last block 0 of 0 tracked, mempool map size 0, max target 1008 from historical
2021-02-06T16:22:36Z UpdateTip: new best=00000000000000000007a985c631c541c05fe7d953c7be8cda1895c4bb5b8ddf height=669370 version=0x2dcc0000 log2_work=92.647517 tx=613502147 date='2021-02-06T11:26:13Z' progress=0.999898 cache=2.1MiB(15563txo)
2021-02-06T16:22:36Z - Connect postprocess: 13.99ms [0.01s (13.99ms/blk)]
2021-02-06T16:22:36Z - Connect block: 788186.84ms [788.19s (788186.84ms/blk)]
2021-02-06T16:22:36Z Enqueuing BlockConnected: block hash=00000000000000000007a985c631c541c05fe7d953c7be8cda1895c4bb5b8ddf block height=669370
2021-02-06T16:22:36Z Enqueuing UpdatedBlockTip: new block hash=00000000000000000007a985c631c541c05fe7d953c7be8cda1895c4bb5b8ddf fork block hash=000000000000000000018b3b66d231614b0d056bea2f4572f9cba2984e2e01d7 (in IBD=true)
2021-02-06T16:22:37Z - Load block from disk: 796.62ms [0.82s]
2021-02-06T16:22:37Z - Sanity checks: 2.48ms [0.00s (2.30ms/blk)]
2021-02-06T16:22:37Z - Fork checks: 0.07ms [0.00s (0.80ms/blk)]
EDIT: Next blocks:
2021-02-06T16:46:39Z - Connect 2465 transactions: 1442078.16ms (585.022ms/tx, 209.879ms/txin) [2230.22s (1115108.56ms/blk)]
2021-02-06T16:59:35Z - Connect 2564 transactions: 775256.86ms (302.362ms/tx, 129.924ms/txin) [3005.47s (1001824.66ms/blk)]
2021-02-06T17:24:20Z - Connect 1788 transactions: 1485121.29ms (830.605ms/tx, 208.321ms/txin) [4490.60s (1122648.82ms/blk)]