[phpa] Re: PhpA memory consumption
- From: "Nick Lindridge" <nick@xxxxxxxxxxxxxxxxxxxxx>
- To: <phpa@xxxxxxxxxxxxx>
- Date: Mon, 13 May 2002 09:09:56 -0000 ()
>
>> afaik (I'm only a user) PHPA uses only the memory for
>> caching the compiled scripts (and some kb for itself).
>> My switch from apc to phpa resulted in a much less
>> memory consumption of the cache 'cause apc
>> cached scripts more than once if they are included
>> from different directorys.
>> Thomas
>
> ok, that was i mean : the memory management... So
> include management is better with Php Acc, so less
> memory is required.
Thomas's comment is correct. Memory needed when caching scripts aside,
when operating from the shared memory cache, the PHP/PHPA memory
requirements should actually be rather *less* than without PHPA.
This is because the code and constants (e.g. echo "This is a constant";
) is usually executed from the shared memory cache and not copied into
local memory. Without PHPA, the compiled scripts and data are of course
held in local memory. There is some local memory used for
'housekeeping', but no more than a few K per process, and as part of a
code review that I'm doing, I've reduced some of this local memory
requirement for the next (1.3.1) release.
With regards to caching, PHPA doesn't use filenames, and this has an
interesting side effect if caching files that are known by symbolic
links. If you have a file xx.php and yy.php, possibly in different
directories, and with yy.php being a link to xx.php, only one file
should be cached, and accessing both xx.php and yy.php should access
the same cache entry.
I hope that helps.
nick
------------------------------------------------------------------------
www.php-accelerator.co.uk Home of the free PHP Accelerator
To post, send email to phpa@xxxxxxxxxxxxx
To unsubscribe, email phpa-request@xxxxxxxxxxxxx with subject unsubscribe
- References:
- [phpa] Re: PhpA memory consumption
- From: Eole
Other related posts:
- » [phpa] PhpA memory consumption
- » [phpa] Re: PhpA memory consumption
- » [phpa] Re: PhpA memory consumption
- » [phpa] Re: PhpA memory consumption
- » [phpa] Re: PhpA memory consumption
- [phpa] Re: PhpA memory consumption
- From: Eole