Source-Changes-D archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src



On Sat, Aug 29, 2015 at 02:07:46PM +0000, Masao Uebayashi wrote:
> Module Name:	src
> Committed By:	uebayasi
> Date:		Sat Aug 29 14:07:46 UTC 2015
> 
> Modified Files:
> 	src/sys/conf: Makefile.kern.inc files
> 	src/sys/sys: param.h
> 	src/usr.bin/config: defs.h gram.y mkmakefile.c
> 
> Log Message:
> Convert MAXUSERS, take 2.
> 
> Define MAXUSERS in opt_param.h and include it from sys/param.h, for more
> accurate dependency.  Don't define -DMAXUSERS and add it to ${CPPFLAGS}.
> config(5)'s "maxusers" syntax doesn't change.

It is probably worth revisiting MAXUSERS.
After all the default (16 or 64?) is just enough for one person.

IIRC a lot of limits are based on it, most of which probably
predate the dynamic allocation of the relevant structures.
Limits for the total number of open files and processes (etc)
are probably better based on system memory size (or even
available memory/kva/swap).

I remember a fixed size hash table for uids that could be done
a better way, but everything else just set soft limits.

	David

-- 
David Laight: david%l8s.co.uk@localhost


Home | Main Index | Thread Index | Old Index