-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
IPNS over PubSub Publish speed decreased #6291
Comments
So... I believe this is because libp2p/go-libp2p-peerstore#67 and the fact that we end up trying to dial all the peers. Before 0.4.20, we'd simply fail to dial this long tail of peers as the addresses will have expired by the time we get to them. Hm. This could also explain some of the "too many connections" issues we've been seeing. Could I get a full trace? |
@Stebalien: The state during my <10 minute run (collected with Happy to provide more logging info if you give me some direction. Also, I suspect you are correct and that this is related to dialing/searching the DHT (and continuously searching for the long tail of peers) since I created a new repo and copied the Identity (private key + PeerID) into my existing .ipfs repo (but left everything else alone) and the timing is much better now. Happy to post the slow/unlucky private key if that helps. |
Yeah, it's stuck in the query runner. I'm going to hide tomorrow and finish a PR. |
Fixed. We've moved bootstrapping into the background. |
Version information:
Baseline: go-ipfs version: 0.4.19-
Repo version: 7
System version: amd64/windows
Golang version: go1.11.5
Slow: go-ipfs version: 0.4.20-
Repo version: 7
System version: amd64/windows
Golang version: go1.12.4
Still Slow: go-ipfs version: 0.4.21-dev-648fa3aac
Repo version: 7
System version: amd64/windows
Golang version: go1.12
Type:
bug
Description:
I ran the following commands on Windows 10 in a cmd shell:
start /B ipfs daemon --enable-namesys-pubsub
ipfs name publish QmY4mFqm81hECYm6Z2NHzHtJwGaQB53sAQfhRmRPuN6keV
(for those interested
ipfs cat QmY4mFqm81hECYm6Z2NHzHtJwGaQB53sAQfhRmRPuN6keV
outputsabc123
)When I run the above two commands in 0.4.19 it's DHT levels of slow (about a minute), 0.4.20+ it's tremendously slow (many minutes or I just give up and kill the process). After about 77 minutes of hanging (according to
curl 'localhost:5001/debug/pprof/goroutine?debug=2'
) it looks like the issue might be related to waiting to complete bootstrapping PubSub over the DHT. Below is some output from a non-modified 0.4.20 binary, happy to provide more upon request.The text was updated successfully, but these errors were encountered: