From owner-freebsd-questions Fri Jan 28 7: 8: 2 2000 Delivered-To: freebsd-questions@freebsd.org Received: from gwdu60.gwdg.de (gwdu60.gwdg.de [134.76.10.60]) by hub.freebsd.org (Postfix) with ESMTP id 6415315CBA for ; Fri, 28 Jan 2000 07:07:17 -0800 (PST) (envelope-from kheuer@gwdu60.gwdg.de) Received: from localhost (kheuer@localhost) by gwdu60.gwdg.de (8.9.2/8.9.2) with ESMTP id QAA14139; Fri, 28 Jan 2000 16:07:15 +0100 (CET) (envelope-from kheuer@gwdu60.gwdg.de) Date: Fri, 28 Jan 2000 16:07:15 +0100 (CET) From: Konrad Heuer To: Doug Denault Cc: freebsd-questions@FreeBSD.ORG Subject: Re: how do i increase the maximum number of open files systemwide. In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=X-UNKNOWN Content-Transfer-Encoding: QUOTED-PRINTABLE Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Fri, 28 Jan 2000, Doug Denault wrote: > Ya - thanks; the question was for max open files which seems to be 2 * > maxproc, but thanks. I have a related question. I have a web server with > about 250 domains using Netscape (yah - yah we going to Apache), where > maxopenfiles MUST be bumped to 16,000+. >=20 > My question: is there a way to bump this parameter without taking all the > other kernel structures with it. I presume with Apache the number will no= t > be so high but it probably will exceed a reasonable value scaled from > maxusers.=20 >=20 > thanks for any thoughts/ideas No need for kernel recompilation: /sbin/sysctl -w kern.maxfiles=3D16000 > > I just jumped on this thread, but I think this might help: > >=20 > > In "the Complete freebsd v. 2", it states that the maximum number of > > processes is set to=20 > > 20+ 16*Maxusers where "maxusers" is set in the kernel. > >=20 > > Everyone I've talked to has always suggested to take your "real" number= of > > maxusers and bad it a good bit, to make sure you don't have to "suddenl= y" > > take down the system and rebuild / reinstall the kernel with a new maxu= sers > > value. The only thing I can recall being warned about was to make cert= ain > > that the max processes you end up running can actually be handled by yo= ur > > hardware (I have NO idea how to make a TRUE evaluation of that though..= =2E) > >=20 > > Good luck, > > John Konrad Heuer Personal Bookmarks: Gesellschaft f=FCr wissenschaftliche Datenverarbeitung mbH G=D6ttingen http://www.freebsd.org Am Fa=DFberg, D-37077 G=D6ttingen http://www.daemonnews.o= rg Deutschland (Germany) kheuer@gwdu60.gwdg.de To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message