Date: Thu, 14 May 1998 15:29:28 +0300 From: Ruslan Ermilov <ru@ucb.crimea.ua> To: William Woods <wwoods@cybcon.com> Cc: FreeBSD Questions <questions@FreeBSD.ORG> Subject: Re: Weird stuff in log..... Message-ID: <19980514152928.B6479@ucb.crimea.ua> In-Reply-To: <355ADD2F.72B27EAB@cybcon.com>; from William Woods on Thu, May 14, 1998 at 05:01:51AM -0700 References: <355A2410.29E5EF72@cybcon.com> <19980514094522.A1526@ucb.crimea.ua> <355ADD2F.72B27EAB@cybcon.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, May 14, 1998 at 05:01:51AM -0700, William Woods wrote: > > This is th output of pstat -T: > > bash-2.01$ pstat -T > 236/360 files > 3M/199M swap space This means that your ``file'' table is 360 elements in size, and that is almost full. > > What should I do? There are a number of ways: 1. The quick way The `maxusers' kernel parameter controls the static sizing of a number of internal system tables by a complicated formula defined in /sys/conf/param.c. MAXFILES=2*NPROC, this means: each process opens approximately 2 files; NPROC=20+16*MAXUSERS, this means: there is a 20 system processes, and 16 processes for each user. In your case, the maxusers=10, thus, NPROC=180 and MAXFILES=360. So, just increase your ``maxusers'' parameter and recompile the kernel. 2. Tuning After ``config YOUR_KERNEL'', change to /sys/compile/YOUR_KERNEL and edit the formulas in param.c (it is copied to this directory from /sys/conf) for your taste. For example: #define NPROC (50 + 30 * MAXUSERS) #define MAXFILES (NPROC*10) -- Ruslan Ermilov System Administrator ru@ucb.crimea.ua United Commercial Bank +380-652-247647 Simferopol, Crimea 2426679 ICQ Network, UIN To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19980514152928.B6479>