From owner-freebsd-questions@FreeBSD.ORG Tue Feb 9 23:38:27 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 73B54106568D for ; Tue, 9 Feb 2010 23:38:27 +0000 (UTC) (envelope-from mexas@bristol.ac.uk) Received: from dirj.bris.ac.uk (dirj.bris.ac.uk [137.222.10.78]) by mx1.freebsd.org (Postfix) with ESMTP id 319BF8FC19 for ; Tue, 9 Feb 2010 23:38:27 +0000 (UTC) Received: from ncsc.bris.ac.uk ([137.222.10.41]) by dirj.bris.ac.uk with esmtp (Exim 4.69) (envelope-from ) id 1Nezf0-0000Xr-Ec; Tue, 09 Feb 2010 23:38:26 +0000 Received: from mech-cluster241.men.bris.ac.uk ([137.222.187.241]) by ncsc.bris.ac.uk with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.67) (envelope-from ) id 1Nezf0-0002g9-8c; Tue, 09 Feb 2010 23:38:26 +0000 Received: from mech-cluster241.men.bris.ac.uk (localhost [127.0.0.1]) by mech-cluster241.men.bris.ac.uk (8.14.3/8.14.3) with ESMTP id o19NcQRG043427; Tue, 9 Feb 2010 23:38:26 GMT (envelope-from mexas@bristol.ac.uk) Received: (from mexas@localhost) by mech-cluster241.men.bris.ac.uk (8.14.3/8.14.3/Submit) id o19NcPJj043426; Tue, 9 Feb 2010 23:38:25 GMT (envelope-from mexas@bristol.ac.uk) X-Authentication-Warning: mech-cluster241.men.bris.ac.uk: mexas set sender to mexas@bristol.ac.uk using -f Date: Tue, 9 Feb 2010 23:38:25 +0000 From: Anton Shterenlikht To: Vincent Hoffman Message-ID: <20100209233825.GG41851@mech-cluster241.men.bris.ac.uk> References: <20100209231601.GF41851@mech-cluster241.men.bris.ac.uk> <4B71EEC0.1030201@unsane.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4B71EEC0.1030201@unsane.co.uk> User-Agent: Mutt/1.5.20 (2009-06-14) Cc: freebsd-questions@freebsd.org Subject: Re: sftp from home wireless box to work - get is much faster that put X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Feb 2010 23:38:27 -0000 On Tue, Feb 09, 2010 at 11:24:48PM +0000, Vincent Hoffman wrote: > On 09/02/2010 23:16, Anton Shterenlikht wrote: > > I was trying to measure the file transfer > > rates between my home and my office boxes. > > Both are 9.0-current. > > > > At home I've wireless, TL-WN851N, using ath(4) driver. > > > > I used sftp(1), which I launch from the home box. > > > > I made files sized 10MB, 100MB and 1GB via > > > > dd if=/dev/zero of=/home/mexas/1gb bs=1m count=10 > > dd if=/dev/zero of=/home/mexas/1gb bs=1m count=100 > > dd if=/dev/zero of=/home/mexas/1gb bs=1m count=1024 > > > > respectively. > > > > What I discovered is put(mput) is much slower than get(mget). > > > > Here is a sample of timings: > > > > 10MB file > > ######### > > > > sftp> put 1gb > > Uploading 1gb to /usr/home/mexas/1gb > > 1gb 100% 10MB 59.2KB/s 02:53 > > sftp> mget 1gb > > Fetching /usr/home/mexas/1gb to 1gb > > /usr/home/mexas/1gb 100% 10MB 330.3KB/s 00:31 > > > > 100MB file > > ########## > > > > sftp> mput 1gb > > Uploading 1gb to /usr/home/mexas/1gb > > 1gb 100% 100MB 58.6KB/s 29:07 > > sftp> mget 1gb > > Fetching /usr/home/mexas/1gb to 1gb > > /usr/home/mexas/1gb 100% 100MB 1.0MB/s 01:41 > > sftp> mget 1gb > > Fetching /usr/home/mexas/1gb to 1gb > > /usr/home/mexas/1gb 100% 100MB 930.9KB/s 01:50 > > > > 1GB file > > ######## > > > > sftp> mget 1gb > > Fetching /usr/home/mexas/1gb to 1gb > > /usr/home/mexas/1gb 100% 1024MB 796.8KB/s 21:56 > > sftp> mput 1gb > > Uploading 1gb to /usr/home/mexas/1gb > > 1gb 7% 79MB 56.3KB/s 4:46:28 ETA > > > > (I interrupted the last transfer, just too long to wait). > > > > So putting (sending) a file is about 5-17 times faster > > than getting (receiving) it. > > > > What is the reason behind this? > Just a thought, Since you are in the uk, do you have ADSL at home? If so > the upload on ADSL is much lower than the download. yes, probably. It's a Virgin broadband. I guess it's ADSL. Anyway, that's just what I wanted to hear. many thanks anton -- Anton Shterenlikht Room 2.6, Queen's Building Mech Eng Dept Bristol University University Walk, Bristol BS8 1TR, UK Tel: +44 (0)117 331 5944 Fax: +44 (0)117 929 4423