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

ipfs add -r <dir> (298GB average<10MB) spends over 3 days #6029

Closed
hoogw opened this issue Feb 27, 2019 · 7 comments
Closed

ipfs add -r <dir> (298GB average<10MB) spends over 3 days #6029

hoogw opened this issue Feb 27, 2019 · 7 comments

Comments

@hoogw
Copy link

hoogw commented Feb 27, 2019

ipfs add -r

289GB( average file size < 10MB)
after add 70GB, speed noticeable slowing down,
spend 3 days to reach 200GB,

CPU and memory usage is under 20%, bottleneck is not CPU and RAM.

I have not try --pin=false

ipfs add (by default --pin = true)

To turn off pin to speed up,

D:\test>ipfs add --pin=false IMG_1427.jpg
4.18 MiB / 4.18 MiB [========================================================================================] 100.00%�added QmekTFtiQqrhiqms8FXZqPD1TfMc9kQUoNF8WVUNBGJF8h IMG_1427.jpg
4.18 MiB / 4.18 MiB [========================================================================================] 100.00%
D:\test>

Can you advise how to speed up?

@bonedaddy
Copy link
Contributor

Can you give your system specs (RPM of hard drive, CPU, Memory) and IPFS version?

@hoogw
Copy link
Author

hoogw commented Feb 27, 2019

@postables CPU and memory, disk usage way low from full.
Bottleneck is not CPU and RAM, RPM.

@Stebalien
Copy link
Member

@hoogw could you this without running the daemon? That is, turn off the daemon and then run ipfs add -r .... That will rule out some potential issues.

@hoogw
Copy link
Author

hoogw commented Feb 28, 2019

@Stebalien ok, I will try and let you know test result.

@hoogw
Copy link
Author

hoogw commented Feb 28, 2019

@Stebalien Yes. if turn off daemon, I can see visible, noticeble, speed up, a lot faster.
Looks like --pin=false does not helps, but turn off daemon will definitely speed up and back to normal speed it should be.

@hoogw hoogw closed this as completed Feb 28, 2019
@hoogw
Copy link
Author

hoogw commented Feb 28, 2019

If turn off daemon, with full speed, the CPU usage is only 19%, very low, memory is only 15MB, with FULL speed. Disk read/sec 9MB/s , Disk write/sec 1MB/s. It is way low than the computer potential. Is there any other bottle neck to stop it run full computing potential?

@Stebalien
Copy link
Member

I can see visible, noticeble, speed up, a lot faster.
Looks like --pin=false does not helps, but turn off daemon will definitely speed up and back to normal speed it should be.

Yeah, this looks like sending out provider records is slowing things down (probably). We're working on that in #5870.

It is way low than the computer potential. Is there any other bottle neck to stop it run full computing potential?

How many cores do you have? We don't currently parallelize hashing on add. We're probably also doing a bunch of small writes (assuming you're using the default datastore type) so we're context switches (syscalls) are probably costing us a lot of performance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants