Adrian Revill wrote:
> Hi,
> 
> I am not sure if this is a bug, but would appreciate some advise.
> If i use a single cp to copy multiple files, then read the files in
> inode order. I see faster disk access times than if i copy each file
> individually.
> 
> cp -a /data/A /test/
> cp /data/A/* /test/B
> for f in `ls -U /data/A`; do cp /test/A/$f /test/C; done
> for f in `ls /data/A`; do cp /test/A/$f /test/D; done
> cp /test/D/* /test/E

For C and D you're using shell looping and starting a
cp process for each file which are both slow.
Instead try:

ls -U /data/A | xargs cp -t /test/C

cheers,
Pádraig.


_______________________________________________
Bug-coreutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to