Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:19986 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 18196 invoked by uid 1010); 14 Nov 2005 21:24:30 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 18181 invoked from network); 14 Nov 2005 21:24:30 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Nov 2005 21:24:30 -0000 X-Host-Fingerprint: 207.96.251.195 mail.cybercat.ca Linux 2.4/2.6 Received: from ([207.96.251.195:60570] helo=cybercat.ca) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id D5/F1-07637-C8009734 for ; Mon, 14 Nov 2005 16:24:28 -0500 Received: from [207.253.242.230] (HELO civicXp) by cybercat.ca (CommuniGate Pro SMTP 4.3.6) with ESMTP id 23545528 for internals@lists.php.net; Mon, 14 Nov 2005 16:24:23 -0500 Message-ID: <10b801c5e961$c9000b50$1a07a8c0@civicXp> To: Date: Mon, 14 Nov 2005 16:24:23 -0500 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="Windows-1252"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2527 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527 Subject: Bug ? Php is slow on Mac OS X 10.4 From: rossnick-lists@cybercat.ca ("Nicolas Ross") First of all, you might want to take a look at a thread that I started about slowdowns with php on Mac OS X 10.4 : http://marc.theaimsgroup.com/?t=112670317500004&r=1&w=2 Next, here's a summary : Php (4.3.x, 4.4.x, 5.x) is slow with apache (1.3.x, 2.0.x) under Mac OS X 10.4 (server or client). How to repeat : Take a php application that's "not small" (phpbb forum, gallery2, mambo cms for exemples), run it under Mac os X 10.4 tiger, with php. Use the built-in apache (1), the built-in php, or your choice of apache1 with static or dynamic php, apache2 and dynamic php; with php 4.3.x, php 4.4 or 5.x, and you'll see that when requesting a page, the page takes long to respond (8 to 15 seconds in my case). During that time, the thread serving this request eats 100% of the cpu. Whith the os-x provided tool fs_usage and sc_usage, I was able to see that there were some system calls that takes much time to execute. In particular, getdirentries and select system call. The solution : http://marc.theaimsgroup.com/?l=php-general&m=113198556215028&w=2 Use --enable-experimental-zts on the configure line of php. So, is it a php bug ? Nicolas