Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 21 Dec 2002 19:41:29 -0600
From:      Daniel Schrock <dschrock@speakeasy.net>
To:        "matthew c. mead" <mmead@goof.com>
Cc:        freebsd-net@freebsd.org
Subject:   Re: Linux and FreeBSD poor network performance
Message-ID:  <3E051849.2050507@speakeasy.net>
In-Reply-To: <au2q0e$2k2k$1@FreeBSD.csie.NCTU.edu.tw>
References:  <au2q0e$2k2k$1@FreeBSD.csie.NCTU.edu.tw>

next in thread | previous in thread | raw e-mail | index | archive | help
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<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> 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 <full-duplex>)
> 	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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3E051849.2050507>