Re: [PHP-DEV] [PATCH] suppressing realpath() with APC + tiny patches

2004-05-10 Thread Derick Rethans
On Mon, 10 May 2004, Magnus [iso-8859-1] Määttä wrote: > On Monday 10 May 2004 11.20, Andi Gutmans wrote: > > Hi, > > > > I will probably make it per-process, obviously it'll stay alive in between > > requests with a TTL. I don't think it should take more than a few KB so I > > wouldn't worry abou

Re: [PHP-DEV] [PATCH] suppressing realpath() with APC + tiny patches

2004-05-10 Thread Magnus Määttä
On Monday 10 May 2004 11.20, Andi Gutmans wrote: > Hi, > > I will probably make it per-process, obviously it'll stay alive in between > requests with a TTL. I don't think it should take more than a few KB so I > wouldn't worry about memory. I might in any case, limit the maximum of > memory it can

Re: [PHP-DEV] [PATCH] suppressing realpath() with APC + tiny patches

2004-05-10 Thread Masaki fujimoto
Hello, All of your point is acceptable for me, too. Of cource I do not think APC has something to do with realpath calls, and as I wrote in another mail, APC is just a way to make skipping realpath() calls more easy (to be exact, it's the way to suppress realpath() only once for each script th

Re: [PHP-DEV] [PATCH] suppressing realpath() with APC + tiny patches

2004-05-10 Thread Andi Gutmans
Hi, I will probably make it per-process, obviously it'll stay alive in between requests with a TTL. I don't think it should take more than a few KB so I wouldn't worry about memory. I might in any case, limit the maximum of memory it can take. Give me a couple of weeks and hopefully I'll have

Re: [PHP-DEV] [PATCH] suppressing realpath() with APC + tiny patches

2004-05-10 Thread Masaki fujimoto
Hi, I'm glad to hear that:) Actually, my first try was writing an experimental patch to cache realpath() for this problem because perhaps this is the finest and most "transparent" solution as you say. And my experimental patch worked fine , too (though it's too ugly to post here:). Anyway, th

RE: [PHP-DEV] [PATCH] suppressing realpath() with APC + tiny patches

2004-05-10 Thread Derick Rethans
On Mon, 10 May 2004, BUSTARRET, Jean-Francois wrote: > To what versions of PHP do you plan to include your realpath cache ? > > I hope you'll add it to PHP4... PHP 4 will not get new features. Derick -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.

RE: [PHP-DEV] [PATCH] suppressing realpath() with APC + tiny patches

2004-05-10 Thread BUSTARRET, Jean-Francois
ROTECTED] > Objet : Re: [PHP-DEV] [PATCH] suppressing realpath() with APC + tiny > patches > > > Hi Masaki, > > I would like to fix this using a realpath() cache. I plan on > working on > this in the next few weeks and this will hopefully solve the problem > everywhere in

Re: [PHP-DEV] [PATCH] suppressing realpath() with APC + tiny patches

2004-05-09 Thread Andi Gutmans
Hi Masaki, I would like to fix this using a realpath() cache. I plan on working on this in the next few weeks and this will hopefully solve the problem everywhere in PHP and be pretty much transparent. Andi At 10:36 PM 5/6/2004 +0900, Masaki Fujimoto wrote: Hello, These days I've been working

RE: [PHP-DEV] [PATCH] suppressing realpath() with APC + tiny patches

2004-05-07 Thread Rasmus Lerdorf
On Fri, 7 May 2004, BUSTARRET, Jean-Francois wrote: > Let's get rid of this useless (when using a cache) realpath call, without having to > migrate to PHP5 ! Well, the realpath call's usefulness doesn't have anything to do with the cache. It is there to provide a canonicalized absolute pathname

RE: [PHP-DEV] [PATCH] suppressing realpath() with APC + tiny patches

2004-05-07 Thread BUSTARRET, Jean-Francois
;origine- > De : Sterling Hughes [mailto:[EMAIL PROTECTED] > Envoyé : vendredi 7 mai 2004 00:15 > À : BUSTARRET, Jean-Francois > Cc : [EMAIL PROTECTED] > Objet : Re: [PHP-DEV] [PATCH] suppressing realpath() with APC + tiny > patches > > > the first thing you would op

Re: [PHP-DEV] [PATCH] suppressing realpath() with APC + tiny patches

2004-05-06 Thread Sterling Hughes
the first thing you would optimize is your code location - not your php installation... On May 6, 2004, at 6:46 PM, BUSTARRET, Jean-Francois wrote: I just did a quick stress test of the patch. My config is : Xeon 2GHz/512MB/IDE drive, apache 1/PHP 4.2.3/APC 2.0.3. I did change the patch in order

RE: [PHP-DEV] [PATCH] suppressing realpath() with APC + tiny patches

2004-05-06 Thread BUSTARRET, Jean-Francois
I just did a quick stress test of the patch. My config is : Xeon 2GHz/512MB/IDE drive, apache 1/PHP 4.2.3/APC 2.0.3. I did change the patch in order to apply it on PHP 4.2.3. The test template is : It is located on a NFS server and is 5 directories deep (2 local/3 NFS). The include/include$1.

Re: [PHP-DEV] [PATCH] suppressing realpath() with APC + tiny patches

2004-05-06 Thread Masaki Fujimoto
The Message From Rasmus Lerdorf on Thu, 6 May 2004 07:58:38 -0700 (Pacific Standard Time): > > (patch against APC-2.0.3, current CVS-HEAD is somehow unstable...) > > How so? I haven't yet inpected the cause but APC in CVS crashed with PHP 4.3.7-dev (tested today), so I chose stable APC-2.0.3...

Re: [PHP-DEV] [PATCH] suppressing realpath() with APC + tiny patches

2004-05-06 Thread Rasmus Lerdorf
> (patch against APC-2.0.3, current CVS-HEAD is somehow unstable...) How so? -Rasmus -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP-DEV] [PATCH] suppressing realpath() with APC + tiny patches

2004-05-06 Thread BUSTARRET, Jean-Francois
ED] > Objet : [PHP-DEV] [PATCH] suppressing realpath() with APC + > tiny patches > > > Hello, > > These days I've been working on some tasks to reduce I/O system calls > (lstat64, stat64, open and so on) of PHP for some reasons and > as the result of it, I noti

[PHP-DEV] [PATCH] suppressing realpath() with APC + tiny patches

2004-05-06 Thread Masaki Fujimoto
Hello, These days I've been working on some tasks to reduce I/O system calls (lstat64, stat64, open and so on) of PHP for some reasons and as the result of it, I noticed that with the APC + very small two pathes we can suppress most of realpath() calls (although currently I'm not sure this is