Gentoo Archives: gentoo-user

From: reader@×××××××.com
To: gentoo-user@l.g.o
Subject: [gentoo-user] Speed up `du'
Date: Sat, 24 May 2008 21:49:34
1 Is there any way to speed up the du command? I mean short of having
2 cron run it on target directories and store results. (not really
3 speeding up but at least not having to wait for a result)
5 I've seen various mention of du being slow but don't recall any
6 mentions of how to speed it up.
8 I use Reiserfs with default sizes. In some situations like a large
9 cache of nntp messages of several GB. I might wait 5-10 minutes or more
10 for du to get the size of the directory.
12 Are there other file systems that can return a result of `du' faster?
14 I'm curious how `df' computes sizes so much quicker. Even after
15 rm'ing a large amount of data... `df' sees the difference right away.
17 Or maybe there is some other tool or technique that can quickly tell
18 me the size of a directory or set of directories.
20 --
21 gentoo-user@l.g.o mailing list


Subject Author
Re: [gentoo-user] Speed up `du' Allan Gottlieb <gottlieb@×××.edu>
Re: [gentoo-user] Speed up `du' Willie Wong <wwong@×××××××××.EDU>