3

I just installed Bitcoin Core on a new machine and completed IBD using dbcache ~24000. It took ~40 mins to shutdown for the first time (after running for about 24 hours and completing the IBD). I'm wondering if this is normal, or if it could be related to either IBD or having such a high dbcache?

Shutdown logs for reference:

2022-08-05T22:39:55Z tor: Thread interrupt
2022-08-05T22:39:55Z addcon thread exit
2022-08-05T22:39:55Z torcontrol thread exit
2022-08-05T22:39:55Z opencon thread exit
2022-08-05T22:39:55Z Shutdown: In progress...
2022-08-05T22:39:55Z msghand thread exit
2022-08-05T22:39:55Z net thread exit
2022-08-05T22:39:55Z DumpAnchors: Flush 2 outbound block-relay-only peer addresses to anchors.dat started
2022-08-05T22:39:55Z DumpAnchors: Flush 2 outbound block-relay-only peer addresses to anchors.dat completed (0.02s)
2022-08-05T22:39:55Z scheduler thread exit
2022-08-05T22:39:55Z Writing 0 unbroadcast transactions to disk.
2022-08-05T22:39:56Z Dumped mempool: 0.003643s to copy, 0.227474s to dump

<hangs here for 40 mins>

2022-08-05T23:18:52Z Shutdown: done

1 Answer 1

6

At shutdown, the chainstate cache has to be flushed to disk. The bigger you set dbcache, the bigger this cache can grow, and the longer it can take to flush it.

2
  • it would be good to have a descriptive log entry for this before the expected hang, so users have an idea that its to be expected
    – mikew
    Aug 31, 2022 at 6:05
  • Oops just seeing this now - thanks for the explanation Pieter. Sep 30, 2022 at 18:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.