delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/09/19/08:06:50

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.6 required=5.0 tests=AWL,BAYES_05,RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
Message-ID: <4E77303D.8000007@cs.umass.edu>
Date: Mon, 19 Sep 2011 08:06:21 -0400
From: Eliot Moss <moss AT cs DOT umass DOT edu>
Reply-To: moss AT cs DOT umass DOT edu
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:6.0.2) Gecko/20110902 Thunderbird/6.0.2
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: File download taking longer time with SFTP( CYGWIN server)
References: <32494037 DOT post AT talk DOT nabble DOT com>
In-Reply-To: <32494037.post@talk.nabble.com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On 9/19/2011 6:59 AM, suresh_gaddam wrote:
>
> Hi All,
> We have an java application (which resides in Linux ) connects to client’s
> windows server and download files from there. Recently we upgraded our mode
> of transfer from FTP to SFTP. They installed CYGWIN SFTP server in windows
> machine. With SFTP its taking much longer time to download the files
> compared to FTP.
> PFB details
> -	Total no of files = 1,22,000
> -	Total load size = 58 GB
> -	Time taken with SFTP( CYGWIN server) = 28 hrs
> -	Time taken with FTP = 4hrs
> We did multiple rounds of testing and its taking much longer time with SFTP
> ( incomparable to FTP).
>
> Does SFTP with CYGWIN server takes longer to download the files? Are there
> any performance issues with CYGWIN? Is there anything which can be done in
> code perspective to download files faster ? , I don’t think so because the
> same code with FTP mode downloaded files much faster.

I am not sure if this would explain it, but sftp is probably
using encryption. This makes the data "on the wire" appear
random. Random data are not as compressible. You might want
to try schemes that compress and then encrypt. rsync can do
that (with appropriate flags).

What kind of link are the data flowing over? This issue of
compressibility would be particularly noticeable on dialup
though your rate sounds a lot higher than that. Roughly,
sftp gets 2Gb/hour, about 35Mb/min (say), which is over
500Kb/sec, while ftp is getting 7 times as much. Typical
text and program data might well show that degree of
compression (already compressed data such as typical
images and videos would not).

Regards -- Eliot Moss

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019