We have a large file system on which a full
du (disk usage) summary takes over two minutes. I'd like to find a way to speed up a disk usage summary for arbitrary directories on that file system.
For small branches I've noticed that
du results seem to be cached somehow, as repeat requests are much faster, but on large branches the speed up become negligible.
Is there a simple way of speeding up
du, or more aggressively caching results for branches that haven't been modified since the previous search?
Or is there an alternative command that can deliver disk usage summaries faster?