Disk-Performace issue?

Matthias Buelow mkb at incubus.de
Tue May 10 08:50:47 PDT 2005


Michael Schuh schrieb:

> I have tried out following commands to copy:
> tar -cf - . | ( cd <destdir>; tar -xf .) #the fastest and my lovely :-)
> find ./ -type f |cpio -pm <destdir> # half-performace as tar
> rsync -av <sourcedir>/ <destdir>/ # smarter then tar but bad performace
> 
> mv or any other are not testet while i surely run in to the "too many
> Arguments" Problem....

Can you try with pax? (pax -rw ...)  That doesn't involve pushing the 
stuff thru a pipe like with tar.  The cpio version is similar but it 
probably can be sped up a bit if you run the find once before, or feed 
find into a file and redirect input to cpio from that file (so that it 
doesn't have to seek all the time.)

mkb.


More information about the freebsd-stable mailing list