-
-
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
ipfs pin rm
_very_ slow & cpu intensive
#4717
Comments
Update: after removing all pinned MHs IPFS is using about 5% cpu while adding 2-3 MH/s, much more reasonable. |
Yeah, it's the same bug. Any modification to a large pin set will take ages. |
Did you hit unpinned CIDs on your way by any chance? This currently causes VERY expensive computation. |
@Voker57 - do you mean were my pinned CIDs linked to unpinned CIDs? When I |
@XertroV no I meant were you calling pin rm on on objects that are not pinned. Looks like that shouldn't have happened in your case. |
Closing in favor of #5221. |
Version information:
Type:
Bug
Description:
I had about 57k pinned items (all small files) totaling about 30MB.
Due to #4673 I figured I'd try and remove them since I don't actually need them pinned all the time (lots of testing atm).
Currently running a script to get all pinned MHs and call
ipfs.pin.rm
viajs-ipfs-api
on them. It's running at 5-10 MH/s and IPFS is using 120-150% CPU (modern macbook pro 13", retrieved CPU % viatop
)The
node
process is using about 1% CPU.I'd be nice to have a
ipfs pin rm --all
feature as well.Took a profile while the
pin rm
ing was going on too:QmcVtZCuvMk1dynoF9pZ5cpNi5ausm4XWRG7MGkZTm94ZQ
The text was updated successfully, but these errors were encountered: