Subject: Re: Setting maxusers on 1.6
To: None <netbsd-help@NetBSD.org>
From: Chuck Yerkes <chuck+nbsd@2004.snew.com>
List: netbsd-help
Date: 02/09/2004 20:15:05
Quoting Frank DeChellis (frankd@iaw.on.ca):
> Hey guys,
> 
> I have a 2.4Gig CPU with 2 Gig RAM running mail, spamd, and apache.
> 
> I am getting MAX_KMAPENT panics (which is currently set to 1114).  I then
> added a line in the Kernel config to set MAX_KMAPENT to 2048 and maxproc to
> 1000.  But I am reading around that these setting (maxproc and MAX_KMAPENT)
> are derived from the value of MaxUsers.  is this true?
> 
> If so, where would you set Max Users instead of default 32 user?

Classicly, MaxUsers was used to a variable in several table
setting equations.  Hal Stern described is a "the large volume
knob" for doing basic tuning.

If you have a box running shell for 100 users, it was fine.
For things like high vol web servers, you'd end up cranking
up the couple tables you wanted more of and a bunch you
didn't care about.

I'll use it to get generally close, but on today's systems
you likely want to tune the machine specifically for its service.

(it could be interesting to have some (mutually exclusive) 
variables that simply contained others ones with values. eg:
   define KernelTune=BIGWEBSERVER 

which would set it for lots and lots of connections, more
memory mapping of files, etc.