From owner-freebsd-hackers Mon Jul 19 17:53:29 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from 001101.zer0.org (001101.zer0.org [206.24.105.163]) by hub.freebsd.org (Postfix) with ESMTP id 0E8A414EB5 for ; Mon, 19 Jul 1999 17:53:23 -0700 (PDT) (envelope-from gsutter@001101.zer0.org) Received: (from gsutter@localhost) by 001101.zer0.org (8.9.2/8.9.2) id RAA62757 for hackers@freebsd.org; Mon, 19 Jul 1999 17:52:40 -0700 (PDT) (envelope-from gsutter) Date: Mon, 19 Jul 1999 17:52:39 -0700 From: Gregory Sutter To: hackers@freebsd.org Subject: maxfiles == maxfilesperproc ? Message-ID: <19990719175239.E45481@001101.zer0.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.4i Organization: Zer0 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG hax0rs, In sys/conf/param.c (in -STABLE), both maxfiles and maxfilesperproc are set equal to MAXFILES. This doesn't make much sense to me. It seems that maxfiles should be set to be greater than maxfilesperproc by default, so that one process can't consume all of the file descriptors. I noticed this while building a system that will be running some very large processes with many open files, so set maxfilesperproc on that box equal to MAXFILES - 512, but this metric is not appropriate for systems with small MAXUSERS (like GENERIC). So... 1. Should maxfiles be, by default, larger than maxfilesperproc? 2. If so, how much is necessary and appropriate? Regards, Greg -- Gregory S. Sutter "How do I read this file?" mailto:gsutter@pobox.com "You uudecode it." http://www.pobox.com/~gsutter/ "I I I decode it?" PGP DSS public key 0x40AE3052 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message