From owner-freebsd-questions Fri Jan 17 7:53:40 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BD46F37B407 for ; Fri, 17 Jan 2003 07:53:38 -0800 (PST) Received: from mail.bellavista.cz (mail.bellavista.cz [62.168.44.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id B6F1343F3F for ; Fri, 17 Jan 2003 07:53:35 -0800 (PST) (envelope-from neuhauser@bellavista.cz) Received: from freepuppy.bellavista.cz (freepuppy.bellavista.cz [10.0.0.10]) by mail.bellavista.cz (Postfix) with ESMTP id DA1CE45B; Thu, 16 Jan 2003 18:01:13 +0100 (CET) Received: by freepuppy.bellavista.cz (Postfix, from userid 1001) id C184D2FDB7C; Thu, 16 Jan 2003 18:01:12 +0100 (CET) Date: Thu, 16 Jan 2003 18:01:12 +0100 From: Roman Neuhauser To: John Ekins Cc: questions@freebsd.org Subject: Re: Directory hashing question Message-ID: <20030116170112.GR42719@freepuppy.bellavista.cz> Mail-Followup-To: John Ekins , questions@freebsd.org References: <20030116151326.5a6a9074.jre@globalnet.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030116151326.5a6a9074.jre@globalnet.co.uk> User-Agent: Mutt/1.5.1i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG please keep the line length at about 70 characters. 442 is a bit long. # jre@globalnet.co.uk / 2003-01-16 15:13:26 +0000: > I have a question about "best" practices for directory hashing. I have > about 80,000 zone files which are named after the domain which I > generate using a Perl script. I'm looking for the best hashing to > reduce the start up time for bind. > > I've tried different hashings. Using example.foo as an example (:-)), > if I take the first and second letters of the domain and hash it like > this /var/named/e/x/example.foo I still end up with (in a few cases) > more than 3000 zones in one directory. If I hash using the > first+second and third+fourth like this /var/named/ex/am/example.com I > end up with a lot fewer zones in the individual directories, but > bind's start up time is much longer. isn't this actually a Bind problem? you are IMO asking in the wrong forum. > I can live with the first hasing if I need to, but I'm seeking some > advice and suggestions on what others think (or know) would be better. I think better solution would be switching to djbdns, but am afraid of starting a flamefest, so I won't say it. :) -- If you cc me or remove the list(s) completely I'll most likely ignore your message. see http://www.eyrie.org./~eagle/faqs/questions.html To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message