From owner-freebsd-performance@FreeBSD.ORG Fri Jan 12 23:37:14 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 D00BF16A403 for ; Fri, 12 Jan 2007 23:37:14 +0000 (UTC) (envelope-from patpro@patpro.net) Received: from postfix1-g20.free.fr (postfix1-g20.free.fr [212.27.60.42]) by mx1.freebsd.org (Postfix) with ESMTP id 460AA13C455 for ; Fri, 12 Jan 2007 23:37:14 +0000 (UTC) (envelope-from patpro@patpro.net) Received: from smtp1-g19.free.fr (smtp1-g19.free.fr [212.27.42.27]) by postfix1-g20.free.fr (Postfix) with ESMTP id 46E507AA266 for ; Sat, 13 Jan 2007 00:08:49 +0100 (CET) Received: from [192.168.0.2] (boleskine.patpro.net [82.235.12.223]) by smtp1-g19.free.fr (Postfix) with ESMTP id 1AEAD9B650; Sat, 13 Jan 2007 00:08:47 +0100 (CET) In-Reply-To: References: Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <7CA8AE1A-3925-404C-9F69-32AC4FFBB379@patpro.net> Content-Transfer-Encoding: 7bit From: Patrick Proniewski Date: Sat, 13 Jan 2007 00:08:46 +0100 To: Lucas Holt X-Mailer: Apple Mail (2.752.2) 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 23:37:14 -0000 On 12 janv. 2007, at 23:01, Lucas Holt wrote: > The first two things I would try beyond the sysctls mentioned would > be to try another network cable, ok, added to the todo list ;) > and view your firewall configuration on both machines very > carefully. What are the specifications on the Mac? the Mac is a dual G5 2GHz, 1.5 GB RAM, 160 GB SATA HDD, it uses ipfw for internet sharing purposes between its eth and its wifi interfaces: # ipfw list 00010 divert 8668 ip from any to any via en0 65535 allow ip from any to any the FreeBSD has 1 GB DDR2 ECC, 2 250GB SATA II HDD (but motherboard controler is on SATA I) and uses pf: # pfctl -s all TRANSLATION RULES: nat on fxp0 inet from 192.168.0.0/24 to any -> (fxp0) round-robin FILTER RULES: scrub in all fragment reassemble block return all block return in log quick proto tcp from to any port = ssh pass quick on lo0 all [ bunch of block in/out and pass in rules applying only on fxp0, the external IF ] pass in inet proto icmp all icmp-type echoreq keep state pass in on em0 inet from 192.168.0.0/24 to any keep state pass out on em0 inet from any to 192.168.0.0/24 keep state [ few pass out rules applying only on fxp0, the external IF ] No queue in use > I averaged 7.5MB/s with sftp and the peak speed on the HTTP > transfer was only 7.1MB/s with Apache 2.2. scp gives me 5.6 MB/s from the Mac to the FreeBSD, but HTTP gives me 20-21 MB/s from the mac (apache 1.3) to the freebsd. Arne's nc trick (server: nc -l 1234 > /dev/null ; client: dd if=/dev/ zero bs=1m | nc serverIP 1234) gives me at best 23.7 MB/s with freebsd as server. About the same with the mac as server. Everything else is still to be tested. thanks, patpro