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

From: Date: Thu, 04 Aug 2016 17:24:50 +0000
Subject: Req #35879 [Opn->Fbk]: Low performance for fpassthru()
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-202932@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: cmb@php.net Reported by: sentomas at hotmail dot com Summary: Low performance for fpassthru() -Status: Open +Status: Feedback Type: Feature/Change Request -Package: Feature/Change Request +Package: *General Issues Operating System: FBSD/LINUX/UNIX PHP Version: 5.1.1 -Assigned To: +Assigned To: cmb Block user comment: N Private report: N New Comment: Does this issue still persist? PHP 5.1.1 has been quite a while ago. BTW: can't you use readfile()? Previous Comments: ------------------------------------------------------------------------ [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 (#202932) next »