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

progressive slowdown "ipfs add file" #6136

Closed
fann95 opened this issue Mar 27, 2019 · 2 comments
Closed

progressive slowdown "ipfs add file" #6136

fann95 opened this issue Mar 27, 2019 · 2 comments
Labels
status/duplicate This issue or pull request already exists

Comments

@fann95
Copy link

fann95 commented Mar 27, 2019

Version information:

go-ipfs version: 0.4.19-
Repo version: 7
System version: amd64/linux
Golang version: go1.11.5

Type: bug

Description:

I tested adding a large number of files and noticed a progressive slowdown in this operation.
my script added about 20,000 files in the first hour of work
in the next 4 hours, only 50,000 and the speed continued to decrease

#!/bin/bash

for (( i=1; i <= 500000; i++ ))
do
dd if=/dev/urandom of=${i}random bs=$(shuf -i 5000-20000 -n 1) count=1
ipfs add --pin ${i}random
done

If you add a file using API, the speed decrease even faster.
if there are 150,000 pined files, the recording speed for API is about 10 seconds, if there are no pined files, then the speed is 0.1 seconds
there is a progressive slowdown

@leerspace
Copy link
Contributor

I think this is a duplicate of #5221

@hsanjuan hsanjuan added the status/duplicate This issue or pull request already exists label Mar 27, 2019
@hsanjuan
Copy link
Contributor

@fann95 please follow up on #5221. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status/duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

3 participants