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

eth/downloader: don't process trie nodes on the queue thread #14449

Closed
wants to merge 1 commit into from

Conversation

karalabe
Copy link
Member

@karalabe karalabe commented May 9, 2017

Fixes a downloader regression introduced in f1069a3 which placed trie node processing into the downloader thread (opposed to running in a dedicated thread as before). On an HDD machine, that process method call alone can take up to 50s when the database grows and a compaction is running. This caused all pending state retrievals to time out (since the goroutine accepting them was actually busy importing stuff). Hard timeouts caused peers drops, which made fast sync impossible on HDD.

Edit: this doesn't solve it yet, as the lock prevents the downloader from requesting new states to download, causing the same slowdown/staleness false positives.

@karalabe
Copy link
Member Author

This will be superseeded by #14460

@karalabe karalabe closed this May 11, 2017
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.

None yet

1 participant