From owner-freebsd-questions Thu Jan 16 7:14:18 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 1499737B401 for ; Thu, 16 Jan 2003 07:14:18 -0800 (PST) Received: from smtp1.global.net.uk (smtp1.global.net.uk [80.189.94.53]) by mx1.FreeBSD.org (Postfix) with ESMTP id 27D7F43F43 for ; Thu, 16 Jan 2003 07:14:17 -0800 (PST) (envelope-from jre@globalnet.co.uk) Received: from host217-40-189-253.in-addr.btopenworld.com ([217.40.189.253] helo=jre.is.brightview.com) by smtp1.global.net.uk with smtp (Exim 3.36 #1) id 18ZBih-000Q0B-00 for questions@freebsd.org; Thu, 16 Jan 2003 15:14:16 +0000 Date: Thu, 16 Jan 2003 15:13:26 +0000 From: John Ekins To: questions@freebsd.org Subject: Directory hashing question Message-Id: <20030116151326.5a6a9074.jre@globalnet.co.uk> X-Mailer: Sylpheed version 0.8.8 (GTK+ 1.2.10; i386-portbld-freebsd4.7) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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 Hello, 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. 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. Cheers, John Ekins. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message