Date: Tue, 20 Jul 1999 15:25:46 -0400 (EDT) From: David Coder <dacoder@dcoder.com> To: Greg Lynn <dglynn@vaview5.vavu.vt.edu> Cc: freebsd-stable@FreeBSD.ORG Subject: Re: opened file limits... Message-ID: <Pine.BSF.4.10.9907201520520.93552-100000@doc.dcoder.com> In-Reply-To: <Pine.BSF.3.96.990720122214.14688A-100000@vaview5.vavu.vt.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
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=<value>", 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=<value> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.10.9907201520520.93552-100000>