Req #35879 [Fbk->NoF]: Low performance for fpassthru()

From: Date: Sun, 14 Aug 2016 04:22:24 +0000
Subject: Req #35879 [Fbk->NoF]: Low performance for fpassthru()
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-203249@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=35879&edit=1 ID: 35879 Updated by: php-bugs@lists.php.net Reported by: sentomas at hotmail dot com Summary: Low performance for fpassthru() -Status: Feedback +Status: No Feedback Type: Feature/Change Request Package: *General Issues Operating System: FBSD/LINUX/UNIX PHP Version: 5.1.1 Assigned To: cmb Private report: N New Comment: No feedback was provided. The bug is being suspended because we assume that you are no longer experiencing the problem. If this is not the case and you are able to provide the information that was requested earlier, please do so and change the status of the bug back to "Re-Opened". Thank you. Previous Comments: ------------------------------------------------------------------------ [2016-08-04 17:24:50] cmb@php.net Does this issue still persist? PHP 5.1.1 has been quite a while ago. BTW: can't you use readfile()? ------------------------------------------------------------------------ [2006-01-03 10:32:47] sentomas at hotmail dot com 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 this bug report at https://bugs.php.net/bug.php?id=35879&edit=1

« previous php.bugs (#203249) next »