From owner-freebsd-performance@FreeBSD.ORG Tue Jul 22 11:46:12 2003 Return-Path: Delivered-To: freebsd-performance@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C82EF37B401 for ; Tue, 22 Jul 2003 11:46:12 -0700 (PDT) Received: from clavin.cluepon.com (clavin.cluepon.com [64.154.215.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id 35E4C43F85 for ; Tue, 22 Jul 2003 11:46:10 -0700 (PDT) (envelope-from lamont@cluepon.com) Received: from lamont by clavin.cluepon.com with local (Exim 3.03 #1) id 19f29H-000NHV-00; Tue, 22 Jul 2003 11:46:07 -0700 Date: Tue, 22 Jul 2003 11:46:07 -0700 From: Lamont Lucas To: Michael Conlen Message-ID: <20030722184607.GI499@clavin.cluepon.com> References: <3F1D6B04.4010704@obfuscated.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3F1D6B04.4010704@obfuscated.net> Organization: Cluepon Consulting, Inc. User-Agent: Mutt/1.5.4i cc: freebsd-performance@freebsd.org Subject: Re: sbwait state for loaded Apache server X-BeenThere: freebsd-performance@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Performance/tuning List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Jul 2003 18:46:13 -0000 On Tue, Jul 22, 2003 at 12:49:08PM -0400, Michael Conlen wrote: > I'm working with an Apache webserver running 1400 apache processes and > the system pusing somewhere in the area of 50-60Mbit/sec sustained. The > system seems to top out around 60Mbit/sec and I see some minor > degradation of server response times. I did a lan only test of an apache install on a stock 4.8-stable box recently. With no extra tuning being done to the network stack or similar, I maxed out at about 60Mbit/sec originally, but after recompiling the kernel with: options ACCEPT_FILTER_DATA options ACCEPT_FILTER_HTTP options NMBCLUSTERS=32768 and recompiling apache with HARD_SERVER_LIMIT=2048, SO_ACCEPTFILTER and BUFFERED_LOGS, I pushed that to 83Mbit/s and an average of 1310 requests per second (using our actual website data and replaying a day's worth of logs in fast forward) (oh, and apache 1.3.27) The machine in question is a dual cpu 2.4ghz SuperMicro 6013P-8 with 2 gigs of ram. I turned hyperthreading off earlier but when I get around to doing real tuning in earnest I'll experiment with it off and on. Oh, and when you make /usr/ports/www/apache13, set the env variable WITH_APACHE_PERF_TUNING and a higher hard server limit. So my highly unscientific advice to you is to check out the ACCEPT_FILTER options and recompile apache to take advantage of them. -- - Lamont "I am not an atomic playboy."