From owner-freebsd-net@FreeBSD.ORG Mon Jun 30 11:32:23 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 23E10106564A for ; Mon, 30 Jun 2008 11:32:23 +0000 (UTC) (envelope-from stefan.lambrev@moneybookers.com) Received: from blah.sun-fish.com (blah.sun-fish.com [217.18.249.150]) by mx1.freebsd.org (Postfix) with ESMTP id C53518FC2A for ; Mon, 30 Jun 2008 11:32:22 +0000 (UTC) (envelope-from stefan.lambrev@moneybookers.com) Received: by blah.sun-fish.com (Postfix, from userid 1002) id 4030A1B10EBB; Mon, 30 Jun 2008 13:32:21 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on malcho.cmotd.com X-Spam-Level: X-Spam-Status: No, score=-10.6 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.2.4 Received: from hater.haters.org (hater.cmotd.com [192.168.3.125]) by blah.sun-fish.com (Postfix) with ESMTP id EA2A31B10E4E; Mon, 30 Jun 2008 13:32:18 +0200 (CEST) Message-ID: <4868C442.7030406@moneybookers.com> Date: Mon, 30 Jun 2008 14:32:18 +0300 From: Stefan Lambrev User-Agent: Thunderbird 2.0.0.14 (X11/20080616) MIME-Version: 1.0 To: Paul References: <4867420D.7090406@gtcomm.net> <4867A9A1.9070507@gtcomm.net> <48681A3D.9040509@gtcomm.net> <200806300034.m5U0YfsF077111@lava.sentex.ca> <48682F15.6070707@gtcomm.net> <486849E9.6010405@gtcomm.net> In-Reply-To: <486849E9.6010405@gtcomm.net> Content-Type: text/plain; charset=windows-1251; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV version 0.93, clamav-milter version 0.93 on blah.cmotd.com X-Virus-Status: Clean Cc: FreeBSD Net , Ingo Flaschberger , Mike Tancsa Subject: Re: Freebsd IP Forwarding performance (question, and some info) [7-stable, current, em, smp] X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Jun 2008 11:32:23 -0000 Paul wrote: > The higher I set the buffer the worse it is.. 256 and 512 I get about > 50-60k more pps than i do with 2048 or 4096.. You > would think it would be the other way around but obviously there is > some contention going on. :/ Looks like in bridge mode hw.em.rxd=512 and hw.em.txd=512 yields best results also. reducing or increasing those leads to worse performance. btw is there any news with hwpmc for new CPUs ? last time I checked was real pain to get it working with core2 CPUs :( > I'm sticking with 512 for now, as it seems to make it worse with > anything higher. > Keep in mind, i'm using random source ips, random source and > destination ports.. Although that should have zero impact on the > amount of PPS it can route but for some reason it seems to.. ? Any > ideas on that one? A single stream one source ip/port to one > destination ip/port seems to use less cpu, although I haven't > generated the same pps with that yet.. I am going to test it soon > > Ingo Flaschberger wrote: >> Dear Paul, >> >>> I tried this.. I put 6-STABLE (6.3), using default driver was >>> slower than FBSD7 >> >> have you set the rx/tx buffers? >> >> /boot/loader.conf >> hw.em.rxd=4096 >> hw.em.txd=4096 >> >> bye, >> Ingo >> > > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" -- Best Wishes, Stefan Lambrev ICQ# 24134177