Skip to content

Conversation

@ping-ke
Copy link
Contributor

@ping-ke ping-ke commented Jan 26, 2026

This PR adds an answer to the question raised in the ethresear.ch thread about whether Geth’s default 2 GB DB cache is sufficient.
In practice, yes — especially under Geth’s default path‑based state scheme: path‑based key locality significantly improves cache efficiency compared to the hash‑based model used in the article.
Benchmarks show ~0.34 disk I/Os per Get with a 2 GB cache on path‑based storage vs ~1–2 I/Os under hash‑based storage, meaning the default cache size is adequate for today’s workloads.

@ping-ke ping-ke requested review from dajuguan, qizhou and qzhodl January 26, 2026 17:06
Copy link

@qizhou qizhou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Please paste the results also in ethresearch

doc/paper.md Outdated

Would you say that geth’s default db cache configuration (i.e. 2GB) is sufficient for the time being?

### Answer

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Maybe make the answer a #### subsection to make the Q&A structure clearer?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants