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

Extreme resource usage & hanging #2407

Closed
NightRa opened this issue Feb 26, 2016 · 4 comments
Closed

Extreme resource usage & hanging #2407

NightRa opened this issue Feb 26, 2016 · 4 comments
Labels
exp/novice Someone with a little familiarity can pick up help wanted Seeking public contribution on this issue topic/repo Topic repo

Comments

@NightRa
Copy link

NightRa commented Feb 26, 2016

Using IPFS master, d48cd56
Context: I have about 7 GB of pinned files, about ~100kb each. (The ipfs blocks directory is 18GB in size), migrated from IPFS 0.3 to 0.4.

ipfs cat of a short text file I added just before doesn't seem to terminate after a few minutes of continuously reading ~400MB/s from an SSD where the IPFS blocks are stored.

I also noticed, that with smaller sized local ipfs block dirs (7 GB), freshly created on 0.4, ipfs cat does succeed, but after about ~5 seconds of full CPU usage. (it succeeds possibly because all the just added 7GB of data is cached in memory)

Seems like either a serious bug or a performance problem.

Question:
Does IPFS use a trie for accessing/indexing hashes?
If not, it definitely should.

@Kubuxu
Copy link
Member

Kubuxu commented Feb 26, 2016

Looks like I have the same problem with #2405.

I can confirm that ipfs cat [some hash] also hangs using massive amount of disk bandwidth.

@whyrusleeping whyrusleeping added this to the Resource Constraints milestone Aug 9, 2016
@whyrusleeping
Copy link
Member

This is caused by is checking to see if we should run a gc before each cat command. We should remove that call for now until we rethink how it should work.

@whyrusleeping whyrusleeping added help wanted Seeking public contribution on this issue topic/repo Topic repo exp/novice Someone with a little familiarity can pick up labels Aug 19, 2016
@alphaCTzo7G
Copy link

i was running the last example here: https://github.com/ipfs/examples/tree/master/examples/pinning

even though the file size is very small and has been garbage collected, ipfs cat just hangs for ever.. now its been ~30 mins..

@Stebalien
Copy link
Member

Closing due to age.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
exp/novice Someone with a little familiarity can pick up help wanted Seeking public contribution on this issue topic/repo Topic repo
Projects
None yet
Development

No branches or pull requests

5 participants