From owner-freebsd-questions Tue Feb 11 22:34:50 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id WAA06926 for questions-outgoing; Tue, 11 Feb 1997 22:34:50 -0800 (PST) Received: from obie.softweyr.ml.org ([199.104.124.49]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id WAA06908 for ; Tue, 11 Feb 1997 22:34:43 -0800 (PST) Received: (from wes@localhost) by obie.softweyr.ml.org (8.7.5/8.6.12) id XAA08871; Tue, 11 Feb 1997 23:39:01 -0700 (MST) Date: Tue, 11 Feb 1997 23:39:01 -0700 (MST) Message-Id: <199702120639.XAA08871@obie.softweyr.ml.org> From: Wes Peters To: "That Doug Guy" CC: questions@freebsd.org Subject: File descriptor information please In-Reply-To: <199702112058.MAA10321@smtp.connectnet.com> References: <199702112058.MAA10321@smtp.connectnet.com> Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk That Doug Guy writes: > I need information on the relationship between the amount of RAM > in a machine and the total number of file descriptors available, and > whether and how this is related to the maxusers option in the kernel > config. I understand from "The Complete FreeBSD" that maxusers > relates to the total number of processes, but I'm a little fuzzy on > the topic of file descriptors. I did a search from the www page on > *descriptor* and got nothing. A search on descriptor* got me > http://www.freebsd.org/handbook/handbook287.html which didn't have > the info I needed. A search of the mail archives didn't get me > anything that applied to my situation. A little poking around in /usr/src/sys/conf/param.c shows us: #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 */ I believe maxfiles is the figure you're looking for. -- "Where am I, and what am I doing in this handbasket?" Wes Peters Softweyr LLC http://www.xmission.com/~softweyr softweyr@xmission.com