Date: Fri, 21 Jun 2002 00:04:39 -0600 From: "Kenneth D. Merry" <ken@kdm.org> To: Barney Wolff <barney@tp.databus.com> Cc: "McKenna, Lee" <lmckenna@lodgenet.com>, "'Fabien THOMAS'" <fabien.thomas@netasq.com>, paleph@pacbell.net, freebsd-net@FreeBSD.ORG Subject: Re: bge driver issue Message-ID: <20020621000439.A18344@panzer.kdm.org> In-Reply-To: <20020619210646.A36559@tp.databus.com>; from barney@tp.databus.com on Wed, Jun 19, 2002 at 09:06:46PM -0400 References: <3EA88113DE92D211807300805FA7994209149EC2@chaplin.lodgenet.com> <20020619210646.A36559@tp.databus.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020621000439.A18344>