#43946 [Bgs]: open_basedir tremendously degraded performance on FreeBSD
| From: | rasmus@php.net | Date: | Tue, 29 Jan 2008 21:22:46 +0000 |
| Subject: | #43946 [Bgs]: open_basedir tremendously degraded performance on FreeBSD | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-121757@lists.php.net to get a copy of this message | ||
ID: 43946
Updated by: rasmus@php.net
Reported By: hugo at barafranca dot com
Status: Bogus
Bug Type: Safe Mode/open_basedir
Operating System: FreeBSD 7.0-RC1 amd64
PHP Version: 5.2.5
New Comment:
Try increasing the size of the realpath cache.
eg.
realpath_cache_size=128k
in your .ini and see if that helps.
Previous Comments:
------------------------------------------------------------------------
[2008-01-28 00:12:50] johannes@php.net
The realpath() function is quite slow with FreeBSD's libc
implememntation, but we need to get the real name (without symlinks and
similar stuff) of a file name to be opened for doing the open_basedir
check. Nothing we can easily fix but we are awae of the problem and are
open for good patches. The best advise i can give you is to try to
reduce the amount of include/require[_once] calls.
------------------------------------------------------------------------
[2008-01-27 22:26:36] hugo at barafranca dot com
Description:
------------
Reference:
http://lists.freebsd.org/pipermail/freebsd-performance/2008-January/003096.html
The difference: http://www.barafranca.com/open_basedir.png
(when
open_basedir was disabled is obvious)
Reproduce code:
---------------
-
Expected result:
----------------
-
Actual result:
--------------
-
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=43946&edit=1