From owner-freebsd-performance@FreeBSD.ORG Fri Feb 4 10:32:12 2005 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 891F016A4CE for ; Fri, 4 Feb 2005 10:32:12 +0000 (GMT) Received: from web26806.mail.ukl.yahoo.com (web26806.mail.ukl.yahoo.com [217.146.176.82]) by mx1.FreeBSD.org (Postfix) with SMTP id 88BEE43D31 for ; Fri, 4 Feb 2005 10:32:11 +0000 (GMT) (envelope-from cguttesen@yahoo.dk) Received: (qmail 69848 invoked by uid 60001); 4 Feb 2005 10:32:10 -0000 Message-ID: <20050204103210.69846.qmail@web26806.mail.ukl.yahoo.com> Received: from [194.248.174.58] by web26806.mail.ukl.yahoo.com via HTTP; Fri, 04 Feb 2005 11:32:10 CET Date: Fri, 4 Feb 2005 11:32:10 +0100 (CET) From: Claus Guttesen To: Vladimir Vrzic , freebsd-performance@freebsd.org In-Reply-To: <1107510981.23035.17.camel@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Subject: Re: Apache 2 on FreeBSD 5.3 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: Fri, 04 Feb 2005 10:32:12 -0000 > On a FreeBSD 5.3 web server with a very high load, I > recently switched > from Apache 1.3 and PHP 4.3 to using 2.0 with the > prefork MPM and PHP 5. > I noticed a drop in perfomance. What is currently > the best (in terms of > performance) choice for Apache w/ PHP on FreeBSD? > Which MPM should I > use? Does worker MPM use KSE on FreeBSD 5 and does > it perform better > than prefork? What about perchild and threadpool? Or > maybe I should go > back to Apache 1.3? Are there any sysctl or kernel > tunings that I should > use? It is not recommend to use apache 2 with PHP. That's at least what the folks at php says. We use 1.3 and are satisfied with the performance. Have you tried to set the following in /usr/local/etc/apache/httpd.conf? KeepAlive Off MaxClients (size of one process) / (avail. RAM) regards Claus