BIND9 and libpthread performance

Pawel Worach pawel.worach at telia.com
Thu Oct 7 15:26:21 PDT 2004


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?

-- 
Pawel


More information about the freebsd-threads mailing list