This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

very poor cygwin scp performance in some situations


I've done quite a bit of digging and not found any real answers
on why cygwin's scp performance is so poor.

So I decided to do some tests, here the results:
== machines ==
* P4 2.8Ghz
* 1GB RAM
* IDE disk
* Running nothing but these test

=== test1 ===
* FreeBSD 5.4-RELEASE
* OpenSSH_3.8.1p1 FreeBSD-20040419, OpenSSL 0.9.7e 25 Oct 2004

=== test2 ===
* cygwin 1.5.4
* OpenSSH_3.7.1p2, SSH protocols 1.5/2.0, OpenSSL 0.9.7c 30 Sep 2003

=== test3 ===
* cygwin 1.5.19
* OpenSSH_4.3p2, OpenSSL 0.9.8a 11 Oct 2005

=== test4 ===
* FreeBSD 6.0-RELEASE
* OpenSSH_4.2p1 FreeBSD-20050903, OpenSSL 0.9.7e-p1 25 Oct 2004

== tests ==
=== test1 -> test2 ( from test1 ) ===
* scp cygwin.zip dedicated25:/tmp/ * cygwin.zip 192MB 3.2MB/s 01:00


=== test1 -> test3 ( from test1 ) ===
* scp cygwin.zip test3:/tmp/ * cygwin.zip 192MB 6.4MB/s 00:30


=== test1 -> test4 ( from test1 ) ===
* scp cygwin.zip dev4:/tmp/
* cygwin.zip 192MB 10.7MB/s 00:18


=== test3 -> test1 ( from test1 ) ===
* scp test3:/tmp/cygwin.zip /tmp
* cygwin.zip 192MB 723.4KB/s 04:32


=== test2 -> test1 ( from test1 ) ===
* scp test2:/tmp/cygwin.zip /tmp
* cygwin.zip 192MB 705.3KB/s 04:39


=== test4 -> test1 ( from test1 ) ===
* scp cygwin.zip dev4:/tmp/
* cygwin.zip 192MB 11.3MB/s 00:17


=== test1 -> test2 ( from test2 ) ===
* scp test1:/tmp/cygwin.zip /tmp
* cygwin.zip 192MB   4.6MB/s   00:38

=== test2 -> test3 ( from test2 ) ===
* scp /tmp/cygwin.zip test3:/tmp/
* cygwin.zip 192MB   3.1MB/s   00:58

=== test1 -> test3 ( from test3 ) ===
* scp test1:/tmp/cygwin.zip /tmp
* cygwin.zip 192MB   6.4MB/s   00:30

=== test3 -> test2 ( from test3 ) ===
* scp /tmp/cygwin.zip test2:/tmp/
* cygwin.zip 192MB   3.1MB/s   01:02

=== test3 -> test1 ( from test3 ) ===
* scp /tmp/cygwin.zip test1:/tmp/
* cygwin.zip 192MB   1.5MB/s   02:10

As you can see copying from a FreeBSD box -> cygwin box the
performance is not to bad at ~6MB/s. Its not as good as it could
be 10 -> 11MB/s as shown by the FreeBSD -> FreeBSD test
but it's respectable.

The problem is with the cygwin -> FreeBSD test. When instigated
from the FreeBSD box where the rate drops to ~ 700KB/s which
is terrible. Instigating the copy from the cygwin box doubles this
but IMO this still produces an unacceptably low rate being almost
8 times slower than the real life achievable result.

So what could be the reason for this terrible performance?

Notes:
* All transfers where done with aes128-cbc hmac-md5
* CPU usage was barely measurable on the tests producing low rates

Steve


================================================
This e.mail is private and confidential between Multiplay (UK) Ltd. and the person or entity to whom it is addressed. In the event of misdirection, the recipient is prohibited from using, copying, printing or otherwise disseminating it or any information contained in it.


In the event of misdirection, illegible or incomplete transmission please telephone (023) 8024 3137
or return the E.mail to postmaster@multiplay.co.uk.


-- 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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]