Date: Thu, 16 Jan 2003 10:54:23 -0600 From: Mike Meyer <mwm-dated-1043168063.849bdb@mired.org> To: John Ekins <jre@globalnet.co.uk> Cc: questions@freebsd.org Subject: Re: Directory hashing question Message-ID: <15910.58303.109949.348482@guru.mired.org> In-Reply-To: <20030116151326.5a6a9074.jre@globalnet.co.uk> References: <20030116151326.5a6a9074.jre@globalnet.co.uk>
next in thread | previous in thread | raw e-mail | index | archive | help
[Format fixed.] In <20030116151326.5a6a9074.jre@globalnet.co.uk>, John Ekins <jre@globalnet.co.uk> typed: > 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. Well, since the first and second letters don't work well - which makes sense - how about trying the last and next-to-last? Those should have a more random distribution. Also, if you don't have DIRHASH enabled on that file system, you might consider doing so and then letting the system do the hashing for you. Personally, I'd be tempted to set up subdirectories even if it made no difference in performance, just to make it easier for humans to deal with. <mike -- Mike Meyer <mwm@mired.org> http://www.mired.org/consulting.html Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?15910.58303.109949.348482>