Re: very big mail spool directory

2000-12-15 Thread Michael C . Wu
On Tue, Dec 12, 2000 at 08:50:20PM +, Gustavo Vieira Goncalves Coelho Rios scribbled: | i am planning a very big email server, currently i am planning for about | 8*2^16 users. [snip] | What you wizard have to say about my approach? Why would you not want to have a distributed server in

Re: very big mail spool directory

2000-12-14 Thread Dag-Erling Smorgrav
Tony Finch [EMAIL PROTECTED] writes: Why a prime number? All you need is an even spread, and given that user IDs are usually allocated sequentially any modulus will do. Because a prime number is less likely to cause an imbalance in where files are actually stored on disk - just like you want

Re: very big mail spool directory

2000-12-14 Thread Tony Finch
Dag-Erling Smorgrav [EMAIL PROTECTED] wrote: Tony Finch [EMAIL PROTECTED] writes: Why a prime number? All you need is an even spread, and given that user IDs are usually allocated sequentially any modulus will do. Because a prime number is less likely to cause an imbalance in where files are

Re: very big mail spool directory

2000-12-13 Thread Dag-Erling Smorgrav
Gustavo Vieira Goncalves Coelho Rios [EMAIL PROTECTED] writes: The functions that will hash the id, accepts an id as input and returns a string for the user dir, like: IdString returned 0 0/0/0/0/0/0/0/0 [..] That gives you 2^32 leaf directories plus approximately

Re: very big mail spool directory

2000-12-13 Thread Warner Losh
In message [EMAIL PROTECTED] Tony Finch writes: : Dag-Erling Smorgrav [EMAIL PROTECTED] wrote: : : If you only have half a million users, pick a prime number K close to : the square root of the expected number of users (724 in your case - : closest primes are 719 and 727), create that many

Re: very big mail spool directory

2000-12-13 Thread Tony Finch
Warner Losh [EMAIL PROTECTED] wrote: In message [EMAIL PROTECTED] Tony Finch writes: : Dag-Erling Smorgrav [EMAIL PROTECTED] wrote: : : If you only have half a million users, pick a prime number K close to : the square root of the expected number of users (724 in your case - : closest primes are

very big mail spool directory

2000-12-12 Thread Gustavo Vieira Goncalves Coelho Rios
Hi folks, i am planning a very big email server, currently i am planning for about 8*2^16 users. I known that ufs has not good performance for very big directories, i.e., using a single directory to hold too many entries may lead to a low level performance.Since, my approach is to hash the

RE: very big mail spool directory

2000-12-12 Thread Matt Simerson
]] Sent: Tuesday, December 12, 2000 12:50 PM To: [EMAIL PROTECTED] Subject: very big mail spool directory Hi folks, i am planning a very big email server, currently i am planning for about 8*2^16 users. I known that ufs has not good performance for very big directories, i.e., using

Re: very big mail spool directory

2000-12-12 Thread Gustavo Vieira Goncalves Coelho Rios
Matt Simerson wrote: I do it a little bit differently for my million user mail server. Rather than perform any (more) hackery on my MTA/MDA than necessary, I set up each mail domain as it's own UID/GID on the system. This approach has some limits but so far it's working great for me. With

Re: very big mail spool directory

2000-12-12 Thread Daniel C. Sobral
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