You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by "Jeffrey W. Baker" <jw...@acm.org> on 2001/05/10 23:04:29 UTC
Re: Where exactly is the Perl interpreter?
On Thu, 10 May 2001, Issac Goldstand wrote:
> I was just wondering- where exactly is the Perl interpreter in
> mod_perl 1.25 (for Apache 1.3) and where will it be in mod_perl 2
> (Apache 2.0)? I assume in Apache 1.3 it's in shared memory, but I
> want to double check...
This depends strongly on how your platform works. On Unix and friends,
the Perl interp is in each Apache process. However, the various interps
may actually reside in the same physical memory on your computer, because
of a kernel feature called copy-on-write. Look it up on Google if
interested.
It would be incorrect to say that Perl is in shared memory on Apache
1.3/Unix. Although the memory may in fact be shared, it is not shared
memory in the sense of shmctl, shmget, and shmop(2).
-jwb
Re: Where exactly is the Perl interpreter?
Posted by Stas Bekman <st...@stason.org>.
On Thu, 10 May 2001, Jeffrey W. Baker wrote:
>
>
> On Thu, 10 May 2001, Issac Goldstand wrote:
>
> > I was just wondering- where exactly is the Perl interpreter in
> > mod_perl 1.25 (for Apache 1.3) and where will it be in mod_perl 2
> > (Apache 2.0)? I assume in Apache 1.3 it's in shared memory, but I
> > want to double check...
>
> This depends strongly on how your platform works. On Unix and friends,
> the Perl interp is in each Apache process. However, the various interps
> may actually reside in the same physical memory on your computer, because
> of a kernel feature called copy-on-write. Look it up on Google if
> interested.
You may also try to look at my attempt to explain this:
http://perl.apache.org/guide/performance.html#Sharing_Memory
For 2.0 you want to read:
http://perl.apache.org/~dougm/modperl_2.0.html#perl
_____________________________________________________________________
Stas Bekman JAm_pH -- Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide http://perl.apache.org/guide
mailto:stas@stason.org http://apachetoday.com http://eXtropia.com/
http://singlesheaven.com http://perl.apache.org http://perlmonth.com/