> -----Original Message-----
> From: Stefan Esser [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, August 16, 2006 4:40 PM
> To: [EMAIL PROTECTED]
> Cc: internals@lists.php.net
> Subject: Re: [PHP-DEV] increase the default memory limit in 5.2.0+
> 
> 
> Hello,
> > After having tested 5.2 and the new memory manager for a couple of 
> > weeks, I notice a significant increase of the reported 
> memory usage. 
> > As a side effect, many applications reach the 8M memory 
> limit. It can 
> > be a problem.
> >
> > A good example is to compare the usage of a pear/pecl 
> command between 
> > 5.1 and 5.2.
> >   
> The question is why do we want a new memory manager that 
> seems to allocate 1.5 times more memory than the old one. I 
> haven't looked into it yet, but for me this looks like a 
> waste of ressources. What are the advantages of it. I really 
> doubt, that a significant speed increase can be measured, and 
> I wonder if it worth the waste of memory.

The bew memory manager allocates LESS memory and works faster.
It allocates memory from system by large blocks and then manage heap by
itself.
The memory_limit is checked not for each emalloc() call (as befor), but for
real blocks that requested from system.
So memory_limit is more accurate in new memory manager.
Old memory manager didn't calculate all memory overheads that were used by
malloc library.

Dmitry.

> Yours,
> Stefan Esser
> 
> -- 
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: http://www.php.net/unsub.php
> 

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to