On Sat, 14 Jul 2007, Rasmus Lerdorf wrote:
> David Wang wrote:
> >> Is it possible that total server throughput with gc could actually be
> >> better than unmodified php by preventing swapping at some higher
> >> level of concurrent requests?
> >
> > Yes, that's certainly true if it becomes the c
David,
On Jul 14, 2007, at 1:55 PM, Rasmus Lerdorf wrote:
It is still extremely rare for code to have cyclic references. So
while
GC could prevent swapping in the case of a malicious user, or in the
case of a coding mistake, I don't think the general case of typical
code
running under nor
David Wang wrote:
>> Is it possible that total server throughput with gc could actually be
>> better than unmodified php by preventing swapping at some higher
>> level of concurrent requests?
>
> Yes, that's certainly true if it becomes the case that concurrent
> requests take up so much memory th
I have a patch adding the GC that's taken against the patch I
submitted earlier (converting accesses to refcount and is_ref to
macros).
Patch: http://web.pdx.edu/~way/frommacros.diff.txt
The two new files, zend_gc.c and zend_gc.h go in the Zend folder:
http://web.pdx.edu/~way/zend_gc.c
http://w
On Jul 11, 2007, at 4:43 PM, David Wang wrote:
On the Template test, maxmium memory usage with unmodified PHP was 1.5
GB with an execution time of 30 seconds.
On the Template test, maxmium memory usage with gc was 67.3 MB with an
execution time of 1 minute.
...
As you can see,
there is the cl
I haven't heard of that before... Is it some sort of compiler optimization
setting? Could you recommend to me some reference that would describe how
this can be done? It might help a lot.
http://gcc.gnu.org/onlinedocs/gcc/Other-Builtins.html
look for __builtin_expect.
See also EXPECTED and UNEXP
On Wed, 11 Jul 2007, David Wang wrote:
> On the Graph test, maximum memory usage with unmodified PHP was 133.9
> MB with an execution time of 8 seconds.
> On the Graph test, maximum memory usage with gc was 51.6 MB with an
> execution time of 9 seconds.
> On the Template test, maxmium memory usage
Hi,
> -Original Message-
> From: Andi Gutmans [mailto:[EMAIL PROTECTED]
> Sent: Thursday, July 12, 2007 9:06 PM
> To: David; Scott MacVicar
> Cc: Stas Malyshev; Sebastian Bergmann; internals@lists.php.net
> Subject: RE: [PHP-DEV] Mid-term Update for Cycle Collector (
[mailto:[EMAIL PROTECTED]
> Sent: Thursday, July 12, 2007 6:35 PM
> To: 'Scott MacVicar'
> Cc: Stas Malyshev; 'Sebastian Bergmann'; internals@lists.php.net
> Subject: RE: [PHP-DEV] Mid-term Update for Cycle Collector
> (Google Summer of Code Project)
>
> >
> Could the garabage collector be started / stopped during script
> executing from a userland function? zend_gc_enable/disable() in
> addition
> to an ini option to enable it at script startup?
Yes, that functionality can be added fairly easily. Some GC code will still
have to be executed (such as
Hi,
David wrote:
> Hi all,
>
>> -Original Message-
>> From: news [mailto:[EMAIL PROTECTED] On Behalf Of Sebastian Bergmann
>> Sent: Thursday, July 12, 2007 2:52 AM
>
>> As a first step, I think the code changes that convert direct accesses
>> to the reference counters to the proper mac
Hi all,
> -Original Message-
> From: news [mailto:[EMAIL PROTECTED] On Behalf Of Sebastian Bergmann
> Sent: Thursday, July 12, 2007 2:52 AM
> As a first step, I think the code changes that convert direct accesses
> to the reference counters to the proper macros should be merged. These
>
On the whole suite of tests (which includes the Graph and Template
tests), execution time with unmodified PHP was 12:03. With cycle
collection, it was 12:43.
these numbers are quite impressive.
Indeed, memory usage reduction is very impressive - though I'm somewhat
surprised so much memory i
David Wang schrieb:
> Hello, everyone. My name is David Wang and I am one of the students
> participating in Google Summer of Code this year. As you may remember,
> my project is to implement a garbage collector for circular references
> in PHP. As the midterm for Summer of Code is coming up, my me
On Wed, 11 Jul 2007 13:43:19 -0700, "David Wang" <[EMAIL PROTECTED]> wrote:
> Hello, everyone. My name is David Wang and I am one of the students
> participating in Google Summer of Code this year. As you may remember,
> my project is to implement a garbage collector for circular references
> in
Hello, everyone. My name is David Wang and I am one of the students
participating in Google Summer of Code this year. As you may remember,
my project is to implement a garbage collector for circular references
in PHP. As the midterm for Summer of Code is coming up, my mentor,
Derick Rethans, thoug
16 matches
Mail list logo