Re: PHP with open_basedir performance problem

2008-01-27 Thread Hugo Silva
Hugo Silva wrote: Hugo Silva wrote: Miroslav Lachman wrote: Hi all, I found a painful performance problem with Apache + PHP 5 when open_basedir directive is enabled. Application performance drops by more than 50% with open_basedir enabled. There is also significant disproportion between usr /

Re: PHP with open_basedir performance problem

2008-01-27 Thread Hugo Silva
Hugo Silva wrote: Miroslav Lachman wrote: Hi all, I found a painful performance problem with Apache + PHP 5 when open_basedir directive is enabled. Application performance drops by more than 50% with open_basedir enabled. There is also significant disproportion between usr / sys CPU load. (sy

Re: PHP with open_basedir performance problem

2008-01-27 Thread Hugo Silva
Miroslav Lachman wrote: Hi all, I found a painful performance problem with Apache + PHP 5 when open_basedir directive is enabled. Application performance drops by more than 50% with open_basedir enabled. There is also significant disproportion between usr / sys CPU load. (sys is much higher than

Re: PHP with open_basedir performance problem

2008-01-27 Thread Thomas Hurst
* Miroslav Lachman ([EMAIL PROTECTED]) wrote: > As I reported a year ago - problem occured in 5.1.6 (maybe 5.1.5 - I > never tried it, I jumped from 5.1.4 to 5.1.6 or newer). Can somebody > look at PHP sources of those two versions and find the "bad change"? Handily I have 5.1.4 sources right nex

Re: PHP with open_basedir performance problem

2008-01-27 Thread Miroslav Lachman
Thomas Hurst wrote: * Miroslav Lachman ([EMAIL PROTECTED]) wrote: I found a painful performance problem with Apache + PHP 5 when open_basedir directive is enabled. Looks like it's lstat()/readlink() overhead. I wrote a simple bit of PHP similar to yours, but doing 10 * 1000 require "foo/%

Re: PHP with open_basedir performance problem

2008-01-27 Thread Thomas Hurst
* Miroslav Lachman ([EMAIL PROTECTED]) wrote: > I found a painful performance problem with Apache + PHP 5 when > open_basedir directive is enabled. Looks like it's lstat()/readlink() overhead. I wrote a simple bit of PHP similar to yours, but doing 10 * 1000 require "foo/%d/%d.php" calls from th