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

Provide takes ~2.5 minutes #287

Closed
Stebalien opened this issue Mar 7, 2019 · 3 comments
Closed

Provide takes ~2.5 minutes #287

Stebalien opened this issue Mar 7, 2019 · 3 comments

Comments

@Stebalien
Copy link
Member

Worse, it provides in two steps:

  1. It finds the closest peers.
  2. It finally sends out provider records.

That means one can't even reasonably set a timeout to perform a best-effort provide. We should probably set a shorter timeout on GetClosestPeers, reserving ~5s to send actual provide records.

(I mean, we should try to make GetClosestPeers faster but...)

@anacrolix anacrolix self-assigned this Mar 8, 2019
@anacrolix anacrolix removed their assignment Aug 5, 2019
@tobowers
Copy link

This is interesting. We have a 7 node system doing 75k block adds (quickly) and it's using up all the CPU on most of the nodes. It seems this dies down after the 36h timeout, but continues on until then unbounded. Could this be the reason?

@Stebalien
Copy link
Member Author

Stebalien commented Oct 22, 2019 via email

@Stebalien
Copy link
Member Author

It's now taking 30-50 seconds and keeping this issue open likely isn't going to help.

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

3 participants