From owner-freebsd-hackers Tue Dec 12 19:52: 7 2000 From owner-freebsd-hackers@FreeBSD.ORG Tue Dec 12 19:52:05 2000 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from peach.ocn.ne.jp (peach.ocn.ne.jp [210.145.254.87]) by hub.freebsd.org (Postfix) with ESMTP id 0A91F37B400 for ; Tue, 12 Dec 2000 19:52:04 -0800 (PST) Received: from newsguy.com (p27-dn02kiryunisiki.gunma.ocn.ne.jp [211.0.245.92]) by peach.ocn.ne.jp (8.9.1a/OCN/) with ESMTP id MAA19990; Wed, 13 Dec 2000 12:51:34 +0900 (JST) Message-ID: <3A36BDB7.403B610@newsguy.com> Date: Wed, 13 Dec 2000 09:07:19 +0900 From: "Daniel C. Sobral" X-Mailer: Mozilla 4.7 [en] (Win98; I) X-Accept-Language: en,pt-BR MIME-Version: 1.0 To: Gustavo Vieira Goncalves Coelho Rios Cc: hackers@FreeBSD.ORG Subject: Re: very big mail spool directory References: <3A368F8C.1918684F@ifour.com.br> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Gustavo Vieira Goncalves Coelho Rios wrote: > > The functions that will hash the id, accepts an id as input and returns > a string for the user dir, like: > > Id String returned > 0 0/0/0/0/0/0/0/0 > 1 0/0/0/0/0/0/0/1 > . ./././././././. > 15 0/0/0/0/0/0/0/f > 16 0/0/0/0/0/0/1/0 > 17 0/0/0/0/0/0/1/1 > . ./././././././. > 32 0/0/0/0/0/0/2/0 > . ./././././././. This is unnecessarily too deep. I think you would be better off with 256 entries in each directory, and cut the depth by half. -- Daniel C. Sobral (8-DCS) dcs@newsguy.com dcs@freebsd.org capo@the.great.underground.bsdconpiracy.org "The bronze landed last, which canceled that method of impartial choice." To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message