From owner-freebsd-performance@FreeBSD.ORG Fri Feb 4 15:44:55 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 D3BDC16A4CE for ; Fri, 4 Feb 2005 15:44:55 +0000 (GMT) Received: from mail.foolishgames.com (mail.foolishgames.com [216.55.178.45]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8B1E043D45 for ; Fri, 4 Feb 2005 15:44:55 +0000 (GMT) (envelope-from luke@foolishgames.com) Received: from [192.168.0.4] (24.247.120.6.kzo.mi.chartermi.net [24.247.120.6]) (authenticated bits=0)j14Filur074816; Fri, 4 Feb 2005 07:44:47 -0800 (PST) (envelope-from luke@foolishgames.com) X-Authentication-Warning: mail.foolishgames.com: Host 24.247.120.6.kzo.mi.chartermi.net [24.247.120.6] claimed to be [192.168.0.4] Message-ID: <4203986E.50200@foolishgames.com> Date: Fri, 04 Feb 2005 10:44:46 -0500 From: Lucas Holt User-Agent: Mozilla Thunderbird 1.0 (X11/20041211) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Vladimir Vrzic References: <1107510981.23035.17.camel@localhost> In-Reply-To: <1107510981.23035.17.camel@localhost> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-performance@freebsd.org 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 15:44:55 -0000 Vladimir Vrzic wrote: >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? > > > What I find odd is that you switched two software packages and assume its apache's fault for the performance drop. If you are just testing php code, it could very well be the php5 is slower than php4 for your code. From my understanding prefork is recommended with mod anything in apache 2 right now simply because most modules link with non thread safe libraries.