#35228 [NEW]: Php is slow under Mac OS X 10.4
| From: | nicolas dot ross at cybercat dot ca | Date: | Tue, 15 Nov 2005 16:11:28 +0000 |
| Subject: | #35228 [NEW]: Php is slow under Mac OS X 10.4 | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-88217@lists.php.net to get a copy of this message | ||
From: nicolas dot ross at cybercat dot ca
Operating system: Mac OS X 10.4
PHP version: 4.4.1
PHP Bug Type: Performance problem
Bug description: Php is slow under Mac OS X 10.4
Description:
------------
Php is slow under Mac OS X 10.4 (tiger). All php code that is not "simple"
is slow. Page generation time is ranging from 8 to 15 seconds for page
normally taking less than 1 second. I've tracked down the problem to a
system-call filesystem related problem
Please see those threads :
http://marc.theaimsgroup.com/?l=php-dev&m=113200357113670
http://marc.theaimsgroup.com/?t=112670317500004
for more details, and the solution I've found.
Reproduce code:
---------------
- Take a php app (forum like phpbb, gallery2, mambo cms, or others)
- Use it under Mac OS X 10.4
- Any version of php was tried and confirmed to experience major slowdown:
Stock php from Mac OS X, all official php 4.3.x, 4.4.x
- Any recent version of apache, default configure and compile: apache
1.3.33, 2.0.55.
Apache configure line used :
/configure --enable-so --enable-modules=most --enable-mods-shared=max
--enable-proxy --enable-ssl
Php configure line used :
./configure --with-apxs2=/usr/local/apache2/bin/apxs
--enable-experimental-zts --with-mysql=/usr/local/mysql --with-fbsql
--with-xml --enable-ftp --with-curl=/sw --with-zlib --with-png-dir=/sw
--with-jpeg-dir=/sw --with-gd --with-ttf=/sw --with-freetype-dir=/sw
--enable-track-vars --enable-trans-id --disable-debug
All options were striped down except mysql and --enable-track-vars
--enable-trans-id --disable-debug with no more restult.
Expected result:
----------------
less than 1 second page generation time for the a test site using mambo
CMS
Actual result:
--------------
8 to 15 second of page generation time. During this time, the actual
apache thread that serves the request eats 100% of the cpu time.
--
Edit bug report at http://bugs.php.net/?id=35228&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=35228&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=35228&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=35228&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=35228&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=35228&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=35228&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=35228&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=35228&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=35228&r=support
Expected behavior: http://bugs.php.net/fix.php?id=35228&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=35228&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=35228&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=35228&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=35228&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=35228&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=35228&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=35228&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=35228&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=35228&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=35228&r=mysqlcfg