From owner-freebsd-questions Thu May 14 05:30:58 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id FAA18836 for freebsd-questions-outgoing; Thu, 14 May 1998 05:30:58 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from relay.ucb.crimea.ua (relay.ucb.crimea.ua [194.93.177.113]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id FAA18795 for ; Thu, 14 May 1998 05:30:09 -0700 (PDT) (envelope-from ru@ucb.crimea.ua) Received: (from ru@localhost) by relay.ucb.crimea.ua (8.8.8/8.8.8) id PAA06839; Thu, 14 May 1998 15:29:29 +0300 (EEST) (envelope-from ru) Message-ID: <19980514152928.B6479@ucb.crimea.ua> Date: Thu, 14 May 1998 15:29:28 +0300 From: Ruslan Ermilov To: William Woods Cc: FreeBSD Questions Subject: Re: Weird stuff in log..... Mail-Followup-To: William Woods , FreeBSD Questions References: <355A2410.29E5EF72@cybcon.com> <19980514094522.A1526@ucb.crimea.ua> <355ADD2F.72B27EAB@cybcon.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.91i In-Reply-To: <355ADD2F.72B27EAB@cybcon.com>; from William Woods on Thu, May 14, 1998 at 05:01:51AM -0700 X-Operating-System: FreeBSD 2.2.6-STABLE i386 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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