Date: Tue, 05 Sep 2000 22:55:47 -0400 From: Mike Tancsa <mike@sentex.net> To: freebsd-fs@freebsd.org Subject: optimal directory creation Message-ID: <4.2.2.20000905224117.032376f8@mail.sentex.net>
next in thread | raw e-mail | index | archive | help
I really dont know much about UFS, but from the little I understand, issues such as amount of files in a directory affect performance and from what someone told me, the order of directory creation. To make a new pop3 server a little more efficient, I implemented a 2 level hashed tree. But, what I am not sure of is if the initial creation of the directories are important. e.g. should I create (assuming for this case, usernames are only [a-z][a-z]*. Should I create the directories in the order 1) /var/mail/a /var/mail/a/a /var/mail/a/b . . . /var/mail/z/z or 2) /var/mail/a /var/mail/b . . /var/mail/z then /var/mail/a/b /var/mail/a/c . . /var/mail/z/z 3) create /var/mail/s /var/mail/s/o /var/mail/t /var/mail/t/a . . . /var/mail/j/z assuming that I had the most popular usernames starting with so, then ta with the least popular jz ? Thoughts/comments ? I was going to try some simple benchmarks to see if there were any obvious differences, but the theory behind it would be great to know. Thanks, ---Mike -------------------------------------------------------------------- Mike Tancsa, tel +1 519 651 3400 Network Administration, mike@sentex.net Sentex Communications www.sentex.net Cambridge, Ontario Canada www.sentex.net/mike To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-fs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4.2.2.20000905224117.032376f8>