From owner-freebsd-isp@FreeBSD.ORG Wed Dec 8 13:18:06 2004 Return-Path: Delivered-To: freebsd-isp@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E171316A4CE for ; Wed, 8 Dec 2004 13:18:06 +0000 (GMT) Received: from sys-179.netcologne.de (sys-179.netcologne.de [194.8.193.179]) by mx1.FreeBSD.org (Postfix) with ESMTP id 89E2B43D2D for ; Wed, 8 Dec 2004 13:18:06 +0000 (GMT) (envelope-from djanssen@sys-179.netcologne.de) Received: from localhost ([127.0.0.1] helo=sys-179.netcologne.de) by sys-179.netcologne.de with esmtp (Exim 4.41 (FreeBSD)) id 1Cc1hl-000PGL-0G for freebsd-isp@freebsd.org; Wed, 08 Dec 2004 14:18:05 +0100 Received: (from djanssen@localhost) by sys-179.netcologne.de (8.13.1/8.13.1/Submit) id iB8DI4IM097112 for freebsd-isp@freebsd.org; Wed, 8 Dec 2004 14:18:04 +0100 (CET) (envelope-from djanssen) Date: Wed, 8 Dec 2004 14:18:04 +0100 From: Dirk Janssen To: freebsd-isp@freebsd.org Message-ID: <20041208131804.GA83456@netcologne.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Organization: NetCologne GmbH User-Agent: Mutt/1.5.6i Subject: Poor performance bind9 X-BeenThere: freebsd-isp@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Internet Services Providers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Dec 2004 13:18:07 -0000 Hi, I've compiled in threads to bind9.3.0 (src from isc not ports) using a dual procssor machine (2xIntel XEON) with 5.3-STABLE and I encounter serious performance problems (using queryperf from bind contribs): +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Parse input file: once Ended due to: reaching end of file Queries sent: 100000 queries Queries completed: 100000 queries Queries lost: 0 queries Percentage completed: 100.00% Percentage lost: 0.00% Started at: Wed Dec 8 12:54:37 2004 Finished at: Wed Dec 8 12:57:58 2004 Ran for: 201.589260 seconds Queries per second: 496.058173 qps +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ When I compile bind without threads, the result is realistic and nearly 30x better: +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Parse input file: once Ended due to: reaching end of file Queries sent: 100000 queries Queries completed: 100000 queries Queries lost: 0 queries Percentage completed: 100.00% Percentage lost: 0.00% Started at: Wed Dec 8 12:50:51 2004 Finished at: Wed Dec 8 12:50:59 2004 Ran for: 7.819249 seconds Queries per second: 12788.951982 qps +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Can anyone explain what's the problem here? Is this a issue of bind9 or of freebsd? Any suggestions how I can use the two processors of my box without running two (non multithreading) instances of bind listening on different IPs? Regards, Dirk