You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
consumes more and more memory until after about 30 minutes it takes up everything and the kernel kills it.
The size of all files in the leveldb database directory is ~ 46.2 GiB, so it does not feel very reasonable that it should blow up the 64 GB RAM of my Lenovo ThinkPad P14s. Maybe there is some memory that could be freed but isn't?
The question is, is it possible to read the input files bit by bit, and output as we go, or does it absolutely require reading everything into memory.
The text was updated successfully, but these errors were encountered:
cirosantilli
changed the title
Program consumes unbounded memory and blows up on Bitcoin blockchain transaction index
Program consumes all memory on DB of size comparable to RAM and blows up on Bitcoin blockchain transaction index
Feb 14, 2024
LevelDB Dumper version
e750a27
To Reproduce
To obtain the test data, you have to install Bitcoin and fetch a full node with txindex, which can take 24 hours, on Ubuntu 23.10:
Also the exact data layout is not deterministic, but hopefully that won't matter 🤞
After that the leveldb is located at
/snap/bitcoin-core/common/.bitcoin/indexes/txindex
and running:consumes more and more memory until after about 30 minutes it takes up everything and the kernel kills it.
The size of all files in the leveldb database directory is ~ 46.2 GiB, so it does not feel very reasonable that it should blow up the 64 GB RAM of my Lenovo ThinkPad P14s. Maybe there is some memory that could be freed but isn't?
The question is, is it possible to read the input files bit by bit, and output as we go, or does it absolutely require reading everything into memory.
The text was updated successfully, but these errors were encountered: