From owner-freebsd-performance@FreeBSD.ORG Fri Jan 12 09:52:40 2007 Return-Path: X-Original-To: freebsd-performance@freebsd.org Delivered-To: freebsd-performance@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7193516A407 for ; Fri, 12 Jan 2007 09:52:40 +0000 (UTC) (envelope-from dom@helenmarks.co.uk) Received: from mailhost.graphdata.co.uk (mailhost.graphdata.co.uk [195.12.22.194]) by mx1.freebsd.org (Postfix) with ESMTP id 2EB4913C455 for ; Fri, 12 Jan 2007 09:52:40 +0000 (UTC) (envelope-from dom@helenmarks.co.uk) Received: from localhost (localhost [127.0.0.1]) by mailhost.graphdata.co.uk (Postfix) with ESMTP id 7856C114020; Fri, 12 Jan 2007 09:35:15 +0000 (GMT) X-Virus-Scanned: amavisd-new at graphdata.co.uk Received: from mailhost.graphdata.co.uk ([127.0.0.1]) by localhost (mailhost.graphdata.co.uk [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1SOjhPi7jhA3; Fri, 12 Jan 2007 09:35:12 +0000 (GMT) Received: from gdc083.internal.graphdata.co.uk (gdc083.internal.graphdata.co.uk [192.168.0.86]) by mailhost.graphdata.co.uk (Postfix) with SMTP id D9B3F11401E; Fri, 12 Jan 2007 09:35:12 +0000 (GMT) Date: Fri, 12 Jan 2007 09:35:12 +0000 From: Dominic Marks To: Patrick Proniewski Message-Id: <20070112093512.83dd49fd.dom@helenmarks.co.uk> In-Reply-To: References: X-Mailer: Sylpheed 2.3.0 (GTK+ 2.10.6; i386-portbld-freebsd6.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-performance@freebsd.org Subject: Re: network perf : em driver ? 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: Fri, 12 Jan 2007 09:52:40 -0000 On Fri, 12 Jan 2007 10:00:47 +0100 Patrick Proniewski wrote: > Hello, > > I'm the happy owner of a Tyan Tiger i7520SD motherboard, sporting two > ethernet ports using a Intel 82571EB GbE controller and running > FreeBSD 6.2 RC1. FreeBSD uses the em driver for this ports: > > dmesg excerpt: > em0: port > 0x2000-0x201f mem 0xd8020000-0xd803ffff,0xd8000000-0xd801ffff irq 16 > at device 0.0 on pci3 > > ifconfig output: > em0: flags=8843 mtu 1500 > options=b > inet 192.168.0.1 netmask 0xffffff00 broadcast 192.168.0.255 > ether 00:e0:81:42:e3:aa > media: Ethernet autoselect (1000baseTX ) > status: active > > The box uses its 100baseT fxp driven eth port for internet access, > and shares this access with a Mac OS X plugged on the em0 interface. > I've set up pf with firewall and nat rules to act as a gateway. Both > machines are in "Ethernet autoselect (1000baseTX )" and > linked with a direct ethernet wire. > > File transfert through em0 looks quite slow : at best 17 MB/s (scp > gives better results than http, tested with a 120MB file) > File copy, from one HDD to another or from one HDD to /dev/null, > ranges from 30 to 48 MB/s on the FreeBSD side (SATA HD). Try testing FTP. SCP will be doing encryption which will slow the process down. I can't say which HTTP would be slower than that. I have some Dell's with similar specification which will happily FTP back and forth at around 40MB/s which is reasonable. > I would like to know if there is a good method to find the bottleneck > and to get rid of it. How comes my GbE is so slow ? This is a dedicated network right? No other traffic? Dom