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

datastore: ipfs repo stat seems to hang with large repos on Windows #3609

Open
mateon1 opened this issue Jan 18, 2017 · 2 comments
Open

datastore: ipfs repo stat seems to hang with large repos on Windows #3609

mateon1 opened this issue Jan 18, 2017 · 2 comments
Labels
topic/repo Topic repo topic/windows Windows specific

Comments

@mateon1
Copy link
Contributor

mateon1 commented Jan 18, 2017

Version information:

0.4.5-dev, 56058c1 with HAMT sharding merged in (unrelated)

Type: bug

Priority: P2

Description:

On a repo with 312695 objects, on a HDD formatted with NTFS, ipfs repo stat seems to take forever to finish.
I assume it's doing something inefficient when checking for filesizes, as ipfs refs local finishes in 18 seconds.

C:\Users\matin>sh -c "time ipfs repo stat"

Error: request canceled

real    12m41.638s
user    0m0.000s
sys     0m0.031s
C:\Users\matin>sh -c "time ipfs refs local | wc"
 312695  312695 14728215

real    0m18.022s
user    0m0.375s
sys     0m0.952s

(on a side note, refs local also seems slightly slow, but that might just be an IO bound)

@whyrusleeping whyrusleeping added the topic/windows Windows specific label Jan 24, 2017
@whyrusleeping whyrusleeping added the topic/repo Topic repo label Sep 2, 2017
@hsanjuan
Copy link
Contributor

I think this was fixed at some point by including repo-size estimations in flatfs. Please try upgrading.

@trendsetter37
Copy link

trendsetter37 commented Aug 11, 2023

I am getting this behavior as well on ipfs version 0.21.0. I currently have terabytes in a local private cluster so while it's technically usable i'm interesting on how this is suppose to scale

Update: I cancelled this after about 30 minutes

  % sh -c "time ipfs repo stat -H"                                                                                                                                    !10237
^C
Error: context canceled

real    29m0.527s
user    0m0.287s
sys     0m0.103s

@Jorropo Jorropo reopened this Aug 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic/repo Topic repo topic/windows Windows specific
Projects
None yet
Development

No branches or pull requests

5 participants