From owner-freebsd-hackers Mon Oct 28 20:12:08 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id UAA22845 for hackers-outgoing; Mon, 28 Oct 1996 20:12:08 -0800 (PST) Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.2.228.19]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id UAA22839 for ; Mon, 28 Oct 1996 20:12:03 -0800 (PST) Received: (from bde@localhost) by godzilla.zeta.org.au (8.7.6/8.6.9) id PAA25065; Tue, 29 Oct 1996 15:05:47 +1100 Date: Tue, 29 Oct 1996 15:05:47 +1100 From: Bruce Evans Message-Id: <199610290405.PAA25065@godzilla.zeta.org.au> To: dennis@etinc.com, jgreco@brasil.moneng.mei.com Subject: Re: Table is full message Cc: hackers@FreeBSD.org Sender: owner-hackers@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk >My large news servers have over 8000 :-) > >This is indirectly calculated from the "MAXUSERS" setting in your config >file... the default FreeBSD GENERIC kernel has MAXUSERS set to 10. > >See /sys/conf/param.c: > >#define NPROC (20 + 16 * MAXUSERS) >int maxproc = NPROC; /* maximum # of processes */ >int maxprocperuid = NPROC-1; /* maximum # of processes per user */ >int maxfiles = NPROC*2; /* system wide open files limit */ >int maxfilesperproc = NPROC*2; /* per-process open files limit */ > >Trivia: there is a similar file provided under SunOS so that you may set >these values (even though SunOS comes with its kernel 99% precompiled). Compile time configuration is usually wrong. In FreeBSD, it is easy to configure these values at runtime using sysctl. Run `sysctl -a | grep max' to find the names of the values of interest. Bruce