From owner-freebsd-questions@FreeBSD.ORG Wed Jul 14 16:15:09 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D487216A4CE for ; Wed, 14 Jul 2004 16:15:09 +0000 (GMT) Received: from viefep13-int.chello.at (viefep13-int.chello.at [213.46.255.15]) by mx1.FreeBSD.org (Postfix) with ESMTP id C4F9F43D1F for ; Wed, 14 Jul 2004 16:15:03 +0000 (GMT) (envelope-from daff@dword.org) Received: from Tirith.arda ([62.178.18.156]) by viefep13-int.chello.at (InterMail vM.6.01.03.02 201-2131-111-104-20040324) with ESMTP id <20040714161502.BJRI695.viefep13-int.chello.at@Tirith.arda> for ; Wed, 14 Jul 2004 18:15:02 +0200 Received: from Pelargir.arda (pelargir.arda [192.168.0.2]) by Tirith.arda (Postfix) with ESMTP id AFC2D80 for ; Wed, 14 Jul 2004 18:15:10 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by Pelargir.arda (Postfix) with ESMTP id 1AB26AD64 for ; Wed, 14 Jul 2004 18:15:01 +0200 (CEST) Received: from Pelargir.arda ([127.0.0.1]) by localhost (Pelargir.arda [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 98670-10 for ; Wed, 14 Jul 2004 18:14:59 +0200 (CEST) Received: by Pelargir.arda (Postfix, from userid 1001) id 7A79FAECF; Wed, 14 Jul 2004 18:14:59 +0200 (CEST) Date: Wed, 14 Jul 2004 18:14:59 +0200 From: Andreas Ntaflos To: freebsd-questions@freebsd.org Message-ID: <20040714161459.GA98907@Pelargir.arda> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.1i X-Operating-System: FreeBSD 4.10-STABLE Subject: 100Mbit/s LAN slow, TX only ~3MB/s (esp. file transfer) -- why? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Jul 2004 16:15:10 -0000 Hello list, here's the situation: a small LAN with two FreeBSD machines (one 4.10-STABLE, one 5.1-RELEASE-p11), one Gentoo box, one Windows 2000 Laptop. All the machines have 100Mbit/s capable network interfaces, configured for full duplex and auto-negotiation, and actually running in 100baseTX-FD mode (5.1 uses rl0, 4.10 dc0, Gentoo and Windows are also equipped with RealTek RTL8139 NICs). They are all connected through CAT5 UTP cables and a 5 port 100Mbit/s switch. All machines except the FreeBSD 5.1-RELEASE box are quite capable (800MHz--1GHz, 128MB--640MB RAM, (U)DMA mode harddisks, etc). The 5.1 box is an old 200MHz Pentium-MMX, 64MB RAM, slow disks. Here's the problem: Using FTP to transfer a 600MB file (ISO image) from one FreeBSD machine to the other runs only as fast as 3MB/s (maximum). Transferring the same file from the Gentoo box to one of the FreeBSD machines runs equally slow. Transferring the file from the Gentoo box to the Windows 2000 laptop however runs fine with about 10MB/s. Transferring from FreeBSD to Windows 2000 is slow again (2--5MB/s). Using SCP gives me a maximum of 1MB/s tranfer rate, on all possible connections and client pairs. I suppose this could be SCPs fault since it needs a fast CPU to encrypt and decrypt the data, but 800MHz and 1GHz ought to be enough so that this shouldn't be a bottleneck, hm? I've also tried connecting the machines directly via a crossover cable, to no avail. 4.10 <--> 5.1 is still 3MB/s, Gentoo <--> Windows 2000 runs even faster, and Gentoo <--> FreeBSD is also about 2MB/s. I remember that about a year ago with the same setup (except for the 5.1 box, which I didn't have back then) FTP speed was most excellent, transferring a 1GB file took about 3 minutes. Now it seems to take forever to copy just 50MB. So why could this be? I am mostly interested in the two FreeBSD machines, why would that be such a slow connection? Because the 5.1 box is quite old? Could the RealTek card have a problem? The switch is almost certainly not faulty. Also why would a transfer between the 4.10 box and the Gentoo machine take so long? As I mentioned, a year ago I was enjoying TX rates of almost 11MB/s between the two of them. I believe at least part of the problem lies with the FreeBSD machines, so I am asking for ideas on what this issue could be, how to investigate further to track down the possible sources of the problem and how to solve it. Sorry for this lengthy post, I tried to give as much information as possible and make clear that I have already invested a good amount of time and effort to debug and solve this myself, but I am running out of ideas. I also posted on two other boards but nobody could suggest anything actually useful. I refuse to believe that this is the expected mode of operation for FTP (and even SCP) :-) Any help would be greatly appreciated! Thanks in advance! Andreas -- Andreas "daff" Ntaflos | "A cynic is a man who knows the price of daff AT dword DOT org | everything, and the value of nothing." Vienna, AUSTRIA | Oscar Wilde