Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
To: cygwin@cygwin.com
From: Thorsten Kampe <thorsten@thorstenkampe.de>
Subject: Re: rsync very slow, but not a network issue
Date: Tue, 13 Jul 2004 13:30:45 +0200
Lines: 29
Message-ID: <x567asez68wb.dlg@thorstenkampe.de>
References: <40F2CE78.7030109@alexisgallagher.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Complaints-To: usenet@sea.gmane.org
X-Gmane-NNTP-Posting-Host: isi-dial-142-106.isionline-dialin.de
User-Agent: 40tude_Dialog/2.0.12.1de

* Alexis Gallagher (2004-07-12 19:46 +0200)
> I am finding that rsync+ssh is giving extremely slow file transfers. But 
> this slowdown is hitting not when it needs to send data over the 
> network, but when it applies the rsync algorithm which is supposed to be 
> faster than sending all the data over the network. This is very puzzling.
> 
> For a benchmark, I tried transfering a 5.4 MB mp3 file three different 
> ways. Here were my results, as reported by 'scp -v' and 'rsync 
> --progress --stats':
> 
>     scp: 311000 B/s
>     rsync (file not there): 309000 B/s
>     rsync (file already there): 741 B/s
> 
> When the file is alredy there, rsync reports a speedup of about 70. 
> (When the file is not already there, the speed up is 1, of course.) I am 
> running rsync over ssh with pre-generated keys installed in my .ssh 
> directories.

rsync under Cygwin is extremly slow and CPU intensive. For example a
simple script that syncs my dot files from my local NetWare server
takes 1:10 minutes to run and eats about 60% CPU while on my Gentoo
box (which has exactly the same hardware) it takes 7 seconds and 2%
CPU.

Try disabling checksumming, zipping and transfer the whole file
('-W'). Try it without ssh.

Thorsten


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

