From owner-freebsd-questions Thu Aug 22 09:28:04 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id JAA25706 for questions-outgoing; Thu, 22 Aug 1996 09:28:04 -0700 (PDT) Received: from post.io.org (post.io.org [198.133.36.6]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id JAA25653 for ; Thu, 22 Aug 1996 09:28:02 -0700 (PDT) Received: from zot.io.org (taob@zot.io.org [198.133.36.82]) by post.io.org (8.7.5/8.7.3) with SMTP id MAA23065; Thu, 22 Aug 1996 12:27:56 -0400 (EDT) Date: Thu, 22 Aug 1996 12:27:55 -0400 (EDT) From: Brian Tao To: michael dorin cc: questions@freebsd.org Subject: Re: System Tuning for Apache (FreeBSD ver2.1) In-Reply-To: <199608211304.IAA02033@chaski.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On Wed, 21 Aug 1996, michael dorin wrote: > > I do plan on trying to set maxusers to 256 in the kernel build > as well as CHILD_MAX=512 and OPEN_MAX=512. That should be plenty. > I can't find where I change SOMAXCONN or NMBCLUSTERS. I forget what SOMAXCONN is in 2.1.0, but in recent snapshots (2.2), it is set by default to 128. Again, that should be plenty for your needs. To increase the number of mbuf clusters, add this to your kernel config file: options "NMBCLUSTERS=4096" "netstat -m" will tell you how many mbuf clusters are in use and how many have been allocated. They use up RAM though, so don't go crazy with them. I believe the default is 1024, so don't bother increasing them unless "netstat -m" consistently shows that you are hitting that limit. > I have a system based on 72 Meg of ram, Did you configure your kernel to use all 72 megs (the MAXMEM option in the kernel config)? > NE2000 network card. Are these really that bad? Pentium 100 Mhz. I prefer the SMC PCI Ethernet controllers myself. Your hardware should be able to support 400,000 to 500,000 hits a day (which is a long way off from the 3000/day you have now ;-) ). -- Brian Tao (BT300, taob@io.org, taob@ican.net) Senior Systems and Network Administrator, Internet Canada Corp. "Though this be madness, yet there is method in't"