Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 07 Oct 2004 21:45:21 -0700
From:      Julian Elischer <julian@elischer.org>
To:        Pawel Worach <pawel.worach@telia.com>
Cc:        freebsd-threads@freebsd.org
Subject:   Re: BIND9 and libpthread performance
Message-ID:  <41661B61.709@elischer.org>
In-Reply-To: <4165C285.9050909@telia.com>
References:  <4165C285.9050909@telia.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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?

> 




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?41661B61.709>