During initial sync, syncing becomes slow, cpu utilization is low and disk reads go high. Enabling debug=bench reveals the ‘connecting transactions’ step increases the time per tx an order of magnitude. Restarting bitcoind will fix the issure for awhile.
sudo tail -f --lines 1000 /mnt/hdd/bitcoin/debug.log | grep transactions
Proper behavior:
2021-04-18T13:41:15Z - Connect 3421 transactions: 384.88ms (0.113ms/tx, 0.074ms/txin) [742.16s (632.16ms/blk)] 2021-04-18T13:41:15Z - Connect 3022 transactions: 425.70ms (0.141ms/tx, 0.078ms/txin) [742.58s (631.99ms/blk)] 2021-04-18T13:41:16Z - Connect 2190 transactions: 505.57ms (0.231ms/tx, 0.096ms/txin) [743.09s (631.88ms/blk)] 2021-04-18T13:41:16Z - Connect 3271 transactions: 349.76ms (0.107ms/tx, 0.064ms/txin) [743.44s (631.64ms/blk)] 2021-04-18T13:41:18Z - Connect 2992 transactions: 409.37ms (0.137ms/tx, 0.069ms/txin) [743.85s (631.45ms/blk)] 2021-04-18T13:41:18Z - Connect 3210 transactions: 342.55ms (0.107ms/tx, 0.062ms/txin) [744.19s (631.20ms/blk)] 2021-04-18T13:41:19Z - Connect 2274 transactions: 690.01ms (0.303ms/tx, 0.119ms/txin) [744.88s (631.25ms/blk)] 2021-04-18T13:41:20Z - Connect 2469 transactions: 797.49ms (0.323ms/tx, 0.132ms/txin) [745.68s (631.39ms/blk)] 2021-04-18T13:41:20Z - Connect 3060 transactions: 337.70ms (0.110ms/tx, 0.060ms/txin) [746.01s (631.15ms/blk)] 2021-04-18T13:41:21Z - Connect 2276 transactions: 518.23ms (0.228ms/tx, 0.089ms/txin) [746.53s (631.05ms/blk)] 2021-04-18T13:41:21Z - Connect 2703 transactions: 355.08ms (0.131ms/tx, 0.056ms/txin) [746.89s (630.82ms/blk)] 2021-04-18T13:41:22Z - Connect 2885 transactions: 507.99ms (0.176ms/tx, 0.088ms/txin) [747.40s (630.71ms/blk)] 2021-04-18T13:41:23Z - Connect 3069 transactions: 528.49ms (0.172ms/tx, 0.096ms/txin) [747.92s (630.63ms/blk)] 2021-04-18T13:41:24Z - Connect 2423 transactions: 446.64ms (0.184ms/tx, 0.074ms/txin) [748.37s (630.47ms/blk)] 2021-04-18T13:41:25Z - Connect 2337 transactions: 535.49ms (0.229ms/tx, 0.093ms/txin) [748.91s (630.39ms/blk)] 2021-04-18T13:41:25Z - Connect 3121 transactions: 469.58ms (0.150ms/tx, 0.088ms/txin) [749.38s (630.26ms/blk)]
Improper behavior after some period of time: 2021-04-18T14:14:05Z - Connect 2420 transactions: 8300.56ms (3.430ms/tx, 1.496ms/txin) [2193.99s (738.22ms/blk)] 2021-04-18T14:14:11Z - Connect 2706 transactions: 6270.61ms (2.317ms/tx, 1.150ms/txin) [2200.26s (740.08ms/blk)] 2021-04-18T14:14:18Z - Connect 2839 transactions: 6572.64ms (2.315ms/tx, 1.221ms/txin) [2206.84s (742.04ms/blk)] 2021-04-18T14:14:24Z - Connect 2910 transactions: 5678.99ms (1.952ms/tx, 1.125ms/txin) [2212.51s (743.70ms/blk)] 2021-04-18T14:14:33Z - Connect 2583 transactions: 9436.20ms (3.653ms/tx, 1.444ms/txin) [2221.95s (746.62ms/blk)] 2021-04-18T14:14:56Z - Connect 521 transactions: 22822.31ms (43.805ms/tx, 2.779ms/txin) [2244.77s (754.04ms/blk)] 2021-04-18T14:15:06Z - Connect 1388 transactions: 9113.20ms (6.566ms/tx, 1.869ms/txin) [2253.89s (756.85ms/blk)] 2021-04-18T14:15:11Z - Connect 1984 transactions: 5505.65ms (2.775ms/tx, 1.154ms/txin) [2259.39s (758.44ms/blk)] 2021-04-18T14:15:16Z - Connect 1512 transactions: 4943.82ms (3.270ms/tx, 1.282ms/txin) [2264.34s (759.84ms/blk)] 2021-04-18T14:15:25Z - Connect 1936 transactions: 7980.00ms (4.122ms/tx, 1.363ms/txin) [2272.32s (762.27ms/blk)] 2021-04-18T14:15:32Z - Connect 2079 transactions: 7309.14ms (3.516ms/tx, 1.306ms/txin) [2279.62s (764.46ms/blk)] 2021-04-18T14:15:39Z - Connect 2272 transactions: 7069.39ms (3.112ms/tx, 1.204ms/txin) [2286.69s (766.58ms/blk)]
Restarting bitcoind will fix the issue and speed up sync times for awhile (anywhere from 1min to a few hours) before slowing down.
To reproduce I’m running raspiblitz 1.7RC2, fresh install. Sandisk 1TB ssd, Rasperry pi 4 model B, 4GB.