# Bug ? Php is slow on Mac OS X 10.4

- Thread: https://externals.io/message/19986
- Original archive: https://news-web.php.net/php.internals/19986
- Started by Nicolas Ross on 2005-11-14T21:24:23+00:00
- Messages: 1
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #19986 — Nicolas Ross — 2005-11-14T21:24:23+00:00

URL: https://externals.io/message/19986#19986

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
