Re: Measure "cp" Speed?
Sjoerd Hardeman wrote:
Stackpole, Chris schreef:
His exact question was "how do I measure the speed while I am doing cp
I took the 'while' to mean 'as the cp command runs' aka progress during
the transfer. As for benchmarking, when rsync finishes it prints out
sent 17580260 bytes received 50 bytes 11720206.67 bytes/sec
total size is 17577963 speedup is 1.00
That is perfect information for benchmarking. It gives how much was
transferred and at what speed in bytes/second.
For benchmarking, I'd use hdparm -tT /dev/yourdevice. Gives you both
cached and uncached performance.
If you want to know how long you still have to be patient, use the
suggested rsync -P
Sorry to Sjoerd for sending this directly, but here is my .02$:
That [hdparm test] is a sequential read, and basically you will never
get this performance real-world. I think the 'time cp' answer is
probably the best. I often rely on hdparm just to get a quick feel for
how fast a system could be in fairy-tale land, but I know not to believe
in easter bunnies.