From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28891 invoked by alias); 27 Sep 2003 18:22:36 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 28880 invoked from network); 27 Sep 2003 18:22:35 -0000 Received: from unknown (HELO slinky.cs.nyu.edu) (128.122.20.14) by sources.redhat.com with SMTP; 27 Sep 2003 18:22:35 -0000 Received: from slinky.cs.nyu.edu (localhost [127.0.0.1]) by slinky.cs.nyu.edu (8.12.9+Sun/8.12.9) with ESMTP id h8RIMZmL018169; Sat, 27 Sep 2003 14:22:35 -0400 (EDT) Received: from localhost (pechtcha@localhost) by slinky.cs.nyu.edu (8.12.9+Sun/8.12.2/Submit) with ESMTP id h8RIMZIa018166; Sat, 27 Sep 2003 14:22:35 -0400 (EDT) X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs Date: Sat, 27 Sep 2003 19:08:00 -0000 From: Igor Pechtchanski Reply-To: cygwin@cygwin.com To: Andrew DeFaria cc: cygwin@cygwin.com Subject: Re: ftp way quicker than cp? In-Reply-To: Message-ID: References: Importance: Normal MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-SW-Source: 2003-09/txt/msg01741.txt.bz2 On Sat, 27 Sep 2003, Andrew DeFaria wrote: > Ftp is orders of magnitude quicker than cp. Here's the situation. > > File to copy: 25 Meg. > From location: Santa Clara, USA. > To location: Shanghai, China > Network connection: Not really sure but both Santa Clara and Shanghai > are in the same NT domain. > > I tried the following: > > $ time ncftpput sons-cc Release 2.2.0.7.images.tar.gz > 2.2.0.7.images.tar.gz: 25.99 MB 81.70 > kB/s > > real 5m34.187s > user 0m0.327s > sys 0m1.124s > $ time cp 2.2.0.7.images.tar.gz //sons-shanghai/users/ftp/release > > real 133m39.290s > user 0m1.186s > sys 0m7.406s > > Why such a huge difference! Had I thought that such a huge difference > would have occurred I would have switched to ftp long ago! You are not really measuring the time needed for "cp". You are measuring the overhead of SMB share access. Using ftp bypasses all this mechanism completely, and sends files directly over the network. Try comparing the time it takes to copy the file in Windows Explorer to the SMB share and to an FTP location -- you'll probably see the same results. IOW, this is not really Cygwin-related. Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_ pechtcha@cs.nyu.edu ZZZzz /,`.-'`' -. ;-;;,_ igor@watson.ibm.com |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D. '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! "I have since come to realize that being between your mentor and his route to the bathroom is a major career booster." -- Patrick Naughton -- 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/