user87162: 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



user208: 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.

87162: <p>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?</p>
<p>Shutdown logs for reference:</p>
<pre><code>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

&lt;hangs here for 40 mins&gt;

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

</code></pre>
 208: <p>At shutdown, the chainstate cache has to be flushed to disk. The bigger you set <code>dbcache</code>, the bigger this cache can grow, and the longer it can take to flush it.</p>
