From owner-freebsd-performance@FreeBSD.ORG Wed Dec 28 21:09:17 2005 Return-Path: X-Original-To: freebsd-performance@freebsd.org Delivered-To: freebsd-performance@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1630B16A41F for ; Wed, 28 Dec 2005 21:09:17 +0000 (GMT) (envelope-from sean@sean.gigave.com) Received: from mailhost.gigave.com (mailhost.gigave.com [38.113.228.14]) by mx1.FreeBSD.org (Postfix) with ESMTP id D736F43D55 for ; Wed, 28 Dec 2005 21:09:16 +0000 (GMT) (envelope-from sean@sean.gigave.com) Date: Wed, 28 Dec 2005 13:09:15 -0800 From: Sean Chittenden To: OxY Message-ID: <20051228210915.GY28159@mailhost.gigave.com> References: <000901c60b87$e40b8ad0$0201a8c0@oxy> <000401c60bab$9fd494a0$0201a8c0@oxy> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <000401c60bab$9fd494a0$0201a8c0@oxy> Message-Id: <20051228210916.C32C1217BBE@mailhost.gigave.com> Cc: freebsd-performance@freebsd.org Subject: Re: em0 and tunnel performance problem X-BeenThere: freebsd-performance@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Performance/tuning List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Dec 2005 21:09:17 -0000 > after digging deeper it found out that the whole em0 driver worth > nothing... when i set the media to auto it's operating in half > duplex (i found out after a couple of benchmarks with iperf), when i > set it to 100basetx and full duplex manually the result is worse... > any idea? Explicitly set the port speed on both the switch and client side, then report back to the list. As it stands, your environment is not setup correctly, but this kind of misconfiguration seems to be a common source of performance problems for some admins. You can *never* rely on, or use auto negotiation. Its very common to have the switch be set to auto, the PC to be set to 100 FDX, and have the switch settle on 100 half-duplex (Cisco switches in particular). netstat -i will probably show you that you have line errors on your em0 interface. If you're running on Cisco switches, see the following: http://www.cisco.com/warp/public/473/3.html If you're using a different brand of switches, see their respective documentation. Point being, auto-negotiation should never be used in a production environment (though GigE handles this better). -sc -- Sean Chittenden