From owner-freebsd-net Thu Jun 20 23: 4:57 2002 Delivered-To: freebsd-net@freebsd.org Received: from panzer.kdm.org (panzer.kdm.org [216.160.178.169]) by hub.freebsd.org (Postfix) with ESMTP id 83F2E37B405 for ; Thu, 20 Jun 2002 23:04:52 -0700 (PDT) Received: (from ken@localhost) by panzer.kdm.org (8.11.6/8.9.1) id g5L64di18382; Fri, 21 Jun 2002 00:04:39 -0600 (MDT) (envelope-from ken) Date: Fri, 21 Jun 2002 00:04:39 -0600 From: "Kenneth D. Merry" To: Barney Wolff Cc: "McKenna, Lee" , "'Fabien THOMAS'" , paleph@pacbell.net, freebsd-net@FreeBSD.ORG Subject: Re: bge driver issue Message-ID: <20020621000439.A18344@panzer.kdm.org> References: <3EA88113DE92D211807300805FA7994209149EC2@chaplin.lodgenet.com> <20020619210646.A36559@tp.databus.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20020619210646.A36559@tp.databus.com>; from barney@tp.databus.com on Wed, Jun 19, 2002 at 09:06:46PM -0400 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Wed, Jun 19, 2002 at 21:06:46 -0400, Barney Wolff wrote: > Er, you would appear to be measuring the transfer rate of your disk, > unless you actually have enough ram to cache a 1.2GB file. > > By coincidence, tonight I hooked my dual 1.0GHz PIII running fbsd 4.6-stable > to a Mac G4 OS-X (also dual 1GHz cpus) using an Intel PRO/1000T desktop > adapter on the fbsd side. Here's the result of the Mac doing an ftp get > from fbsd: > > ftp> get X11R6-011112.tgz /dev/null > local: /dev/null remote: X11R6-011112.tgz > 200 PORT command successful. > 150 Opening BINARY mode data connection for 'X11R6-011112.tgz' (194432456 bytes). > 226 Transfer complete. > 194432456 bytes received in 6.45 seconds (30123284 bytes/s) > ftp> get X11R6-011112.tgz /dev/null > local: /dev/null remote: X11R6-011112.tgz > 200 PORT command successful. > 150 Opening BINARY mode data connection for 'X11R6-011112.tgz' (194432456 bytes). > 226 Transfer complete. > 194432456 bytes received in 1.76 seconds (110555016 bytes/s) > > The first transfer shows the speed of my disk. The second is really > pretty good. Adding in the header overhead, we're over 920 Mbps. > > Going in the other direction I never got over 500 Mbps, don't yet know why. > Windows were 65535 on both sides. Bumping the window over 100KB resulted > in a sharp drop in performance, also as yet unexplained. Setting the send > window above about 200KB resulted in failure to open a connection - no bufs > available. That too will need some investigation. The reason you probably got such good performance doing a get from the Mac box is that FreeBSD's ftpd uses sendfile() -- zero copy for file I/O. MacOS X probably doesn't use sendfile() in its ftp daemon. > The test was run through a Dell 2508 switch - I could not get 1000baseTX > with a crossover cable, but perhaps it was not good enough, although > marked cat5. In my experience, a straight-through cat5 cable works fine as a "crossover" between two 1000baseT NICs. Since 1000baseT transmits and receives on all 8 wires simultaneously, you can't exactly hook the send and receive wires up like you can with 10baseT and 100baseTX. Ken -- Kenneth Merry ken@kdm.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message