Fast du

Charles Swiger cswiger at mac.com
Wed May 17 15:17:58 PDT 2006


On May 17, 2006, at 5:35 PM, Albert Shih wrote:
> I search some technics/command/anything can make very fast «du»  
> especialy
> when in the file system there are lot of lot of hard-link.

Set up a swap-based RAM disk and run your du commands against files  
on that...?

Otherwise, if you have to do the work against stuff on a hard drive,  
try to do single-threaded I/O while doing these du's to avoid  
thrashing the drive heads around more than needed.

-- 
-Chuck



More information about the freebsd-questions mailing list