From owner-freebsd-performance@FreeBSD.ORG Fri Mar 16 13:21:26 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 1759116A400; Fri, 16 Mar 2007 13:21:26 +0000 (UTC) (envelope-from bde@zeta.org.au) Received: from mailout1.pacific.net.au (mailout1-3.pacific.net.au [61.8.2.210]) by mx1.freebsd.org (Postfix) with ESMTP id D2C7D13C45A; Fri, 16 Mar 2007 13:21:25 +0000 (UTC) (envelope-from bde@zeta.org.au) Received: from mailproxy1.pacific.net.au (mailproxy1.pacific.net.au [61.8.2.162]) by mailout1.pacific.net.au (Postfix) with ESMTP id 746D75A7FD2; Sat, 17 Mar 2007 00:21:24 +1100 (EST) Received: from besplex.bde.org (katana.zip.com.au [61.8.7.246]) by mailproxy1.pacific.net.au (Postfix) with ESMTP id 139298C09; Sat, 17 Mar 2007 00:21:22 +1100 (EST) Date: Sat, 17 Mar 2007 00:21:21 +1100 (EST) From: Bruce Evans X-X-Sender: bde@besplex.bde.org To: Marcelo Gardini do Amaral In-Reply-To: <20070315213731.GI82003@registro.br> Message-ID: <20070317002115.K35080@besplex.bde.org> References: <20070315213731.GI82003@registro.br> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-performance@FreeBSD.org, rwatson@FreeBSD.org, Peter_Losher@isc.org, jad@nominet.org.uk Subject: Re: MFC of UDP socket performance test 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, 16 Mar 2007 13:21:26 -0000 On Thu, 15 Mar 2007, Marcelo Gardini do Amaral wrote: > I repeated that performance test done with bind [1] using now Robert's > MFC [2]. Another tweak that I was supposed to do was to use libthr > instead of libpthread (via libmap.conf) and build bind with threads > option. In the new test I did this. > > I used the same methodology, same zone file and same server hardware > that I used in [3]. > > Server: Dell 1750 Xeon 3.06GHz > Bind 9.4.0 and NSD 3.0.4 > > Client: queryperf.c,v 1.8.192.3 2005/10/29 00:21:12 > Dell Optiplex GX620 > 1M NS queries > ... > Conclusions: > > - I couldn't notice any difference using those patches. Maybe my test > set is not adequate for that. > > - Bind works better with libthr. > > - "bge" NIC still doesn't work well for DNS servers on FreeBSD 6.2, as > used to work on FreeBSD 4.11. Even "em" NIC does not have the same > performance that used to has on 4.11. I now get almost identical performance (+-10%) for packet blasting tests with bge on 4.10, 5.2 (heavily modified), 6.2 and -current and significant but fairly small changes to bge. em (unmodified) has slightly less performance than bge (modified). This may be because most things are limited by my buses and CPUs (only 33MHz 32-bit PCI and only 1 CPU on all machines, except on one that has a braindamaged bge NIC), but generally I found that the OS version and huge version-dependent differences in locking from this overheads made surprisingly little difference. Changing hardware made a big difference, but with the same hardware, merging bits of bge back and forth generally gave the same performance. Unmodified versions had performance differences of 100% for small packets. This is without using polling. I don't believe in polling and haven't optimized for it, but tested it a bit and noticed some anomalies in it. Bruce