Bug ? Php is slow on Mac OS X 10.4
| From: | Nicolas Ross | Date: | Mon, 14 Nov 2005 21:24:23 +0000 |
| Subject: | Bug ? Php is slow on Mac OS X 10.4 | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-19986@lists.php.net to get a copy of this message | ||
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