From: sentomas at hotmail dot com Operating system: FBSD/LINUX/UNIX PHP version: 5.1.1 PHP Bug Type: Feature/Change Request Bug description: Low performance for fpassthru()
Description: ------------ I was trying to use fpassthru to runing a fileservice web host. But when the web server request at a large scale, like 100 more requests for different files at same time. The fpassthru() bring the server load up to 30 even 150, and OS have to use large amount swap to fullfill the buffer request from fpassthru(). Which we all know its extrem high for unix system. We all know unix provide an easy way to output file data via sendfile() which avoid resouce copy between users but direct cope filepoint to socket. I know its might be diffcult to oprerate on webserver socket from PHP as FCGI or mod. But I really hope there is another way to improve fpassthru() to some real large scale usage. Otherwise I have to rewrite a httpd by myself to server for dymatic file service request. :( -- Edit bug report at http://bugs.php.net/?id=35879&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=35879&r=trysnapshot44 Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=35879&r=trysnapshot51 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=35879&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=35879&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=35879&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=35879&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=35879&r=needscript Try newer version: http://bugs.php.net/fix.php?id=35879&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=35879&r=support Expected behavior: http://bugs.php.net/fix.php?id=35879&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=35879&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=35879&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=35879&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=35879&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=35879&r=dst IIS Stability: http://bugs.php.net/fix.php?id=35879&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=35879&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=35879&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=35879&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=35879&r=mysqlcfg
