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

Filter by
Sorted by
Tagged with
2 votes
1 answer
128 views

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 ...
user avatar
1 vote
1 answer
28 views

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?
user avatar
0 votes
1 answer
50 views

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 ...
user avatar
  • 135
1 vote
1 answer
92 views

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 ...
user avatar
  • 135
1 vote
0 answers
25 views

What is the relationship between LevelDB's cache (default 8MB) and Bitcoin's UTXO cache?

Please correct me if I am wrong. Bitcoin uses levelDB to store UTXO set. LevelDB has a default 8MB block cache, and the Bitcoin also has a dbcache(default 450MB). What is the relationship between the ...
user avatar
  • 135
3 votes
0 answers
94 views

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; //...
user avatar
  • 135
5 votes
1 answer
223 views

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 ...
user avatar
  • 135
2 votes
1 answer
38 views

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?
user avatar
2 votes
1 answer
243 views

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.
user avatar
0 votes
2 answers
179 views

What is ccache? When should I use it when building and reviewing Bitcoin Core PRs?

What is ccache? Can you provide some guidance on when to use it for building Bitcoin Core PRs and how to use it?
user avatar
2 votes
1 answer
3k views

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 -...
user avatar
4 votes
1 answer
762 views

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 ...
user avatar
13 votes
2 answers
8k views

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 ...
user avatar
  • 4,307
7 votes
3 answers
6k views

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 ...
user avatar
  • 1,999
8 votes
1 answer
211 views

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 ...
user avatar
  • 569