TeachMeBitcoin

The Performance Tuning: LevelDB write buffers and compaction

From TeachMeBitcoin, the free encyclopedia Reading time: 2 min

The Performance Tuning: LevelDB write buffers and compaction

In our next 1,500 words, we look at the Optimization of the Disk. How do you make your node process 10,000 transactions per second? You tune the LevelDB Internal Settings.

1. The -dbcache Allocation

This is the "Working RAM" of your database.

2. The Write Buffer (Memtable)

LevelDB uses a "Write Buffer" to group changes.

3. The Compaction Triggers

When LevelDB has too many small files, it "Merged" them.


☕ Help support TeachMeBitcoin

TeachMeBitcoin is an ad-free, open-source educational repository curated by a passionate team of Bitcoin researchers and educators for public benefit. If you found our articles helpful, please consider supporting our hosting and ongoing content updates with a clean donation:

Ethereum: 0x578417C51783663D8A6A811B3544E1f779D39A85
Bitcoin: bc1q77k9e95rn669kpzyjr8ke9w95zhk7pa5s63qzz
Solana: 4ycT2ayqeMucixj3wS8Ay8Tq9NRDYRPKYbj3UGESyQ4J
Address copied to clipboard!