Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 09 Feb 2010 23:24:48 +0000
From:      Vincent Hoffman <vince@unsane.co.uk>
To:        freebsd-questions@freebsd.org
Subject:   Re: sftp from home wireless box to work - get is much faster that put
Message-ID:  <4B71EEC0.1030201@unsane.co.uk>
In-Reply-To: <20100209231601.GF41851@mech-cluster241.men.bris.ac.uk>
References:  <20100209231601.GF41851@mech-cluster241.men.bris.ac.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
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. On the other hand
your office line is likely to be a symmetric connection so would have
the same speed in both directions.

Vince
>  
>
> many thanks
> anton
>
>   




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4B71EEC0.1030201>