LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   cp performance (https://www.linuxquestions.org/questions/linux-general-1/cp-performance-901533/)

sand7000 09-07-2011 01:51 AM

cp performance
 
When I copy a file foo to foo2 I get a transfer rate of X. If I then copy foo to foo3 and simultaneously copy foo2 to foo4 the transfer rates drop to about X/2 for both processes. I have not even come close to maxing out the IOPS from my SAN so I feel it must have something to do with how cp is written. I have tried dd with similar results. I can see in top that I have two cp processes running but is it really two threads or are the two processes sharing some kind of resource back and fourth that slows both down? Is there anything I can do to increase this?

jv2112 09-07-2011 04:21 AM

If you are doing incremental back ups check out the man pages for rsync and cp. They both have options to incrementally back up.rsync is the more comprehensive tool. As a point of reference I have yet to see any performance issues using cp. However the more you copy the higher the impact.


man rsync

man cp


All times are GMT -5. The time now is 11:28 PM.