Bitcoin Forum
September 02, 2026, 06:29:31 PM *
News: Latest Bitcoin Core release: 31.1 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: How often should cache flushes happen during synchronization with this setup?  (Read 66 times)
takuma sato (OP)
Hero Member
*****
Offline

Activity: 857
Merit: 808



View Profile
September 01, 2026, 07:18:52 PM
 #1

So im doing a backup of a full node from one drive into another. I installed Bitcoin Core 29.4 and copied the blocks folder. I like to create a brand new chainstate folder so I left it verifying all the blocks. It was fast until around 64%, block heights around august 2023 or so, which I reckon started going slower, but when I came back it was stuck with the following message:

Code:
2026-09-01T18:25:15Z Cache size (17469837200) exceeds total space (17469383424)
2026-09-01T18:25:16Z [warning] Flushing large (16 GiB) UTXO set to disk, it may take several minutes

My bitcoin.conf settings:
Code:
dbcache=16384
par=16

It's a 32GB system with an AMD CPU 32 threads and im using an 8TB HDD.

Does anyone know how often should this happen? Because after 64%, it took around an hour, and then at around 74%, it's happening again. So is it going to take an hour every 10% stuck with that message?

Btw, I would like to request to devs a sort of progress % being prompted by bitcoind so I can see something on the debug.log instead of the "[warning] Flushing large (16 GiB) UTXO set to disk, it may take several minutes" message as some people may run out of patience and close Bitcoin Core in this state which is probably not a good idea. There is no indication of anything going on on the GUI as well.

▄███████████████████████▄
█████████████████████████
██████████▀▄▄▄▀██████████
███████████████████████
████████▀▀▄▄▄▀█████████
███████░░░█████░░░███████
██████░░░▐█████▌░░░██████
██████░░░▐█████▌░░░██████
██████░░░▐█████▌░░░██████
███████░░░█████░░░███████
████████▄▄▀▀▀▄█████████
█████████████████████████
▀███████████████████████▀
 
 Lock.com 
█▀▀











█▄▄
▀▀█











▄▄█
█▀▀











█▄▄
▀▀█











▄▄█
 
  Open  code isolated Crypto Wallet     Sign Up    
BitMaxz
Legendary
*
Offline

Activity: 4088
Merit: 3681


♻️ Automatic Exchange


View Profile WWW
September 01, 2026, 11:39:24 PM
 #2

It seems that Bitcoin Core paused or hang because it exceeds the total space of "17469383424" it's beyond your setup of "dbcache=16384".

If you kill the process, the chainstate will likely be corrupted; however, if you do not change this setting, we cannot guarantee that the process will complete.
So, if you want to fix this case for me, you can try killing the process and remove this dbcache then try to run it again.

Or I think increase the dbcache just don't put it to maximum. You might try increasing it above between 20000 to 25000 something.

░░░░▄▄████████████▄
▄████████████████▀
▄████████████████▀▄█▄
▄██████▀▀░░▄███▀▄████▄
▄██████▀░░░▄███▀▀██████▄
██████▀░░▄████▄░░░▀██████
██████░░▀▀▀▀▄▄▄▄░░██████
██████▄░░░▀████▀░░▄██████
▀██████▄▄███▀░░░▄██████▀
▀████▀▄████░░▄▄███████▀
▀█▀▄████████████████▀
▄████████████████▀
▀████████████▀▀░░░░
 
 CCECASH 
nc50lc
Legendary
*
Offline

Activity: 3248
Merit: 9069


Self-proclaimed Genius


View Profile
Today at 04:23:26 AM
 #3

It's a 32GB system with an AMD CPU 32 threads and im using an 8TB HDD.
This is expected because it's flushing large amount of data to an HDD.
If it's an SSD, it would've been faster.

Changing your database cache size will just make that quite faster but in shorter intervals.
Do that if that's what you prefer but I'd personally just let it finish reindex.

LoyceV
Legendary
*
Offline

Activity: 4144
Merit: 22597


Thick-Skinned Gang Leader and Golden Feather 2021


View Profile WWW
Today at 05:54:21 AM
Last edit: Today at 07:50:02 AM by LoyceV
 #4

Does anyone know how often should this happen? Because after 64%, it took around an hour, and then at around 74%, it's happening again. So is it going to take an hour every 10% stuck with that message?
As far as I know, cache is only flushed when it's full. So with sufficient RAM, it would only be written to disk when you shut down Bitcoin Core. That's one of the reasons I reduce dbcache after the IBD is done.
Based on nc50lc's post, this wasn't correct. I've just never noticed it without shutting down.

¡uʍop ǝpᴉsdn pɐǝɥ ɹnoʎ ɥʇᴉʍ ʎuunɟ ʞool no⅄
ABCbits
Legendary
*
Offline

Activity: 3710
Merit: 10352



View Profile
Today at 07:14:38 AM
 #5

My bitcoin.conf settings:
Code:
dbcache=16384
par=16

It's a 32GB system with an AMD CPU 32 threads and im using an 8TB HDD.

Does anyone know how often should this happen? Because after 64%, it took around an hour, and then at around 74%, it's happening again. So is it going to take an hour every 10% stuck with that message?

Have you consider to increase the dbcache to eliminate or reduce the flush frequency? Unless you run one or more other RAM intensive apps, there should be lots of free/unused RAM.

P.S. I expect most member here wouldn't estimate the flush frequency, without also knowing usually size of UTXO after deserialized and cache behavior.

nc50lc
Legendary
*
Offline

Activity: 3248
Merit: 9069


Self-proclaimed Genius


View Profile
Today at 07:46:23 AM
Merited by ABCbits (3), Cricktor (1)
 #6

Unfortunately, even with enough dbcache, Core will still flush its database to disk approximately every hour (50~70min).
So that in case of a crash where it lost all the data that's only kept in memory, the version about an hour ago is already flashed to disk.

Ref:

Its speed can't be improved since it's being written to an HDD.

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!