From owner-freebsd-questions Mon Aug 28 13:48:56 2000 Delivered-To: freebsd-questions@freebsd.org Received: from home.offwhite.net (home.offwhite.net [156.46.35.30]) by hub.freebsd.org (Postfix) with ESMTP id E58C337B43E for ; Mon, 28 Aug 2000 13:48:52 -0700 (PDT) Received: from localhost (brennan@localhost) by home.offwhite.net (8.9.1/8.9.3) with ESMTP id PAA35044; Mon, 28 Aug 2000 15:48:50 -0500 (CDT) Date: Mon, 28 Aug 2000 15:48:50 -0500 (CDT) From: BWS - Offwhite To: "James E. Pace" Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Scaling Apache? In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Oh, if that is the case... There is one master option which may help you out. It is "maxusers" and it is in the kernel config file. You can find the example file here assuming you have the source tree on your machine. /usr/src/sys/i386/conf/LINT Here is the comment above that option. # The `maxusers' parameter controls the static sizing of a number of # internal system tables by a complicated formula defined in param.c. I do not think I would recommend running 2000 apache processes or any processes on your machine as it seems to be a very large number of processes. Maybe 200 or 500, but 2000 is a bit high. For that you may want at least 2gigs of RAM and either a dual or quad processor system, if not a whole cluster. Consider the following with running so many apache processes: If apache does serve up a single page, about 5k and then a logo on it at about 45k and you did use up 2000 processes to feed this content I know apache will try to cache those documents in memory for each child. That is kinda scary given that 50k * 2000 is going to take up a great deal of RAM. I am not sure what content you are serving, but the memory/swap space caching can become unwieldy with so many children processes running. Anyone have thoughts on this? I know the apache developers are working on a threaded apache may improve this memory usage issue, but that is not even in beta yet. I still prefer to have a series of children which can die or crash independently and still not take down the whole web server. Brennan Stehling - web developer and sys admin projects: www.greasydaemon.com | www.onmilwaukee.com | www.sncalumni.com On Mon, 28 Aug 2000, James E. Pace wrote: > Thanks for the good discussion. > > Fortunately, my needs are not for a live site, but for testing a web > accelerator, so real world applicability isn't crucial, yet. > > My question then is, given that I want 2000 apaches running, how do I > tune the OS and apache to make this happen? > > Thanks, > > James > > This letter brought to you by: ************************************* > ** James E. Pace ** > ** http://www.pobox.com/~jepace ** > ******************************************************************** > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message