[PHP-DEV] Performance problem with php

2010-06-20 Thread Vincenzo D'Amore
Hello, to have a performance problem with apache/mod_php5 configuration under heavy load the website becomes too slow. Using strace I found what appears to me a strange behavior The strange behavior I want point out is related to a sequence of tentative httpd/mod_php5 does in order to read an php

Re: [PHP-DEV] Performance problem with php

2010-06-20 Thread Alexey Zakhlestin
On 20.06.2010, at 10:49, Vincenzo D'Amore wrote: Hello, to have a performance problem with apache/mod_php5 configuration under heavy load the website becomes too slow. Using strace I found what appears to me a strange behavior The strange behavior I want point out is related to a sequence

Re: [PHP-DEV] Performance problem with php

2010-06-20 Thread Dinh
Hi, Unfortunately, your web application abused include_path. You can change WP source code to include PHP files using absolute path Regards, Dinh On Sun, Jun 20, 2010 at 1:49 PM, Vincenzo D'Amore v.dam...@gmail.comwrote: Hello, to have a performance problem with apache/mod_php5

Re: [PHP-DEV] Performance problem with php

2010-06-20 Thread Ferenc Kovacs
Hi. Shouldn't we seeing failed lstats if the include_path would be the problem? And I thought that the php engine itself tries to cache the fileinfo, to minimize the lstat calls ( see http://hu.php.net/manual/en/function.clearstatcache.php ) So I think that we shouldn't see this much duplicate

Re: [PHP-DEV] Performance problem with php

2010-06-20 Thread Vincenzo D'Amore
Yes, right. # /usr/libexec/php5-cgi/bin/php -v PHP 5.2.9 (cli) (built: Sep 14 2009 16:52:55) Copyright (c) 1997-2009 The PHP Group Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies with the ionCube PHP Loader v3.1.33, Copyright (c) 2002-2007, by ionCube Ltd. # httpd -V Server

Re: [PHP-DEV] Performance problem with php

2010-06-20 Thread Vincenzo D'Amore
Hi Dinh, sorry, I don't get why having a wrong include_path configuration inside WP should have a negative outcome like have 8 tentatives in order to read this file. Regards, Vincenzo On Sun, Jun 20, 2010 at 9:26 AM, Dinh pcd...@gmail.com wrote: Hi, Unfortunately, your web application

Re: [PHP-DEV] Performance problem with php

2010-06-20 Thread Ferenc Kovacs
If you have more than once directory in your include path, then the engine have to look up the given file in each of the given directories, which is in the worst case scenario (the given file is in the directory which is in the last in the include path) could mean N lookup, where N is the number

Re: [PHP-DEV] Remove sqlite2 from trunk

2010-06-20 Thread Ulf Wendel
Johannes Schlüter schrieb: On Sat, 2010-06-19 at 12:45 +0200, Sebastian Bergmann wrote: Am 19.06.2010 11:33, schrieb Patrick ALLAERT: What are the possible actions/alternatives? I think this was already mentioned: add a BC layer to ext/mysqli so that the new extension supports the old

Re: [PHP-DEV] Performance problem with php

2010-06-20 Thread Olivier B.
Hi, are you using the suhosin patch for PHP ? I can see the same lstat behaviour with my setups, because of suhosin. But for the 8 tentative of reading, are you sure php deliver only one page here ? Olivier Le 20/06/2010 08:49, Vincenzo D'Amore a écrit : Hello, to have a performance

Re: [PHP-DEV] Remove sqlite2 from trunk

2010-06-20 Thread Lukas Kahwe Smith
On 20.06.2010, at 12:01, Ulf Wendel wrote: Johannes Schlüter schrieb: On Sat, 2010-06-19 at 12:45 +0200, Sebastian Bergmann wrote: Am 19.06.2010 11:33, schrieb Patrick ALLAERT: What are the possible actions/alternatives? I think this was already mentioned: add a BC layer to ext/mysqli so

Re: [PHP-DEV] Performance problem with php

2010-06-20 Thread Rasmus Lerdorf
On 6/19/10 11:49 PM, Vincenzo D'Amore wrote: Could anybody explain me why I have this behavior and if it is attributable to a misconfiguration of php? This doesn't look like a PHP misconfiguration. It looks more like an application-level issue. Do a grep for realpath in your application code.

Re: [PHP-DEV] APC in trunk

2010-06-20 Thread Ilia Alshanetsky
I for one think it is a really good idea, there is no compelling reason not to include APC, I would even go as far as say we should enable it by default. +1 On Sat, Jun 19, 2010 at 9:23 AM, Kalle Sommer Nielsen ka...@php.net wrote: Greetings As the process for trunk grows, I think we should

Re: [PHP-DEV] Remove sqlite2 from trunk

2010-06-20 Thread Pierre Joye
On Fri, Jun 18, 2010 at 7:50 PM, Jonathan Bond-Caron jbo...@openmv.com wrote: SQLITE_API int sqlite3_busy_timeout(sqlite3*, int ms); b) No persistent connections Any reason why it wasn't migrated from sqlite.c? It is now in trunk. Cheers, -- Pierre @pierrejoye | http://blog.thepimp.net

Re: [PHP-DEV] Performance problem with php

2010-06-20 Thread Michael Shadle
Is this only useful for 5.2.x and is it only for realpath() or is it for any sort of path lookup and caching? Like resolving include paths and such? On Jun 20, 2010, at 6:37 AM, Rasmus Lerdorf ras...@lerdorf.com wrote: realpath_cache_size = 256k realpath_cache_ttl = 7200 -- PHP Internals -

Re: [PHP-DEV] APC in trunk

2010-06-20 Thread Lester Caine
( Foregot to change address again :( ) Ilia Alshanetsky wrote: What are your views on including APC in the core, or reasons not to? Dictatorship? Optional module which have well used alternatives should not be proced on by default! Probably more people use alternatives and have for years?

Re: [PHP-DEV] APC in trunk

2010-06-20 Thread Lukas Kahwe Smith
On 20.06.2010, at 22:21, Lester Caine wrote: ( Foregot to change address again :( ) Ilia Alshanetsky wrote: What are your views on including APC in the core, or reasons not to? Dictatorship? Optional module which have well used alternatives should not be proced on by default! Probably

Re: [PHP-DEV] APC in trunk

2010-06-20 Thread John Coggeshall
+1 as Lukas, on adding but not enabled by default. On Jun 20, 2010, at 4:39 PM, Lukas Kahwe Smith m...@pooteeweet.org wrote: On 20.06.2010, at 22:21, Lester Caine wrote: ( Foregot to change address again :( ) Ilia Alshanetsky wrote: What are your views on including APC in the core, or

Re: [PHP-DEV] APC in trunk

2010-06-20 Thread Rasmus Lerdorf
On 6/20/10 1:21 PM, Lester Caine wrote: ( Foregot to change address again :( ) Ilia Alshanetsky wrote: What are your views on including APC in the core, or reasons not to? Dictatorship? Optional module which have well used alternatives should not be proced on by default! Probably more

Re: [PHP-DEV] APC in trunk

2010-06-20 Thread Derick Rethans
On Sun, 20 Jun 2010, Rasmus Lerdorf wrote: On 6/20/10 1:21 PM, Lester Caine wrote: ( Foregot to change address again :( ) Ilia Alshanetsky wrote: What are your views on including APC in the core, or reasons not to? Dictatorship? Optional module which have well used alternatives

Re: [PHP-DEV] APC in trunk

2010-06-20 Thread Ferenc Kovacs
On Sun, Jun 20, 2010 at 10:39 PM, Lukas Kahwe Smith m...@pooteeweet.orgwrote: On 20.06.2010, at 22:21, Lester Caine wrote: ( Foregot to change address again :( ) Ilia Alshanetsky wrote: What are your views on including APC in the core, or reasons not to? Dictatorship? Optional

Re: [PHP-DEV] APC in trunk

2010-06-20 Thread Derick Rethans
On Sun, 20 Jun 2010, Ilia Alshanetsky wrote: I for one think it is a really good idea, there is no compelling reason not to include APC, I would even go as far as say we should enable it by default. I would like to add it as well; but not turn it on by default. Not because it wouldn't be

Re: [PHP-DEV] APC in trunk

2010-06-20 Thread Lester Caine
Rasmus Lerdorf wrote: On 6/20/10 1:21 PM, Lester Caine wrote: ( Foregot to change address again :( ) Ilia Alshanetsky wrote: What are your views on including APC in the core, or reasons not to? Dictatorship? Optional module which have well used alternatives should not be proced on by

Re: [PHP-DEV] APC in trunk

2010-06-20 Thread Michael Shadle
Perhaps by adding it to core the original reasons for alternatives will be reduced and the things that make those special could be implemented into apc? On Jun 20, 2010, at 1:56 PM, Ferenc Kovacs i...@tyrael.hu wrote: On Sun, Jun 20, 2010 at 10:39 PM, Lukas Kahwe Smith

Re: [PHP-DEV] APC in trunk

2010-06-20 Thread Rasmus Lerdorf
On 6/20/10 2:05 PM, Lester Caine wrote: Rasmus Lerdorf wrote: On 6/20/10 1:21 PM, Lester Caine wrote: ( Foregot to change address again :( ) Ilia Alshanetsky wrote: What are your views on including APC in the core, or reasons not to? Dictatorship? Optional module which have well used

Re: [PHP-DEV] APC in trunk

2010-06-20 Thread Lester Caine
Rasmus Lerdorf wrote: On 6/20/10 2:05 PM, Lester Caine wrote: Rasmus Lerdorf wrote: On 6/20/10 1:21 PM, Lester Caine wrote: ( Foregot to change address again :( ) Ilia Alshanetsky wrote: What are your views on including APC in the core, or reasons not to? Dictatorship? Optional module

Re: [PHP-DEV] APC in trunk

2010-06-20 Thread Pierre Joye
hi, On Sun, Jun 20, 2010 at 11:32 PM, Lester Caine les...@lsces.co.uk wrote: Perhaps a poll on what people are actually using in production? The very large majority of the users I met use APC or Zend Cache solutions. However the point here is that as long as the extension is not php.net, they

Re: [PHP-DEV] APC in trunk

2010-06-20 Thread Ilia Alshanetsky
Sure, but that's win32 only Ilia Alshanetsky CIO/CSO Centah Inc. On 2010-06-20, at 16:54, Derick Rethans der...@php.net wrote: On Sun, 20 Jun 2010, Rasmus Lerdorf wrote: On 6/20/10 1:21 PM, Lester Caine wrote: ( Foregot to change address again :( ) Ilia Alshanetsky wrote: What are your

Re: [PHP-DEV] APC in trunk

2010-06-20 Thread Stas Malyshev
Hi! I for one think it is a really good idea, there is no compelling reason not to include APC, I would even go as far as say we should enable it by default. I do not think it is a very good idea. APC has certain effects on the code that are far from obvious, and enabling it by default would

Re: [PHP-DEV] APC in trunk

2010-06-20 Thread Stas Malyshev
Hi! Sure, but that's win32 only Speaking of which - does apc work for Windows? Last time I checked (more than a year ago) it was extremely unstable. Was it fixed? What about other popular PHP platforms? -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/

Re: [PHP-DEV] APC in trunk

2010-06-20 Thread Sean Coates
APC has certain effects on the code that are far from obvious, and enabling it by default would significantly complicate the average user's learning curve. Can you elaborate? What average user-facing features are non-obvious? We should document them if nothing else. S -- PHP Internals -

Re: [PHP-DEV] APC in trunk

2010-06-20 Thread Rasmus Lerdorf
On 6/20/10 2:32 PM, Lester Caine wrote: Rasmus Lerdorf wrote: On 6/20/10 2:05 PM, Lester Caine wrote: Rasmus Lerdorf wrote: On 6/20/10 1:21 PM, Lester Caine wrote: ( Foregot to change address again :( ) Ilia Alshanetsky wrote: What are your views on including APC in the core, or reasons not

Re: [PHP-DEV] APC in trunk

2010-06-20 Thread jvlad
Ilia Alshanetsky i...@prohost.org wrote in message news:86a0c51a-e6f7-48f2-a065-eabe74c6a...@prohost.org... Several reasons: 1) APC is well maintained, by the same people who work on PHP. 2) The license does not preclude it's inclusion into the base version. 3) most people don't use any

Re: [PHP-DEV] APC in trunk

2010-06-20 Thread Kalle Sommer Nielsen
Hi 2010/6/21 Stas Malyshev smalys...@sugarcrm.com: Hi! Speaking of which - does apc work for Windows? Last time I checked (more than a year ago) it was extremely unstable. Was it fixed? What about other popular PHP platforms? Me and Pierre put quite some work into getting APC to perform

Re: [PHP-DEV] APC in trunk

2010-06-20 Thread Ilia Alshanetsky
Including into core of PHP has no impact on other opcode caches, if they do a better job then APC, people can definitely (and should) use them. The main purpose of including APC would be to raise the level of awareness PHP users to the fact opcode caches exist and should be used in virtually all

Re: [PHP-DEV] APC in trunk

2010-06-20 Thread Stas Malyshev
Hi! Can you elaborate? What average user-facing features are non-obvious? We should document them if nothing else. This recently caught my attention: http://pecl.php.net/bugs/bug.php?id=16745 As I understood from this bug, APC changes how PHP works (since it works without APC but not with

Re: [PHP-DEV] APC in trunk

2010-06-20 Thread Ilia Alshanetsky
Stas, Even if the extension is compiled by default, we can (and probably should) leave apc.enabled at Off, recognizing some the things you are mentioning. On Sun, Jun 20, 2010 at 10:44 PM, Stas Malyshev smalys...@sugarcrm.com wrote: Hi! Can you elaborate? What average user-facing features are

Re: [PHP-DEV] APC in trunk

2010-06-20 Thread Rasmus Lerdorf
On 6/20/10 7:44 PM, Stas Malyshev wrote: Hi! Can you elaborate? What average user-facing features are non-obvious? We should document them if nothing else. This recently caught my attention: http://pecl.php.net/bugs/bug.php?id=16745 As I understood from this bug, APC changes how PHP

Re: [PHP-DEV] APC in trunk

2010-06-20 Thread Stas Malyshev
Hi! Even if the extension is compiled by default, we can (and probably should) leave apc.enabled at Off, recognizing some the things you are mentioning. I'm not sure I see the point of compiling it if it's disabled. Anyway, most of the distributions probably would make it .so just as it

Re: [PHP-DEV] APC in trunk

2010-06-20 Thread Ilia Alshanetsky
The point is that it would be there for people to use, with as little effort as possible, which would be changing 1 byte inside the INI file. The issues APC is having with certain code is not specific to APC, and does happen with other open source caches. Perhaps we need to examine the validity of

Re: [PHP-DEV] APC in trunk

2010-06-20 Thread Stas Malyshev
Hi! The point is that it would be there for people to use, with as little effort as possible, which would be changing 1 byte inside the INI file. The issues APC is having with certain code is not specific to APC, and does happen with other open source caches. Perhaps we need to We don't

Re: [PHP-DEV] APC in trunk

2010-06-20 Thread Stas Malyshev
Hi! This is an unfixed PHP bug. There have been a number of threads about the object destruction order on internals. It isn't just APC that is affected by this. Other extensions are affected as well. I understand that this effect is caused by the fact that APC destroys PHP classes earlier

Re: [PHP-DEV] APC in trunk

2010-06-20 Thread Ilia Alshanetsky
Stas, If there is a better alternative to APC we can bundle with PHP, I am definitely open to exploring that idea. However the alternatives I am familiar either are closed source or have licences incompatible with PHP, and that's without getting into the better argument. On Sun, Jun 20, 2010 at

Re: [PHP-DEV] APC in trunk

2010-06-20 Thread Scott MacVicar
On Jun 20, 2010, at 11:21 AM, Ilia Alshanetsky wrote: I for one think it is a really good idea, there is no compelling reason not to include APC, I would even go as far as say we should enable it by default. +1 We'd need to get http://wiki.php.net/rfc/zendsignals committed before we even

Re: [PHP-DEV] APC in trunk

2010-06-20 Thread Rasmus Lerdorf
On 6/20/10 7:55 PM, Scott MacVicar wrote: On Jun 20, 2010, at 11:21 AM, Ilia Alshanetsky wrote: I for one think it is a really good idea, there is no compelling reason not to include APC, I would even go as far as say we should enable it by default. +1 We'd need to get