From owner-freebsd-performance@FreeBSD.ORG Sat Feb 3 14:29:08 2007 Return-Path: X-Original-To: freebsd-performance@freebsd.org Delivered-To: freebsd-performance@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B54DA16A401 for ; Sat, 3 Feb 2007 14:29:08 +0000 (UTC) (envelope-from ale@seudns.net) Received: from pink.seudns.net (pink.seudns.net [201.54.26.2]) by mx1.freebsd.org (Postfix) with SMTP id 9E0FD13C441 for ; Sat, 3 Feb 2007 14:29:07 +0000 (UTC) (envelope-from ale@seudns.net) Received: (qmail 20870 invoked from network); 3 Feb 2007 14:02:23 -0000 Received: from unknown (HELO ?192.168.100.20?) (192.168.100.20) by pink.seudns.net with SMTP; 3 Feb 2007 14:02:23 -0000 Message-ID: <45C495F1.5030408@seudns.net> Date: Sat, 03 Feb 2007 12:02:25 -0200 From: Alexandre Biancalana User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) MIME-Version: 1.0 To: Miroslav Lachman <000.fbsd@quip.cz> References: <45C47D49.4040101@quip.cz> In-Reply-To: <45C47D49.4040101@quip.cz> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-performance@freebsd.org Subject: Re: PHP Performance problem after upgrade to 5.1.6 or 5.2.0 X-BeenThere: freebsd-performance@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Performance/tuning List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Feb 2007 14:29:08 -0000 Miroslav Lachman wrote: > Hi all, > > I have performance problem with PHP after upgrading from PHP 5.1.4 to > newer version regardles if newer version is 5.1.6 or 5.2.0. I tested > both with same result. > I have two same servers (IBM x336 with dual Xeon 3GHz and 2GB RAM) > serving one webapplication (loadbalancing). Both machines are running > FreeBSD 6.0 SMP + Apache 2.0.59. If both machines have PHP 5.1.4, > everything is fine and load is about 1.5 (Apache is running 16-20 > childs). > After upgrade to PHP 5.1.6 or 5.2.0, performance goes down - average > load is about 3-5 with peaks at 12-40 (in this peaks Apache starts to > run more childs, sometimes to MaxClients). > Both machines are serving identical content with same requests per > second, both versions of PHP are compiled from ports with same options. > Both have in loader.conf: > accf_data_load="YES" > accf_http_load="YES" > First of all you should upgrade the FreeBSD to 6.2-STABLE, since this has a LOT of improvements in the overall system. I would recommend you to disable HT too. Regards,