4 ms·
One thing ncdu does not improve on over du | sort is that it still needs to scan the full directory structure before even displaying any result. I would like s
by kqr 4y ago
One thing ncdu does not improve on over du | sort is that it still needs to scan the full directory structure before even displaying any result.
I would like something that starts estimating sizes immediately, and then refines those estimations as it is able to spend more time. I tried writing it myself, but I ended up not quite knowing how to go about it, because just getting the count of files in a directory takes about as long as getting the total size of said files...
(Another problem is that file sizes are notoriously fat tailed, so any estimation based on a subset of files is likely to underestimate the true size. Maybe by looking at how the estimation grows with more data one can infer something about the tail exponent and use that to de-bias the estimation?)
- bageljr 4y agobtdu
- codetrotter 4y agoThis one? https://github.com/CyberShadow/btdu https://github.com/CyberShadow/btdu Seems to be specific for btrfs
- kqr 4y agoInteresting idea to use physical addresses on the file system as the sample space, though!
- Izkata 4y agoIf you're okay with a GUI, I think that's how baobab works. I think it only shows the intermediate updates if the disk is slow enough, as I remember it doing that in the past, but checking my SSD just now it didn't.
- kqr 4y agoI will take a look. Thanks!