From owner-freebsd-isp Mon Feb 3 18:48:27 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id SAA10776 for isp-outgoing; Mon, 3 Feb 1997 18:48:27 -0800 (PST) Received: from labs.usn.blaze.net.au (labs.usn.blaze.net.au [203.17.53.30]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id SAA10764 for ; Mon, 3 Feb 1997 18:48:18 -0800 (PST) Received: (from davidn@localhost) by labs.usn.blaze.net.au (8.8.5/8.8.5) id NAA20411; Tue, 4 Feb 1997 13:47:55 +1100 (EST) Message-ID: <19970204134754.RT48025@labs.usn.blaze.net.au> Date: Tue, 4 Feb 1997 13:47:54 +1100 From: davidn@labs.usn.blaze.net.au (David Nugent) To: ricardo@americasnet.com (Ricardo Kleemann) Cc: freebsd-isp@freebsd.org (FreeBSD ISP list) Subject: Re: number of open files References: X-Mailer: Mutt 0.60-PL0 Mime-Version: 1.0 In-Reply-To: ; from Ricardo Kleemann on Feb 3, 1997 10:12:07 -0800 Sender: owner-isp@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Ricardo Kleemann writes: > how do I find out what my kernel is set up for as far as number of fd's > (MAX # open files). Per process, or system-wide? sysctl kern.maxfiles gives the number of global descriptors available. sysctl kern.maxfilesperproc gives the maximum number of descriptors available per process. With 2.2 and prior, you can adjust this upwards using the OPEN_MAX option when compiling your kernel. There are also settable resource limits you can use to decrease this per-process limit. See man ulimit (sh) and man limit (csh). Regards, David Nugent - Unique Computing Pty Ltd - Melbourne, Australia Voice +61-3-9791-9547 Data/BBS +61-3-9792-3507 3:632/348@fidonet davidn@freebsd.org davidn@blaze.net.au http://www.blaze.net.au/~davidn/