scp and large MTUs
From: Stuart Mills (smills@computing.dundee.ac.uk)
Date: 12/20/02
- Next message: Christian Reiner: "sshd login problems on mandrake"
- Previous message: Erin Michaud: "Re: hostbased auth between commercial and OpenSSH"
- Next in thread: Richard E. Silverman: "Re: scp and large MTUs"
- Reply: Richard E. Silverman: "Re: scp and large MTUs"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: "Stuart Mills" <smills@computing.dundee.ac.uk> Date: Fri, 20 Dec 2002 14:27:43 -0000
Hi, I recently developed a network driver for a device which uses a large
MTU (21836 bytes), for use with Linux 7.2 (kernel version 2.4.7-10).
Performance is excellent, except when using scp to transfer a large file (26
MBytes).
Transfers of the form:
scp <source computer>:<source file> <destination file>
work with transfer times comparable to Ethernet (as expected).
However, transfers like:
scp <source file> <destination computer>:<destination file>
take three times as long.
Dropping the MTU to between 1500 and 5000 gives times comparable to
Ethernet. I've had a look through the code for scp and can see nothing to
indicate why his should be the case. I believe that writes are done 2048
bytes at a time, while reads are done in 4096 byte packets. Writing test
code to perform similar transfers does not produce these odd results. I'm
certain this is not a bug in my driver, as it has been used for a number of
tasks over the past few months, with only scp demonstrating these strange
results.
Can anyone suggest what might be causing this? Any pointers would be
appreciated.
TIA,
Stuart Mills
- Next message: Christian Reiner: "sshd login problems on mandrake"
- Previous message: Erin Michaud: "Re: hostbased auth between commercial and OpenSSH"
- Next in thread: Richard E. Silverman: "Re: scp and large MTUs"
- Reply: Richard E. Silverman: "Re: scp and large MTUs"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|