Re: limit for mmaping for readfile (Bug #19749)
| From: | Andi Gutmans | Date: | Wed, 21 Apr 2004 14:03:29 +0000 |
| Subject: | Re: limit for mmaping for readfile (Bug #19749) | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-9468@lists.php.net to get a copy of this message | ||
At 08:46 AM 4/21/2004 -0400, Ilia Alshanetsky wrote:
On April 21, 2004 05:52 am, Andi Gutmans wrote: I have played with mmap() in the past. I found that mapping in relatively small blocks such as 1MB does not really hurt performance. I suggest not to add yet another INI option but to do it with smaller blocks. I think even 256KB wouldn't make a big difference. I whole heartedly agree with Andi about not adding more INI options, but perhaps we could add a configure time option. This would give admins whose servers have plenty of ram and/or need to open a slightly larger then 1 meg files the ability to control this limit.I don't see why. 1MB should work OK (it will fallback to regular file reading if it's above this). Wez will fix his code to work better with mmap() at a later time. No reason to add options for something which will be fixed. Andi