On Fri, Aug 7, 2009 at 2:11 AM, Henrik Johansen<henrik at scannet.dk> wrote:
> TCP window set to 1024000 :
> A simple cp yields ~82 mb/s
> A simple mv yields ~86 mb/s

Seems odd that there would be such a big difference.  Which cp are you
using?

With a 5 MB file copying from /tmp to /var/tmp I observe:

- /usr/bin/cp opens both files, mmap(s) the first one, then does
  a single write.
- /usr/gnu/bin/cp skips the mmap and loops through reading and
  writing 128 KB chunks.

-- 
Mike Gerdts
http://mgerdts.blogspot.com/

Reply via email to