From owner-freebsd-questions@FreeBSD.ORG Mon Oct 4 17:19:42 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 54DF716A4CE for ; Mon, 4 Oct 2004 17:19:42 +0000 (GMT) Received: from palrel12.hp.com (palrel12.hp.com [156.153.255.237]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0D3DC43D46 for ; Mon, 4 Oct 2004 17:19:42 +0000 (GMT) (envelope-from jason.sheets@hp.com) Received: from cacexg11.americas.cpqcorp.net (cacexg11.americas.cpqcorp.net [16.92.1.67]) by palrel12.hp.com (Postfix) with ESMTP id E5E6C409C44; Mon, 4 Oct 2004 10:19:41 -0700 (PDT) Received: from idbexc01.americas.cpqcorp.net ([16.88.97.3]) by cacexg11.americas.cpqcorp.net with Microsoft SMTPSVC(6.0.3790.0); Mon, 4 Oct 2004 10:19:41 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Date: Mon, 4 Oct 2004 11:21:41 -0600 Message-ID: <2D8BB15C7B5C214F81C32D3A83B32736013D50E0@idbexc01.americas.cpqcorp.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Load increase after upgrading php4 Thread-Index: AcSprU9Y7XMzTB8BSWuvLuoU/tURWgAiQmBQ From: "Sheets, Jason (OZ CEEDR)" To: "Bjorn Swift" , X-OriginalArrivalTime: 04 Oct 2004 17:19:41.0795 (UTC) FILETIME=[55D14330:01C4AA36] Subject: RE: Load increase after upgrading php4 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Oct 2004 17:19:42 -0000 Building PHP modules makes it very easy to load optional functionality however it will decrease performance, sometimes drastically. I hand build PHP because of this reason and also because I want upgrades as soon as they are released and ports usually lags a few days. It is also possible something changed in PHP between the two installs, I'd try a hand compile of PHP without using modules for the functionality you know you want. There is a lot of really good information available about tuning PHP + Apache that can be accessed by searching on google.com. Jason > -----Original Message----- > From: owner-freebsd-questions@freebsd.org [mailto:owner-freebsd- > questions@freebsd.org] On Behalf Of Bjorn Swift > Sent: Sunday, October 03, 2004 6:58 PM > To: freebsd-questions@freebsd.org > Subject: Load increase after upgrading php4 >=20 > Early September I upgraded php4 using the new php port structure (that > is php4 and php4-extensions). Since then I have noticed quite an > increase in server load - I'd say my current load is about five times > what it was before. Graph available here: > http://bjorn.swift.is/tmp/hermes-uptime-year.png >=20 > I suspect this being because the "new way" seems to compile everything > as loadable modules. My question is basically whether "this is just how > it is" and that I should compile php myself I want it built as one > binary - or if this increase in load is something not to be expected. >=20 > Has anyone else witnessed anything like this on their servers? What did > you do ? >=20 > The server is a patched FreeBSD 4.8 running php 4.3.8 and apache 1.3.31. > It's not a heavy loaded one, serving an average of just over 3 req/sec, > but most of the files (besides images) are rather bloated php scripts; > webmail, message boards and such. The server is running Nick Lindridge's > PHP Accelerator. >=20 > If anyone has any tips or thoughts they would be greatly appreciated. >=20 > (Would freebsd-isp perhaps be a better list for a question of this > sort?) >=20 > Cheers, > Bjorn Swift