0.14 ignoring dbcache #9967

issue mb300sd opened this issue on March 9, 2017
  1. mb300sd commented at 11:35 PM on March 9, 2017: contributor

    Describe the issue

    0.14 is ignoring dbcache, cache grows until out of memory

    Can you reliably reproduce the issue?

    yes

    If so, please list the steps to reproduce below:

    1. Do initial sync with bitcoind -dbcache=1000
    2. tail -f debug.log during sync

    Expected behaviour

    cache size should stop at 1000mb

    Actual behaviour

    bitcoind runs out of memory

    Machine specs:

    • OS: Debian Stretch
    • CPU: N3050
    • RAM: 4GB
    • Disk size: 256GB
    • Disk Type (HD/SDD): SSD
  2. sipa commented at 11:40 PM on March 9, 2017: member

    Since 0.14, the dbcache will borrow unused memory space from the mempool, so it can grow to 1.3 GB in your case (assuming you didn't increase the mempool). Also, bitcoind can use a few hundred MB of RAM in addition to the mempool and dbcache.

    How do you observe that it grows beyond 1000mb?

  3. mb300sd commented at 11:42 PM on March 9, 2017: contributor

    No longer have the debug.log, but I was staring at tail -f and it kept rising above the dbcache setting until it ran out of memory. Lost about 4 hours of syncing.

  4. mb300sd commented at 11:48 PM on March 9, 2017: contributor

    I'll see if it goes much above 1300. I kept stopping and restarting it to save progress.

  5. mb300sd commented at 11:59 PM on March 9, 2017: contributor

    Never mind, looks like a non issue.

  6. mb300sd closed this on Mar 9, 2017

  7. MarcoFalke locked this on Sep 8, 2021
Contributors

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: 2026-04-29 03:15 UTC

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