Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: AlexGR on March 18, 2016, 10:03:31 PM



Title: -dbcache not working as intended in core 0.12 (?)
Post by: AlexGR on March 18, 2016, 10:03:31 PM
Launching 0.12 bitcoin-qt in linux with -dbcache=2048

SSD = around 1-2m to see wallet
mechanical = around 4-5m to see wallet

...similar very slow times with -dbcache=1024.

Launching 0.12 bitcoin-qt with  -dbcache=0

SSD and mechanical = 10-15 secs at most.

-dbcache=0 works way faster, betraying some kind of problem in the way caching works.


Title: Re: -dbcache not working as intended in core 0.12 (?)
Post by: gmaxwell on March 18, 2016, 10:18:13 PM
-dbcache=0 works way faster, betraying some kind of problem in the way caching works.
No, it's way faster because the initial startup tests are truncated when the cache is too small. (Because they undo a bunch of blocks in memory and redo them... they need enough memory to hold that intermediate state)


Title: Re: -dbcache not working as intended in core 0.12 (?)
Post by: AlexGR on March 18, 2016, 10:30:16 PM
Aha... Makes sense then...