public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Local rsync disk to disk slow
@ 2018-11-04 12:59 Michael Lemke
  2018-11-04 14:21 ` Michael Lemke
  0 siblings, 1 reply; 2+ messages in thread
From: Michael Lemke @ 2018-11-04 12:59 UTC (permalink / raw)
  To: cygwin

I am copying a large directory tree from one internal disk to another USB 3 connected disk on the same computer with this rsync line:

rsync -ahPvzHA --delete /d/Images /q/

This copies files at a rate of 20MB/s. If I copy the same tree with Windows Explorer I get about 90MB/s.

Why is this? The chosen options don't seem to affect the result much.

I noticed three rsync processes one of which is CPU bound at a single core and therefore limiting the performance. This process reads the source files. The other two rsync processes don't consume a noticable amount of CPU time and one of them writes the destination files.

Are there any options to speed up the process? The reason I use rsync is to preserve hard links.

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Local rsync disk to disk slow
  2018-11-04 12:59 Local rsync disk to disk slow Michael Lemke
@ 2018-11-04 14:21 ` Michael Lemke
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Lemke @ 2018-11-04 14:21 UTC (permalink / raw)
  To: cygwin

On Sun, 04 Nov 2018 13:59:34 +0100, Michael Lemke <lemkemch@t-online.de> wrote:

> I am copying a large directory tree from one internal disk to another USB 3 connected disk on the same computer with this rsync line:
>
> rsync -ahPvzHA --delete /d/Images /q/
>
> This copies files at a rate of 20MB/s. If I copy the same tree with Windows Explorer I get about 90MB/s.

I take this back. Apparently, rsync ins't good at averaging transfer speeds. The files were too small for computing the real transfer rate. For files large enough to take longer to copy rsync computes 90MB/s as well.

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-11-04 14:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-04 12:59 Local rsync disk to disk slow Michael Lemke
2018-11-04 14:21 ` Michael Lemke

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).