From owner-freebsd-stable Tue Jul 20 12:27:58 1999 Delivered-To: freebsd-stable@freebsd.org Received: from doc.dcoder.com (doc.dcoder.com [168.143.224.52]) by hub.freebsd.org (Postfix) with ESMTP id A070D14EA7 for ; Tue, 20 Jul 1999 12:27:51 -0700 (PDT) (envelope-from dacoder@dcoder.com) Received: from doc.dcoder.com (doc.dcoder.com [168.143.224.52]) by doc.dcoder.com (8.9.3/8.9.3) with ESMTP id PAA09991; Tue, 20 Jul 1999 15:25:46 -0400 (EDT) (envelope-from dacoder@dcoder.com) Date: Tue, 20 Jul 1999 15:25:46 -0400 (EDT) From: David Coder Reply-To: David Coder To: Greg Lynn Cc: freebsd-stable@FreeBSD.ORG Subject: Re: opened file limits... In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, 20 Jul 1999, Greg Lynn wrote: > > Is there a way to compile into the kernel the maximum > open files the system can have at any time? And can someone > explain if it's a good or bad idea to set this. > Yes, you can even set the limit on the fly. To compile it into the kernel, put a line in your config file that reads options "MAXFILES=", e.g. options "MAXFILES=4026" To set it on the fly, first (as root)do a sysctl kern.maxfiles to see what the default is. Then do a sysctl -w kern.maxfiles= to increase or decrease the value. I have seen the number set pretty high in production environments, e.g. on smtp boxes of ISP's. I've got it up to 4026 on my workstation right now. It may, of course, blow up any minute. :) dc _____________________ David Coder SysAdmin WebHosting Verio.com 703-749-7955 x1314 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message