Subject: ftp: put slower then get?
To: None <current-users@NetBSD.ORG>
From: Matthias Pfaller <leo@dachau.marco.de>
List: current-users
Date: 02/24/1997 11:18:51
Did anybody else notice that put is about half the speed of get when
doing ftp transfers? I see this on my pc532 as well as on an i386 box.
Both are running 1.2C. I have appended a transcript of a ftp session
done on an i486DX4. Does anyone know what's the reason for this?

Matthias

Script started on Mon Feb 24 11:13:38 1997
$ ftp lo
Connected to localhost.marco.de.
220 tabatha FTP server (Version 6.00) ready.
Name (lo:leo): leo
Password:
230- NetBSD 1.2C (TABATHA) #2: Wed Feb 19 11:12:13 CET 1997
230- 
230 User leo logged in.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> bin
200 Type set to I.
ftp> progress
Progress bar off.
ftp> cd /tmp
250 CWD command successful.
ftp> lcd /tmp
Local directory now /tmp
ftp> get tst /dev/null
local: /dev/null remote: tst
200 PORT command successful.
150 Opening BINARY mode data connection for 'tst' (4587088 bytes).
226 Transfer complete.
4587088 bytes received in 1.79 seconds (2.45 MB/s)
Can't change modification time on /dev/null to Mon Feb 24 11:13:23 1997
ftp> get tst /dev/null
local: /dev/null remote: tst
200 PORT command successful.
150 Opening BINARY mode data connection for 'tst' (4587088 bytes).
226 Transfer complete.
4587088 bytes received in 1.92 seconds (2.28 MB/s)
Can't change modification time on /dev/null to Mon Feb 24 11:13:23 1997
ftp> put tst /dev/null
local: tst remote: /dev/null
200 PORT command successful.
150 Opening BINARY mode data connection for '/dev/null'.
226 Transfer complete.
4587088 bytes sent in 3.71 seconds (1.18 MB/s)
ftp> put tst /dev/null
local: tst remote: /dev/null
200 PORT command successful.
150 Opening BINARY mode data connection for '/dev/null'.
226 Transfer complete.
4587088 bytes sent in 4.16 seconds (1.05 MB/s)
ftp> quit
221 Goodbye.
$ exit

Script done on Mon Feb 24 11:14:37 1997
-- 
leo@dachau.marco.de			in real life: Matthias Pfaller
marco GmbH, 85221 Dachau, Germany	tel: +49 8131 516142