ID: 35228 Updated by: [EMAIL PROTECTED] Reported By: nicolas dot ross at cybercat dot ca -Status: Open +Status: Bogus Bug Type: Performance problem Operating System: Mac OS X 10.4 PHP Version: 4.4.1 New Comment:
Don't use --enable-experimental-zts (it will definately break things!) Previous Comments: ------------------------------------------------------------------------ [2005-11-15 17:11:26] nicolas dot ross at cybercat dot ca 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 this bug report at http://bugs.php.net/?id=35228&edit=1