Re: scp speed (push v/s pull)
- From: Harold Weissman <HaroldW22@xxxxxxxxxxx>
- Date: Tue, 23 Jan 2007 22:40:20 GMT
On Tue, 23 Jan 2007 10:01:31 -0800, nash_rack1 wrote:
I've noticed that scp file transfer speeds are significantly different
depending on whether you're pushing a file to a remote machine or
pulling a file from a remote machine.
When I push a file to another machine, I get 800 kB/s speed. When I
pull the same file from another machine, I get 8500 kB/s. Why is the
speed so different? Does it depend on some network setting or is it
something inherent in the protocol?
A possibility might be a difference in internal buffer size between
client and server. When you push a file, it is the SSH client that
underlies the scp command the one that decides how many bytes will be sent
in one go, whereas when you pull a file it is the SSH server who decides
that.
I have played with implementations in which the client in box A would
push files in 8 KB blocks, whereas the server in box B would send them in
16 KB blocks. In such a situation, all other things (including networking)
being equal, pulling a file from B to A was much faster than pushing it
from A to B. I am pretty sure it was not one order of magnitude faster
though, and therefore it is probably not the cause of what are you are
observing. But, I thought you might like to keep it in mind.
.
- References:
- scp speed (push v/s pull)
- From: nash_rack1
- scp speed (push v/s pull)
- Prev by Date: Re: scp speed (push v/s pull)
- Next by Date: SSH for a standalone
- Previous by thread: Re: scp speed (push v/s pull)
- Next by thread: Re: scp speed (push v/s pull)
- Index(es):
Relevant Pages
|
|