From owner-freebsd-performance@FreeBSD.ORG Sat Feb 3 20:55:01 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 6099116A403 for ; Sat, 3 Feb 2007 20:55:01 +0000 (UTC) (envelope-from tom.hurst@clara.net) Received: from spork.qfe3.net (spork.qfe3.net [212.13.207.101]) by mx1.freebsd.org (Postfix) with ESMTP id 1C67A13C4A5 for ; Sat, 3 Feb 2007 20:55:01 +0000 (UTC) (envelope-from tom.hurst@clara.net) Received: from [81.104.144.87] (helo=voi.aagh.net) by spork.qfe3.net with esmtp (Exim 4.62 (FreeBSD)) (envelope-from ) id 1HDRuV-0007Sc-Jw for freebsd-performance@freebsd.org; Sat, 03 Feb 2007 20:54:59 +0000 Received: from freaky by voi.aagh.net with local (Exim 4.66 (FreeBSD)) (envelope-from ) id 1HDRuN-000I2k-B2 for freebsd-performance@freebsd.org; Sat, 03 Feb 2007 20:54:51 +0000 Date: Sat, 3 Feb 2007 20:54:51 +0000 From: Thomas Hurst To: freebsd-performance@freebsd.org Message-ID: <20070203205451.GA65239@voi.aagh.net> Mail-Followup-To: freebsd-performance@freebsd.org References: <45C47D49.4040101@quip.cz> <20070203190410.GA56203@voi.aagh.net> <45C4E528.8000302@quip.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <45C4E528.8000302@quip.cz> Organization: Not much. User-Agent: Mutt/1.5.13 (2006-08-11) Sender: Thomas Hurst 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 20:55:01 -0000 * Miroslav Lachman (000.fbsd@quip.cz) wrote: > I am not using any PHP bytecode cache. Well, if you used one perhaps you'd have enough power to be N+1, not just N going on N-1 ;) > About one year ago I tried eAccelerator which causes Apache freeze. Are you using a threaded MPM? Try using prefork, or worker with mod_fastcgi/mod_fcgid and PHP compiled WITH_FASTCGI. > Now I installed ZendOptimizer and load increased!! by 50% :o( I've never used it, but I gather Zend Optimizer is just an optimizer, not a bytecode cache; without one it will be increasing the cost of compilation (which will still happen each request) and you'd expect load to increase, unless your PHP was very optimizable and ineffecient. Zend probably expect you to use it with commercial pre-compiled PHP apps, or as part of Zend Platform, which does include a cache. Personally I wouldn't bother; if eAccelerator still doesn't work, try Alternative PHP Cache (APC) or XCache. -- Thomas 'Freaky' Hurst http://hur.st/