-
Notifications
You must be signed in to change notification settings - Fork 108
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
dua takes too much time and it constantly hangs #116
Comments
Thanks for posting and for the reproduction video. It's very strange to see Maybe it's something else and git clone https://github.com/Byron/jwalk
cd jwalk
cargo run --release --example du -- / Note that my fork of If it works, it's probably Please let me know what you find. |
Thanks for trying the experiment. This shows that despite being slow, it does complete. It's hard to imagine why dua wouldn't complete or take so long. I believe These spurious errors about the OS being busy seem interesting, as I think they might be worth a retry something Could you also run Let me CC @jessegrosjean to add more experience to this thread. |
This is really interesting, as Probably that's an important hint about what's going on here. My hypothesis is that even if only using a single thread it will still get stuck, what happens if Lastly, if that indeed also gets stuck, maybe it's a problem with traversing special files in Thanks for your help |
I just tried
|
Perfect, this truly means it's unrelated to threading (as
|
|
The difference in file size is due to the way it counts with This outcome probably means that merely traversing the directory structure and querying metadata is causing the hangs. Can you run I'd expect the |
On linux there are a few directories which shouldn't be traversed by default as they may cause hangs and blocking. With the new argument it's possible to specify absolute directories to not enter during traversal, with a default set to avoid problematic directories on linux right away.
A new release is also available which mirrors the same logic as Does that work better? |
Great to hear. Maybe one more thing: if |
I tried
BTW gdu runs faster, but it is OK, I don't use this function frequently.
dua vs gdu:
|
Is there some kind of log that I can check to let me know why dua takes a very long time to complete (most of the time, I just kill it since I don't know when it will finish)
but gdu always only takes a few seconds.
Honestly, most of the time dua will just hang, like 8 out of 10 times(across several months, using different dua versions), I can not move my mouse in it, can not use Ctrl-c to quit it. I've tried using
-x
or not using it.FYI:
ArchLinux
dua 2.14.7 install from Arch repo
gdu 5.12.1 install using
go install
The text was updated successfully, but these errors were encountered: