Skip to content

Conversation

@karalabe
Copy link
Member

@karalabe karalabe commented Feb 5, 2019

This is a partial solution for #16237 and #18984 so that archive mode does not hog the write cache memory allowance, since it doesn't keep dirty stuff in memory either way. Might as well use all that memory for the read cache.

It does not yet fully address the issue, since we also need a mechanism to move dirty stuff into the write cache on commit, so don't close the linked issues on merge.

Benchmark running on mon08/mon09. I'm not seeing any significant enough difference to care in either direction. Master seems a bit faster, but compaction dwarfs both runtimes.

@karalabe
Copy link
Member Author

karalabe commented Feb 7, 2019

@holiman Fixed the MiB, PTAL

Copy link
Contributor

@holiman holiman left a comment

Choose a reason for hiding this comment

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

LGTM

@karalabe karalabe merged commit 9fa4c3c into ethereum:master Feb 7, 2019
gzliudan added a commit to gzliudan/XDPoSChain that referenced this pull request Dec 28, 2024
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.

2 participants