Increase default -dbcache #17200

issue GChuf openend this issue on October 20, 2019
  1. GChuf commented at 11:47 am on October 20, 2019: contributor

    I’ve noticed the default -dbcache used to be 600MiB, but got lowered to 450 in March 2017: https://github.com/bitcoin/bitcoin/commit/f33afd3b2be1bcabeb10168a53835359c9ff4a3e

    We know this negatively affects performance on initial sync (and reindexing) and the average user most likely doesn’t know they should increase the dbcache to make the sync faster.

    I think it is safe to assume that the (advanced) users who have low amounts of RAM on their machines know about dbcache flag and how to use it appropriately. It would, therefore, be best to increase the default dbcache.

    I’m not sure about the other parameters in txdb.h, but the blockchain is getting bigger every day and our computers are getting more and more capable. I’d like to propose to increase the dbcache size to 600MiB or higher, and if applicable, change the other parameters appropriately.

    You should also take a look at this comment and the PR which decreased the memory usage by 9% - so bumping the dbcache to at least 500 would be more than appropriate. Another PR by @martinus which also decreases mem usage: https://github.com/bitcoin/bitcoin/pull/16801

  2. GChuf added the label Feature on Oct 20, 2019
  3. emilengler commented at 1:00 pm on October 20, 2019: contributor
    See #10133
  4. fanquake removed the label Feature on Oct 20, 2019
  5. fanquake added the label Resource usage on Oct 20, 2019
  6. MarcoFalke commented at 5:18 pm on April 26, 2020: member

    The feature request didn’t seem to attract much attention in the past. Also, the issue seems not important enough right now to keep it sitting around idle in the list of open issues.

    Closing due to lack of interest. Pull requests with improvements are always welcome.

  7. MarcoFalke closed this on Apr 26, 2020

  8. DrahtBot locked this on Feb 15, 2022

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-11-21 12:12 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me