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 Message-ID: <19970204134754.RT48025@labs.usn.blaze.net.au> In-Reply-To: <Pine.LNX.3.95.970203101118.17044A-100000@irvine.americasnet.com>; from Ricardo Kleemann on Feb 3, 1997 10:12:07 -0800 References: <Pine.LNX.3.95.970203101118.17044A-100000@irvine.americasnet.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19970204134754.RT48025>