> 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. I am confused about this in general with most filesystems. I thought that all filenames/foldernames etc were stored in one place and not spread out over the intire filesystem. It seem to me very strange that things like find/ls -R etc takes so so long just read/list files like this on any modern filesystem. > 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).
