-
-
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
Pin with ton of hashes won't start #4122
Comments
Interesting, we should look at what is holding it up. Does pinning just two hashes at a time work? I would be interested to see something like:
|
This appears to be doing a lot of dialing. |
Yeah, this looks like a dialing issue. I'm guessing it's a combination of:
That is, we're queuing up enough dials such that, by the time we start processing each dial, it has already expired. Using bitswap sessions for pin will significantly help but that's not a real fix. We should probably avoid infinitely queuing dials (have a finite dial queue and immediately reject or block all other dial requests). |
If anyone comes across this issue and wants a one-liner workaround, try |
was this one solved with 0.4.13 and just forgotten to close? Unfortunately the workaround does not really work for me and I am stumbling into this one often with my kontinuum ci |
@ligi how many hashes are you pinning at the same time? |
@ligi also, is this with or without the progress feature? |
@whyrusleeping no I do not use the progress feature - usure about the amount of hashes - I just try to pin my reports ..-) |
@whyrusleeping I think there might be a typo in that debug command. Based on this debug documentation it's singular "goroutine" instead of plural. The one in your post returns This is the one from the debug document that seems to work for me:
|
Whoops, my bad.
…On Sat, Nov 18, 2017, 4:25 PM John Reed ***@***.***> wrote:
@whyrusleeping <https://github.com/whyrusleeping> I think there might be
a typo in that debug command. Based on this debug documentation
<https://github.com/ipfs/go-ipfs/blob/master/docs/debug-guide.md> it's
singular "goroutine" instead of plural. The one in your post returns Unknown
profile: goroutines for me.
This is the one from the debug document that seems to work for me:
curl localhost:5001/debug/pprof/goroutine\?debug=2
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#4122 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ABL4HGsyYVaqOgQVv6kJJB3prqFn01xmks5s33VsgaJpZM4OumHC>
.
|
Yeah, some of my hanging tests are also pinning several things at the "same time" (sequentially but close in time) #4394 |
Actually, thinking about it it's the opposite, while we cluster-pin several things at the same time ipfs-cluster does not trigger 2 ipfs pin requests at the same time. We queue them and only trigger the new one when the previous one is finished. |
So, with #4403, this appears to work much better (secio/dialing change?). I now see my wantlist updating. However, IPFS appears to wait a while before actually pinning. Furthermore, it seems to start of very slowly, fetching each item on the list one-by-one in sequence (blocking until it finishes fetching each one). |
instead of resolving all the pins first and then pinning, pin after resolving each pin. This: 1. Avoids storing all the nodes in memory. 2. Avoids not showing pin progress. fixes #4122 License: MIT Signed-off-by: Steven Allen <steven@stebalien.com>
Version information: go-ipfs/0.4.10/4679f80
Type: bug
Severity: High
Description:
ipfs pin add
with a ton of hashes as input won't start doing anything. It'll just sit there, even with--progress
it'll never move beyond `Fetched/Processed 0 nodes.This applies to both
cat hashes.txt | xargs ipfs pin add
, as well ascat hashes.txt | ipfs pin add
.The list in question has 1199 items: pins.txt.
The text was updated successfully, but these errors were encountered: