Bitcoin is running 32 bit systems out of virtual memory #3324

issue gmaxwell opened this issue on November 28, 2013
  1. gmaxwell commented at 8:19 AM on November 28, 2013: contributor

    We're seeing multiple reports of bitcoind / bitcoin-qt running out of virtual memory on 32 bit systems. It may actually be nearly impossible now to sync the chain in an x86 system or at least require several crashes and restarts.

  2. laanwj commented at 8:47 AM on November 28, 2013: member

    Could be another effect of leveldb's liberal use of mmap.

  3. ghost commented at 12:58 AM on November 29, 2013: none

    Yep, I can confirm that. A full sync from block 1 took something ridiculous like 16GB of RAM on my bigger server, and to get to sync on a smaller 32bit VPS I had to use a kludgy workaround. Got there in the end, but it's not optimal by any stretch of the imagination.

    while true; do bitcoind; done
    

    Is there a reason a full sync takes so much more RAM than just running it normally?

  4. laanwj commented at 8:03 AM on May 4, 2014: member

    Anecdotally, this appears to be fixed with current master. I started syncing on a 32-bit 4-core ARM box yesterday - from the network, not from a bootstrap, and I'm now up to block 220888 without any abnormal memory usage.

      PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND                                                                                                                    
     9138 debian    20   0  578000 390180   1704 S   6.0 21.6 131:51.95 bitcoind           
    
  5. laanwj closed this on May 6, 2014

  6. Bushstar referenced this in commit e3db956835 on Apr 8, 2020
  7. MarcoFalke locked this on Sep 8, 2021

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-18 21:16 UTC

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