Questions tagged [cache]

Uses of caching in Bitcoin related software projects (e.g. Bitcoin Core) and how they can be used to speed up builds

18 questions
16
votes
2 answers

How to run bitcoind in a low memory environment

I have a Raspberry Pi with 925 MB of memory. Bitcoin Core, operating as a full node, uses between 600-900 MB. How can I reduce bitcoind's memory usage? I tried setting maxmempool to its minimum allowed value, 5. What about maxreceivebuffer and…
Geremia
  • 4,469
  • 4
  • 37
  • 75
8
votes
1 answer

Is there a limit on the number of orphan transactions a node can cache?

I´m asking this because a possible attack would be to send an flooding number of orphan transactions, which will never be redeemed. Then clients would have to cache them, increasing storage requirements and reducing lookup time. This can lead to a…
SDL
  • 589
  • 1
  • 4
  • 8
7
votes
3 answers

Cache the Bitcoin Datadir to Improve Performance? Increase Bitcoin DB Cache Size?

Bitcoin is very disk-intensive and that slows it down. It seems to flush data to disk often thus preventing proper caching. With the datadir on a RAMdisk it is much faster. Is it possible to increase the db cache size or do something else to improve…
kermit
  • 2,009
  • 1
  • 17
  • 26
6
votes
1 answer

When the UTXO in the cache is full, what strategy is used to replace one UTXO with another in the cache?

The UTXO set is stored on the disk, but some UTXOs are also stored in the cache. When validating a transaction, you need to query the UTXO pointed to by the input of the transaction. First, you go to the cache to find it, if it's not found, you need…
GoneV
  • 175
  • 8
4
votes
1 answer

What is the optimal Bitcoin Core 0.17 settings in bitcoin.conf settings for running a full node with a very beefy system?

Is there an optimal bitcoin.conf setting file I should use when running a bitcoin core full node? I have a very beefy system with 16 core processor, 32gb ram, and nvme hard drive. I wan't to be able to dedicated as much resources as needed for the…
Patoshi パトシ
  • 10,956
  • 18
  • 80
  • 151
4
votes
1 answer

What are the maximum useful memory limits for a Bitcoind full node?

In contrast to this question about running Bitcoind in a low-memory environment, I have an opposite use-case. I want to run a bitcoind full node (no wallet) on a Linux server with lots of memory but not particularly fast disks. What are the maximum…
intelfx
  • 141
  • 2
3
votes
1 answer

What is in the Bitcoin Core LevelDB dbcache? Is it full records or metadata?

What is in the Bitcoin Core LevelDB dbcache? Is it full records or metadata? This question was asked on IRC by Anonymous.
3
votes
0 answers

Various caches are defined in the Bitcoin source code. What do these caches refer to?

The source code is as follows: //! -dbcache default (MiB) static const int64_t nDefaultDbCache = 450; //! -dbbatchsize default (bytes) static const int64_t nDefaultDbBatchSize = 16 << 20; //! max. -dbcache (MiB) static const int64_t…
GoneV
  • 175
  • 8
2
votes
1 answer

Bitcoind Node crashes after using -dbcache option

I've been trying to speed up my node sync by increasing the dbcache. However my node tends to crash overnight. My system is running ubuntu 18.04, 4GM of ram bitcoin core v0.18. I've tried bitcoind -dbcache=4000, also tried setting it to 3000 and…
2
votes
1 answer

What should I do about these messages in Bitcoin-core's debug-log?

Help, with bitcoin core : AFTER the Rescan : 1 - rescan 2 - response output, on the debug file out: 3 - FlushStateToDisk: write coins cache to disk (coins, kB) completed (s) , OK 4 - Imported mempool transactions from disk: X succeeded, X failed, X…
signbertrand
  • 1
  • 1
  • 6
2
votes
1 answer

What do these memory configurations in debug.log of BitCoin Core represent?

In the debug.log file of BitCoin Core, the cache configuration is described as follows. Cache configuration: Using 2.0 MiB for block index database Using 8.0 MiB for chain state database Using 441.0 MiB for in-memory UTXO set (plus up to 286.1…
GoneV
  • 175
  • 8
2
votes
1 answer

Are there any other ways of speeding up the building of Bitcoin Core PRs other than ccache?

I am already using ccache to speed up recompilation when building Bitcoin Core PRs. Are there any other ways of speeding up the process?
Michael Folkson
  • 14,337
  • 3
  • 11
  • 45
1
vote
0 answers

Which transactions get into blockreconstructionextratxn?

Bitcoin Core has a cache for transactions that aren't in the node's mempool but could be in other mempools, and so are cached for improved compact block reconstruction. This cache holds up to 100 transactions by default and this number can be…
Vojtěch Strnad
  • 5,623
  • 1
  • 8
  • 31
1
vote
1 answer

What is maxsigcachesize?

-maxsigcachesize= Limit sum of signature cache and script execution cache sizes to What is this? What is a sigcache? What happens if it is set low and Can it have a bad effect?
Ben Muircroft
  • 466
  • 3
  • 16
1
vote
1 answer

What is the data structure of the signature cache in Bitcoin?

There is a signature cache in Bitcoin, which is used to cache the result of signature verification to avoid extra signature verification. What data is stored in the signature cache? Is it stored in the form of key-value pairs or other forms? When a…
GoneV
  • 175
  • 8
1
2