From owner-freebsd-net@FreeBSD.ORG Wed Nov 21 03:08:10 2012 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E1974D31 for ; Wed, 21 Nov 2012 03:08:10 +0000 (UTC) (envelope-from bright@mu.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.freebsd.org (Postfix) with ESMTP id C27448FC16 for ; Wed, 21 Nov 2012 03:08:10 +0000 (UTC) Received: from Alfreds-MacBook-Pro-5.local (c-67-180-208-218.hsd1.ca.comcast.net [67.180.208.218]) by elvis.mu.org (Postfix) with ESMTPSA id 194161A3C1A; Tue, 20 Nov 2012 19:08:10 -0800 (PST) Message-ID: <50AC4599.7020407@mu.org> Date: Tue, 20 Nov 2012 19:08:09 -0800 From: Alfred Perlstein User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:16.0) Gecko/20121026 Thunderbird/16.0.2 MIME-Version: 1.0 To: Barney Cordoba Subject: Re: FreeBSD boxes as a 'router'... References: <1353454215.20382.YahooMailClassic@web121601.mail.ne1.yahoo.com> In-Reply-To: <1353454215.20382.YahooMailClassic@web121601.mail.ne1.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-net@freebsd.org, Ingo Flaschberger X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Nov 2012 03:08:11 -0000 On 11/20/12 3:30 PM, Barney Cordoba wrote: > > --- On Tue, 11/20/12, Ingo Flaschberger wrote: > >> From: Ingo Flaschberger >> Subject: Re: FreeBSD boxes as a 'router'... >> To: freebsd-net@freebsd.org >> Date: Tuesday, November 20, 2012, 6:04 PM >> Am 20.11.2012 23:49, schrieb Alfred >> Perlstein: >>> On 11/20/12 2:42 PM, Jim Thompson wrote: >>>> On Nov 20, 2012, at 3:52 PM, Barney Cordoba >> wrote: >>>> You're entitled to your opinion, but experimental >> results have tended to show yours incorrect. >>>> Jim >>> Agree with Jim. If you want pure packet >> performance you burn a core to run a polling loop. >> >> At new systems, without polling I had better performance and >> no live-locks, >> at old systems (Intel 82541GI) polling prevent live-locks. >> >> Best test: >> Loop a GigE Switch, inject a Packet and plug it into the >> test-box. > Yeah, thats a good real-world test. > > To me "performance" is not "burning a cpu" to get some extra pps. > Performance is not dropping buckets of packets. Performance is using > less cpu to do the same amount of work. > > Is a machine that benchmarks at 998Mb/s at 95% cpu really a "higher > performance" system than one that does 970Mb/s and uses 50% of the cpu? > > The measure of performance is to manage an entire load without dropping > any packets. If your machine goes into live-lock, then you need more > machine. Hacking it so that it drops packets is hardly a solution. > Any free CPU is wasted CPU. (unless you're concerned about power consumption, then it's debatable). -Alfred