From owner-freebsd-performance@FreeBSD.ORG Sat Jan 13 16:07:35 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 4529416A415 for ; Sat, 13 Jan 2007 16:07:35 +0000 (UTC) (envelope-from patpro@patpro.net) Received: from smtp8-g19.free.fr (smtp8-g19.free.fr [212.27.42.65]) by mx1.freebsd.org (Postfix) with ESMTP id 13B1D13C4A8 for ; Sat, 13 Jan 2007 16:07:34 +0000 (UTC) (envelope-from patpro@patpro.net) Received: from [192.168.0.2] (boleskine.patpro.net [82.235.12.223]) by smtp8-g19.free.fr (Postfix) with ESMTP id 227A65578; Sat, 13 Jan 2007 17:07:33 +0100 (CET) In-Reply-To: <988678.50280.qm@web30301.mail.mud.yahoo.com> References: <988678.50280.qm@web30301.mail.mud.yahoo.com> Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Patrick Proniewski Date: Sat, 13 Jan 2007 17:07:32 +0100 To: "R. B. Riddick" X-Mailer: Apple Mail (2.752.2) Cc: freebsd-performance@freebsd.org Subject: Re: network perf : em driver ? [solved] 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: Sat, 13 Jan 2007 16:07:35 -0000 On 13 janv. 2007, at 15:31, R. B. Riddick wrote: > --- Patrick Proniewski wrote: >> I've connected the em0 port of the freebsd box on a gigabit PCI-X NIC >> I have in the Mac, and given a second try to the "dd | nc" client/ >> server bench: 103 MB/s. This is far better ! >> Same setup with apache 1.3 on the mac, wget on the Freebsd: about 40 >> MB/s (350 MB file) >> > May I see the results of thttpd in comparison to apache (just for > the file)? > :-) I made a quick&dirty compilation of thttpd on the Mac, and I've got about 39 MB/s, so quite the same. I made further tests, and I've discovered that the real culprit is ipfw/natd on the Mac. When I share LAN/Internet access on the Mac from eth to airport wifi, ipfw/natd are configured in such a way that my eth network crawls. When I've changed NICs (between onboard and PCI-X) the internet sharing was still configured to use onboard eth. But if I reconfigure the internet sharing on the Mac to use the PCI-X NIC, the speed lowers to 21 MB/s instead of 40. I'll have to find a good wifi card for the freebsd box, so that the Mac won't have to be a gateway-behind-the-gateway. > And I would like to direct ur attention to this thread on freebsd- > geom@ (that > could make ur disk-bottleneck go away; cave: disk bus contention): > http://docs.freebsd.org/cgi/mid.cgi?20070113004728.GQ2616 > (esp.: http://docs.freebsd.org/cgi/mid.cgi?45A8B722.7020302) I'll take a look, thanks ! patpro