Bitcoin Forum
July 04, 2024, 03:35:35 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: -dbcache not working as intended in core 0.12 (?)  (Read 787 times)
AlexGR (OP)
Legendary
*
Offline Offline

Activity: 1708
Merit: 1049



View Profile
March 18, 2016, 10:03:31 PM
Last edit: March 22, 2016, 12:31:51 PM by AlexGR
Merited by ABCbits (2)
 #1

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.
gmaxwell
Moderator
Legendary
*
expert
Offline Offline

Activity: 4200
Merit: 8442



View Profile WWW
March 18, 2016, 10:18:13 PM
Last edit: March 20, 2016, 02:38:56 AM by gmaxwell
Merited by ABCbits (3)
 #2

-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)
AlexGR (OP)
Legendary
*
Offline Offline

Activity: 1708
Merit: 1049



View Profile
March 18, 2016, 10:30:16 PM
 #3

Aha... Makes sense then...
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!