Am Sonntag, den 15.08.2004, 23:16 +0200 schrieb Felix E. Klee:

> I'd like to store the directory structure of a partition formatted as
> ReiserFS into a file. Currently, I use
> 
>     find / >file
> 
> This process takes approximately 5 minutes (the result is 26MB of
> data). Are there any alternative *quicker* ways to do this?

The main problem is that find only uses one thread. This thread only
reads one directory at once and as a result of that you'll get a lot of
seeks.

This can usually be improved *a lot* by doing a massively multi-threaded
search with a lot of threads trying to read a lot of directories at
once. The disk io scheduler will then linearize all the outstanding read
requests.

I've done something similar to speed up a diff -r using a shell script
(not for find but for reading the file content that should be compared).

Attachment: signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil

Reply via email to