From owner-freebsd-net Sat Dec 21 17:41:31 2002 Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id ACDD137B401 for ; Sat, 21 Dec 2002 17:41:29 -0800 (PST) Received: from mail.speakeasy.net (mail14.speakeasy.net [216.254.0.214]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3372A43EDA for ; Sat, 21 Dec 2002 17:41:29 -0800 (PST) (envelope-from dschrock@speakeasy.net) Received: (qmail 7876 invoked from network); 22 Dec 2002 01:41:39 -0000 Received: from unknown (HELO speakeasy.net) (dschrock@[64.81.225.7]) (envelope-sender ) by mail14.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 22 Dec 2002 01:41:39 -0000 Message-ID: <3E051849.2050507@speakeasy.net> Date: Sat, 21 Dec 2002 19:41:29 -0600 From: Daniel Schrock User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.2.1) Gecko/20021130 X-Accept-Language: en-us, en MIME-Version: 1.0 To: "matthew c. mead" Cc: freebsd-net@freebsd.org Subject: Re: Linux and FreeBSD poor network performance References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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 matthew c. mead wrote: > On Sun, Dec 22, 2002 at 08:16:28AM +1000, Steve Baxter wrote: > >>Check out the duplex setting on the ethernet ports. Use > > >>'ifconfig' and 'netstat -I dev -w 1' on FreeBSD > > > ifconfig fxp0: > fxp0: flags=8843 mtu 1500 > inet 192.168.1.99 netmask 0xffffff00 broadcast 192.168.1.255 > inet6 fe80::2d0:b7ff:fe9e:2bbe%fxp0 prefixlen 64 scopeid 0x1 > ether 00:d0:b7:9e:2b:be > media: Ethernet autoselect (100baseTX ) > status: active > > The switch's light for full duplex on this port is ON. > > The netstat lists no errors or collisions. > > >>'ifconfig', 'mii-tool' and 'cat /proc/net/dev' on Linux > > > ifconfig eth0: > eth0 Link encap:Ethernet HWaddr 00:07:95:35:DD:77 > inet addr:192.168.1.101 Bcast:192.168.1.255 Mask:255.255.255.0 > UP BROADCAST NOTRAILERS RUNNING MULTICAST MTU:1500 Metric:1 > RX packets:60487 errors:0 dropped:0 overruns:0 frame:0 > TX packets:93881 errors:0 dropped:0 overruns:0 carrier:0 > collisions:0 txqueuelen:100 > RX bytes:19959655 (19.0 Mb) TX bytes:78760612 (75.1 Mb) > Interrupt:5 Base address:0xd400 > > mii-tool: > eth0: negotiated 100baseTx-FD, link ok > > The switch's light for full duplex on this port is ON. This may or may not help, but I have found increased performance when the interfaces are locked at their desired speed/duplex. Some cards are better than others at detecting this info, but none really do a great job at it. I have found this to be more apparent wiht windows systems. My windows XP box has awful performance in auto-detect mode using an Intel card connected to a Cisco 2924XL. Once I lock the speed and duplex, life is great. It could be something to try. .daniel.schrock To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message