Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't keep all blocks in memory #675

Closed
theoreticalbts opened this issue Dec 7, 2016 · 4 comments
Closed

Don't keep all blocks in memory #675

theoreticalbts opened this issue Dec 7, 2016 · 4 comments
Assignees

Comments

@theoreticalbts
Copy link
Contributor

Currently a fair amount of the memory usage of steemd is due to keeping all the blocks in memory. It's fairly low-hanging fruit to take this data out of memory and read from the block log instead.

@mvandeberg mvandeberg self-assigned this Dec 7, 2016
@mvandeberg
Copy link
Contributor

mvandeberg commented Dec 7, 2016

I have been working on this a little, but if you have some extra time to get it done, go for it.

@BhuzOr
Copy link

BhuzOr commented Dec 7, 2016

#650

@arhag
Copy link
Contributor

arhag commented Dec 8, 2016

Why are you storing blocks into ChainBase at all in the first place? Even if you remove that data later, that is still causing additional pages of memory to become dirty unnecessarily, which may lead to additional IO. There is no need for the packed_block field in the block_stats_object. Blocks newer than the last irreversible block can be retrieved from _fork_db in the fetch_block_by_number function.

mvandeberg pushed a commit that referenced this issue Dec 12, 2016
mvandeberg pushed a commit that referenced this issue Dec 13, 2016
mvandeberg pushed a commit that referenced this issue Dec 13, 2016
@mvandeberg
Copy link
Contributor

Merged

mvandeberg pushed a commit that referenced this issue Dec 15, 2016
mvandeberg pushed a commit that referenced this issue Dec 16, 2016
On1x pushed a commit to VIZ-Blockchain/viz-cpp-node that referenced this issue May 28, 2018
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

No branches or pull requests

4 participants