does 16M give a counting overhead ?

php.internals

bertrand Gugger

20 years ago
Bonsoir, I sure bore the list , but I still miss something. There was that thread about "memory_get_usage with new Memory Manager" where Ilia (et al.) evocated the overhead induced by the memory_get_usage() and family functions. as , e.g. , in http://marc.theaimsgroup.com/?l=php-dev&m=115400370218834 So I just ask if and how it is possible to get 16M without the counting overhead.
-- toggg

Andi Gutmans

20 years ago
Hi Bertrand, The discussion is on how and what we count, not on whether to count or not. If you count in 256KB increments instead of in byte increments then there's less counting to do in order to get to 16MB :) Andi

bertrand Gugger

20 years ago
Andi Gutmans wrote:
> Hi Bertrand, > > The discussion is on how and what we count, not on whether to count or not.
The quoted discussion is/was , this one is about the possibility to get 16M without counting.
> If you count in 256KB increments instead of in byte increments then there's > less counting to do in order to get to 16MB :)
Is the hardcoded 8M counting that way ? ( I mean , without --enable-memory-limit )
-- toggg

Andi Gutmans

20 years ago
There is no hardcoded counting. We either cound (--enable-memory-limit) or we don't (i.e. we rely on the system limits) Andi

bertrand Gugger

20 years ago
Andi Gutmans wrote:
> There is no hardcoded counting. We either cound (--enable-memory-limit) or > we don't (i.e. we rely on the system limits)
OK , I guess I have to find out where this php , constant , system wide limit is. I thought the 8M limit was due to PHP , is it C doing it ? Thanks for the kind answers.
-- toggg

bertrand Gugger

20 years ago
Andi Gutmans wrote:
> There is no hardcoded counting. We either cound (--enable-memory-limit) or > we don't (i.e. we rely on the system limits) > > Andi > > >>-----Original Message----- >>From: bertrand Gugger [mailto:bertrand@toggg.com]
btw , could you and PHP archives the same , avoid to quote direct email adress , I always forget to set it on the php.net host Use better the associated name for quoting. Merci
-- toggg