From owner-freebsd-threads@FreeBSD.ORG Fri Oct 8 04:45:25 2004 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E5A1D16A4CE for ; Fri, 8 Oct 2004 04:45:25 +0000 (GMT) Received: from pimout3-ext.prodigy.net (pimout3-ext.prodigy.net [207.115.63.102]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7E94543D68 for ; Fri, 8 Oct 2004 04:45:25 +0000 (GMT) (envelope-from julian@elischer.org) Received: from elischer.org (adsl-67-124-50-20.dsl.snfc21.pacbell.net [67.124.50.20])i984jLSX218400; Fri, 8 Oct 2004 00:45:22 -0400 Message-ID: <41661B61.709@elischer.org> Date: Thu, 07 Oct 2004 21:45:21 -0700 From: Julian Elischer User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.4b) Gecko/20030524 X-Accept-Language: en, hu MIME-Version: 1.0 To: Pawel Worach References: <4165C285.9050909@telia.com> In-Reply-To: <4165C285.9050909@telia.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-threads@freebsd.org Subject: Re: BIND9 and libpthread performance X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Oct 2004 04:45:26 -0000 Pawel Worach wrote: > Hi, > > I did some simple benchmarking with libpthread vs. libc_r and BIND. > The numbers puzzle me. Are pthreads supposed to this much slower? > > Tests done using BIND9 with a authoritative root zone. The queryperf > tool from bind-9.3.0/contrib/queryperf was used to get the numbers. > Queries where done for ". SOA". (queryperf -s 127.0.0.1 -l 30) > > This is on -CURRENT from Oct 6th, WITNESS, INVARIANTS off and > libpthread built without _LOCK_DEBUG and _PTHREADS_INVARIANTS. > Hardware is a dual IBM x345 2.8ghz Xeon box with HTT on. SCHED_4BSD, > PREEMPTION and ADAPTIVE_GIANT are in the kernel config, malloc.conf > symlinked to 'aj'. > > Results (queries per second according to queryperf): > x libpthread-system-scope > + libc_r > +--------------------------------------------------------------------------+ > > |x +++ > + +| > |A > |__M__A______| | > +--------------------------------------------------------------------------+ > > N Min Max Median Avg Stddev > x 5 2074.3131 2094.7966 2087.3796 2086.4217 7.579802 > + 5 8179.1707 9535.1741 8448.1802 8763.1869 619.70126 > Difference at 95.0% confidence > 6676.77 +/- 639.13 > 320.01% +/- 30.6328% > (Student's t, pooled s = 438.228) > > Any ideas why the difference is so big, is there anything else to tune? try libthr (use libmap.conf) and why are you using scope_system? >