-
-
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 add horrendously slow #898
Comments
@anarcat question, was your |
On 2015-03-08 20:07:08, Jeromy Johnson wrote:
the file was on the USB drive, the .go-ipfs directory was on a SSD drive |
closing, ipfs add is like, fast and stuff now |
For me ipfs add is still pretty slow when there are lots of files. Long story short - I am trying to host an archlinux mirror on ipfs, and this involves having 60GB+ of packages. I cloned the repo with rsync, and it took ~3hrs, but ipfs add had been adding these files for three days now. It added first 10GBs fast, but now it seems like it takes progressively more time to add new files - I am now at 18GB, and it is still going really slow. One thing I've noticed is that it slowly takes more and more ram as time goes, my server has 1Gb ram, and it filled all the ram, now it is filling up swap space. I believe it is caused by a possible memory leak, since there are no files this large in the repo. |
|
@NeoTheFox Which version of ipfs are you using? Also, do you mind filing a new issue to track this? There a few thing to try (some of which @jbenet mentions above) |
@jbenet |
Yes, this time it consumes 288mb of ram, and does not grow. Looks likes it is fixed in 0.4.3, thanks for help! @whyrusleeping no need to open new issue, everything is resolved. |
@NeoTheFox Awesome!! It's really great to get confirmations that we're fixing these issues :) Please do report any other perf issues as you encounter them. |
Adding files is still slow for me. It happens in 8 MB chunks, then there is an 1-2 second pause. |
@Calmarius just to check, try |
@Calmarius I can confirm this behavior, I have the same, including with --local. Goes up to 8MB quickly, then pause for 1-2 seconds until the next 8MB. For example, when trying a 346MB file, it takes about 2min30sec to do 'ipfs --local add'. |
Ah, this is a disk-write problem. I am seeing a pause every 8MiB but more like a 200-500ms pause. This happens because we batch writes to the datastore in 8MiB chunks (to avoid lots of small writes). However, instead of flushing in the background, we pause on flush. Using the experimental badger datastore should reduce this pause but I'll see if I can make this a bit more parallel. |
1. Modern storage devices (i.e., SSDs) tend to be highly parallel. 2. Allows us to read and write at the same time (avoids pausing while flushing). fixes #898 (comment) License: MIT Signed-off-by: Steven Allen <[email protected]>
@skzap, @Calmarius if you have a moment, can you see if #4296 works better? |
(ipfs/kubo#4296) 1. Modern storage devices (i.e., SSDs) tend to be highly parallel. 2. Allows us to read and write at the same time (avoids pausing while flushing). fixes ipfs/kubo#898 (comment)
(ipfs/kubo#4296) 1. Modern storage devices (i.e., SSDs) tend to be highly parallel. 2. Allows us to read and write at the same time (avoids pausing while flushing). fixes ipfs/kubo#898 (comment)
1. Modern storage devices (i.e., SSDs) tend to be highly parallel. 2. Allows us to read and write at the same time (avoids pausing while flushing). fixes ipfs/kubo#898 (comment) License: MIT Signed-off-by: Steven Allen <[email protected]> This commit was moved from ipfs/go-merkledag@888d58c
forgot to file that one, it seems. one of the first thin i tried in ipfs was to add a 3.2GB file on my laptop. the setup was that I had a HDD external drive connected through a SATA USB2 enclosure, on my laptop running Debian Jessie amd64. The transfer took over an hour.
Doing the same copy with
rsync
takes a few minutes - i am able to get around 60-70MB/s transfer rates on this drive, it seems. Here's a copy of the IRC log for more information:I don't remember exactly how long it took to add the file, but I do remember the timer going up from 15 minutes to 30 min and fluctuating there fore a while. I believe it took around an hour.
Some references:
The text was updated successfully, but these errors were encountered: