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

Drop block_log from OS cache #2391

Open
theoreticalbts opened this issue Apr 27, 2018 · 2 comments
Open

Drop block_log from OS cache #2391

theoreticalbts opened this issue Apr 27, 2018 · 2 comments

Comments

@theoreticalbts
Copy link
Contributor

@theoreticalbts theoreticalbts commented Apr 27, 2018

I've gotten better performance with less memory by running the following shell script while replaying:

while :
do
   dd if=blockchain/block_log iflag=nocache count=0
   sleep 60
done

This command drops block_log from the OS cache, leaving more memory free for backing the blockchain database. It might also help while running live, but measurement would be needed to determine this.

@iamsmooth
Copy link

@iamsmooth iamsmooth commented Apr 27, 2018

Maybe be worth looking into fadvise and/or madvise.

@bobinson
Copy link

@bobinson bobinson commented Oct 12, 2018

thanks @theoreticalbts .. this is very effective

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants
You can’t perform that action at this time.