#22721 [Ctl->Csd]: _php_stream_copy_to_mem performance sucks on systems without mmap support
| From: | wez@php.net | Date: | Mon, 28 Apr 2003 13:48:43 +0000 |
| Subject: | #22721 [Ctl->Csd]: _php_stream_copy_to_mem performance sucks on systems without mmap support | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-38560@lists.php.net to get a copy of this message | ||
ID: 22721
Updated by: wez@php.net
Reported By: shawn at rumental dot com
-Status: Critical
+Status: Closed
Bug Type: Performance problem
Operating System: win2k
PHP Version: 4.3.2-RC
Assigned To: wez
New Comment:
Unable to reproduce any sign of a leak using the latest stable snapshot
under XP and w2k.
Are you sure you correctly upgraded your PHP installation? (make sure
you don't have any stale php dlls)
Previous Comments:
------------------------------------------------------------------------
[2003-04-25 07:43:55] shawn at rumental dot com
Surely let me know if you need assistance verifying or need any logs or
more info.
I dont beleive performance monitors reflect the files open.
But handle.exe from sysinternals
http://www.sysinternals.com/ntw2k/freeware/handle.shtml
does indicate that all handles are still open.
I do not know if there is a way in php to check for that.
I am still using 4.22 because 4.23 will stop when total file handles
reach a certain number.
------------------------------------------------------------------------
[2003-04-25 05:43:10] wez@php.net
I must verify/fix this before 4.3.2 goes gold.
------------------------------------------------------------------------
[2003-03-26 18:47:28] shawn at rumental dot com
afer running file() about a 2000 times with latest snapshot in win2k
running apache 1.3.27 latest win32 binary
i get this error:
Warning: file(e:\test.txt): failed to open stream: Too many open files
in e:\program files\apache group\apache\htdocs\test\testfile2.php on
line 12
I used handle.exe from sysinternals to view open file handles
http://www.sysinternals.com/ntw2k/freeware/handle.shtml
and all file handles opened via file() appear to still be
open. This is not the case when testing php 422
output from handle.exe:
Apache.exe pid: 1640 MAINFRAME\apache
1e4: File E:\test.txt
1e8: File E:\test.txt
210: File E:\test.txt
... etc
214: File E:\test.txt
and it goes on for the number of times file() accessed the file.
CODE
----
$i=1;
while($i++ <="2000"){
file("e:\\test.txt");
}
------------------------------------------------------------------------
[2003-03-25 18:59:20] wez@php.net
What is the problem?
We need a script to reproduce the problem, along with a description of
what should happen, what does happen and why you think it is wrong.
------------------------------------------------------------------------
[2003-03-25 18:49:18] shawn at rumental dot com
IS THIS BUG STILL BEING WATCHED.
I reopened it there still seems to be a problem with the fix.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/22721
--
Edit this bug report at http://bugs.php.net/?id=22721&edit=1