From owner-freebsd-questions Thu Nov 14 15:02:11 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id PAA15251 for questions-outgoing; Thu, 14 Nov 1996 15:02:11 -0800 (PST) Received: from super-g.inch.com (spork@super-g.com [204.178.32.161]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id PAA15179; Thu, 14 Nov 1996 15:01:30 -0800 (PST) Received: from localhost (spork@localhost) by super-g.inch.com (8.7.6/8.6.9) with SMTP id QAA08561; Thu, 14 Nov 1996 16:59:49 -0500 Date: Thu, 14 Nov 1996 15:59:49 -0600 (CST) From: "S(pork)" X-Sender: spork@super-g.inch.com To: questions@freebsd.org, isp@freebsd.org Subject: Tuning for WWW performance... Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Howdy, I was just reading through the FAQ's and archives, and I came up with some conflicting info; some people were replying that the "MAXUSERS" option will take care of mbuf allocation, max open files per user, and max processes per user. Then other folks were giving individual options such as "NMBCLUSTERS=4096", "CHILD_MAX= ", "OPEN_MAX= "... Which is correct? And if MAXUSERS can do all of this, what is the formula it uses to generate the other values? >From what I can tell, it looks like the following requirements must be met for a high-performance dedicated web server: 1. Being able to have enough processes for all incoming requests 2. Being able to have enough files open (4-ish/apache process for access, error, browser, referer) 3. Having enough buffer space for the sockets If I can get some good answers on this, I'd love to throw together a page for the FAQ titled "Optimizing FBSD for high-performance web serving" or the like... Then next time someone asks, everyone can say "Look at the FAQ!" Thanks, Charles