[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: linking perl statically against libperl



(no need to cc me, I'm subscribed)

On Tue, Apr 21, 2015 at 09:24:44PM +0100, Ian Jackson wrote:
> Niko Tyni writes ("Re: linking perl statically against libperl"):
> > If there are several /usr/bin/perl processes and /usr/bin/perl is
> > statically linked against libperl, every process has its own copy of
> > the libperl code in memory. In the case of dynamic linking, there's just
> > one copy.
> 
> I don't think this is true.  We use shared text executables, which
> means that every copy of the same executable loaded into memory is
> actually handled by sharing the pages between the various processes.

[...]

> So I think statically linking /usr/bin/perl will cost (in memory
> terms) at most the memory one extra copy of libperl.

Awesome, thanks for educating me!
-- 
Niko Tyni   ntyni@debian.org


Reply to: